First of all, how do I make it so my stats box is always showing? It always seems to disappear on me.
[/quote]
I assume you have code to draw the stats box? In that case, you want to put that code into a python function, and put a reference to that function into config.overlay_functions.
Yes. Use renpy.random.choice and string interpolation. For example:Can I make someone say something random? Like:
"It's too bad I'm sick, I really wanted to go to the (Park, Mall, Arcade, etc...)
Code: Select all
$ mood = renpy.random.choice([ 'happy', 'ashamed', 'honored' ])
gygax "I'm %(mood)s to meet you."
I've uploaded a new version of event_dispatcher.rpy to:And how do I get a random event? Say I wanted Sue to pop up occasionally when I head to the park, and then a random of several different dialogues.
http://bishoujo.us/svn/dse/trunk/event_dispatcher.rpy
It lets you use event.random(0.25) to give an event that will only happen a quarter of the time. Please note that random and solo can conspire to give weird results.
If you have 2 random-solo events with a probability of 0.25, then the first in order has the 0.25 probabilty, but the second has only a a .1875 chance of going off. (0.75 * 0.25)