Jump to content

dialog help


bigblue

Recommended Posts

now that the sdf works with the door, i got a new problem:

when the party approaches the door a dialog should come up depending on the sdf. this works ok, but the second dialog: "The door is open now." should only appear once! Now it appears every time when the party approaches the door.

 

this is the piece of my script:

 

beginstate 10;

reset_dialog();

if (get_flag(0,2) == 0) {

add_dialog_str(0,"This door is heavily locked. You see no way to open it!",0);

choice = run_dialog(1);

}

else {

add_dialog_str(0,"The door is open now.",0);

choice = run_dialog(1);

}

break;

 

btw: can someone explain the difference between this add_dialog_str thing and the call message_dialog to me?

Link to comment
Share on other sites

nah, logical, i always forget the possibility of setting a flag to a higher value than one!

thx a lot, it was nearly enough to drive me to despair!

 

edit: as logical as it sounded, it didn't work that way. i finally put another encounter behind my door refering to a new state which sets the flag to 2.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...