Deleted member 833183
Newbie
- Aug 20, 2018
- 18
- 5
- 13
I was trying to make conditional statements with if/else for different path choices and now I'am stuck with this error what i'am I not seeing?
label wait:
jump wait
label shout:
jump shout
$ allow_shout = False # declare variable
menu:
"wait":
jump wait
"shout" if allow_shout == True:
jump shout
label wait:
"waiting ..."
"Code is more readable if long dialogues are not placed inside indented menu-choices."
jump continue_story
label shout:
"LOOOOUD NOISE !!!"
jump continue_story
label continue_story:
$ del allow_shout # delete variable
"... and at the end everybody died in pain. *roll credits*"
Damn, I did not even know that using a menu as label was possible. I've always placed custom label before the menu if I wanted to jump back.Usual convention would be to use the menu itself as a label and jump back to that
Im pretty sure that code tags will disable any kind of BBCode. It's what they're for. That they're working in the preview could be a bug thoughedit: forum seems to ignore custom-color-tagscode is suppose to be green, only works in preview
This can be done in a more simpler way, by using the set property of the menu statement.Though, if you really want to start getting more complex, then you could use something more like this...
This is a little more involved.You don't have permission to view the spoiler content. Log in or register now.
Menu options for "Wait" and "Shout" are only shown if the menuopt1 and menuopt2 variables are set to True.
Initially that's true for both.
Ohhhh... I like that.This can be done in a more simpler way, by using the set property of the menu statement.
Ren'py will automatically use the myMenu01 list to store the chosen options and decide if one should be displayed or not.You don't have permission to view the spoiler content. Log in or register now.