Dialouge stopping in mid conversation

Error message

  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/pied-piper.ermarian.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/pied-piper.ermarian.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/pied-piper.ermarian.net/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6595 of /var/www/pied-piper.ermarian.net/includes/common.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Dialouge stopping in mid conversation
Shock Trooper
Member # 3276
Profile #0
For some reason, the words, "The conversation ends" appear even though dialouge has just started! This is really odd. This is the first node of the conversation of the person which automaticaly ends converstation, even though no action END_TALK is used.
begintalknode 19;//Lone Person
state = -1;
nextstate = 10;
question = "Tracy";
code =
clear_strings();
if (get_flag(75,0) > 0) {
add_string(2);
end();
} else {
add_string(1);
end();
}
break;
text1 = "Someone is sitting here, alone, playing chess with himself.";
text2 = "Tracy looks at you happily, smileing.";

Posts: 249 | Registered: Saturday, July 26 2003 07:00
Off With Their Heads
Member # 4045
Profile Homepage #1
In your code, the end call ends the dialog. You'd be far better off using something simpler, like:
code =
if (get_flag(75,0) > 0)
remove_string(1);
else
remove_string(2);
break;


--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00