So let me start off by explaining what I'm intending to do. I'm using DSE and I'm trying to make it where if you decide to do "go outside" on the daily planner it will then randomly choose between two events. "Run into creature" and "Normal walk". On the normal walk I want it to randomize what the player see's so something like, "You see a dog on your walk.","You see a small flock of birds.","Your walk is peaceful.", ect. Here's what my code looks like.
Code: Select all
label go_outside:
call expression renpy.random.choice(["run_into_creature", "normal_walk"])
label normal_walk:
$ animal = renpy.random.choice(encounter)
"You begin to walk down a small path in the forest. [animal]"
$ stat += 10
return
Then on the run into a creature label I'd like to give the player a choice between something. Here's that code.
Code: Select all
label run_into_creature:
"You see a horse galloping down the road."
menu:
"attempt to stop it":
$ stat +=10
"avoid it":
$ stat -=10
return
and before the script I have encounter defined like this as told by someone else.
Code: Select all
define encounter = ["You see a dog on your walk.", "You see a small flock of birds.", "Your walk is peaceful."]
My issue is that when I choose to "go outside" It will say "You begin to walk down a small path in the forest. You see a dog on your walk.", then "You begin to walk down a small path in the forest. You see a small flock of birds." before proceeding. Sometimes it will do something similar but instead of repenting it says "You begin to walk down a small path in the forest. You see a dog on your walk.", then "You see a horse galloping down the road." (choices on screen) "attempt to stop it", "avoid it". I have no clue why. Any help is appreciated and I apologize if this question is misplaced, I wasn't sure where to put it as the issues aren't strictly DSE related. I don't think so anyway. ^^'
~Everyone has bad days. Don't judge someone on that day and that day alone, judge them on their actions after it and onward.~