Easygoing Eyebeast Xaiya Posted February 2, 2008 Posted February 2, 2008 Before I can release Muffins n' Hell, I need this problem fixed. I didn't see anything wrong when I looked at it. The dialog options won't show when I get the flags. Code: begintalknode 5; state = 1; nextstate = -1; condition = (get_flag(0,23) == 4){ question = "What now?"; text1 = "_Well, we are leaving hoping that the hole is a way out. I don't know what he meant by 'sorry for dragging you into this' but I don't care._"; begintalknode 6; state = 1; nextstate = -1; condition = (get_flag(0,10) == 2){ question = "What now?"; text1 = "_Well, we are leaving hoping that the hole is a way out. Apparently you made a friend since he thanked you. But whatever._"; Quote
Understated Ur-Drakon Nioca Posted February 2, 2008 Posted February 2, 2008 Conditions do not use brackets. They're effectively the same as every other value. Additionally, the questions go on the next line after a condition. EDIT: [/n] is not a tag. EDIT 2: is not the proper graemlin either. Quote
Unflappable Drayk Lazarus. Posted February 2, 2008 Posted February 2, 2008 I don't think this is the first time you've posted a chunk of dialog with misused conditions. It's important you understand what exactly they do. The following (Correct) Code: begintalknode 5; state = 1; nextstate = -1; condition = (get_flag(0,23) == 4); question = "What now?"; Essentially is evaluated like this: Code: if(get_flag(0,23) == 4) show_node(); The same way that Code: state = 5; Essentially meansif(current_state == 5) show_node();[code]It isn't necessary to put brackets after condition = (some statement), just as it isn't necessary to put one after state = (some value). Both end with a semicolon, just like question, text1, etc. Quote
Easygoing Eyebeast Xaiya Posted February 3, 2008 Author Posted February 3, 2008 I guess it was one of those typos I couldn't see. Well, it works now anyway. Soon I can finally release this thing. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.