Good day folks this is my 2nd topic, please help me
I’m having trouble with a choice within a time loop
The error I’m getting is: the choice keep on appearing even though it’s not supposed to (I don’t want to)
My code looks like this:
*create day 0
*create time 0
*set day 0
*set time 0
*if time >= 6
*set day +1
*set time -6
*if day > 5
*goto outoftime
*label time_loop
You’re on day ${day} out of 5
Time: ${time}
Skip time
*choice
*selectable_if ((time > 0) or (time < 5)) #+1
*set time +1
*if time >= 6
*set day +1
*set time -6
*if day > 5
*goto_scene outoftime
*goto time_loop
#+2
*set time +2
*if time >= 6
*set day +1
*set time -6
*if day > 5
*goto_scene outoftime
*goto time_loop
The time loop does exist, but I want the choice #+1 to not be selectable when the time is ether 0 or 5. But as I use this code it’s not functioning, is my code wrong or what?
0 is less than 5, so it is selectable by the second criteria. 5 is greater than 0 so it is selectable by the first. You want it to be selectable only if both criteria are true (and).