Mood code? Side images?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
skychain
Newbie
Posts: 12
Joined: Wed Jan 14, 2015 5:11 pm
Projects: Vitala BETA
Organization: Star Sovereign
Deviantart: starhive
Skype: starry.park
Contact:

Mood code? Side images?

#1 Post by skychain »

Could someone point me in the right direction of the code i'm looking for? I'm sorta wading through code and links and i'm getting confused. I don't really understand init blocks yet and I'm trying to set up my side images that change depending on mood. I saw something about it but I have no clue how it works or how to trigger it in the game.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1962
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Mood code? Side images?

#2 Post by Donmai »

Please, read here first: http://lemmasoft.renai.us/forums/viewto ... 51&t=22090

As for your question, you want to use ConditionSwitch: http://www.renpy.org/doc/html/displayab ... splayables

There is a good tutorial here: http://lemmasoft.renai.us/forums/viewto ... 51&t=19063

If you search for "conditionswitch" you will find several threads with examples and solutions to common problems. :wink:
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: Mood code? Side images?

#3 Post by xavimat »

ConditionSwitch is one way of doing this.

I prefer another one (I find it easier, but you choose what is easier for you): using «image» tags in the character definitions, as explained here: http://www.renpy.org/doc/html/side_image.html with example code included.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: Google [Bot], Imperf3kt