Jump to content

Recommended Posts

Posted

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._";   
Posted

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. smile

 

EDIT 2: :p is not the proper graemlin either. laugh

Posted

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 means
if(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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...