Garrulous Glaahk Yellow Sub Posted July 9, 2004 Share Posted July 9, 2004 ...the problem didnt come until I added this part to the END of the dialoulge! Code: begintalknode 31;//All resaeehecersstate = 17;nextstate = -1;question = "Teddy";text1 = "This scientist looks at you._Go away!_";text2 = "This scientist looks at you._Leave!_";text3 = "This scientist looks at you._Just Be Gone!_";text4 = "This scientist looks at you._They dont live here their next DOOR!_";text5 = "This scientist looks at you._Go away, or suffer!_";text6 = "This scientist looks at you._GO AWAY!_";code = clear_strings(); if (get_ran(1,1,6) == 1) { add_string(1); } else if (get_ran(1,1,6) == 2) { add_string(2); } else if (get_ran(1,1,6) == 3) { add_string(3); } else if (get_ran(1,1,6) == 4) { add_string(4); } else if (get_ran(1,1,6) == 5) { add_string(5); } else if (get_ran(1,1,6) == 6) { add_string(6); } else { print_str_color("The game screwed up and",2); print_str_color("returned a wrong number.",2); }break;action = END_TALK; Line 1 was not incorrectly ended until I put in this code. I need help. Link to comment Share on other sites More sharing options...
Garrulous Glaahk spyderbytes Posted July 9, 2004 Share Posted July 9, 2004 Don't know if this is the problem, but you're getting a NEW random number for each check, and it's probable that none of them would succeed. What you want to do is: Code: foo = get_ran(1, 1, 6);if (foo == 1) { ...} else if (foo == 2) { ...etc. Link to comment Share on other sites More sharing options...
Kyshakk Koan KernelKnowledge12 Posted July 9, 2004 Share Posted July 9, 2004 i think u have to put the action = part before the code block. Also u have to do what spyderbytes said or most of the time the else block will be activated. Link to comment Share on other sites More sharing options...
Garrulous Glaahk Yellow Sub Posted July 9, 2004 Author Share Posted July 9, 2004 Okay, I set a variable to be the ran, so its something like get_ran blah blah = variable if variable equals this print string 1 if variable equals this blah, well I fixed it, thanks spiderbytes. Link to comment Share on other sites More sharing options...
Kyshakk Koan PoD person Posted July 10, 2004 Share Posted July 10, 2004 text4 = "This scientist looks at you._They dont live here their next DOOR!_"; They don't live here; they're next door their - they're Just to save your beta testers the annoyance, should you finish. Link to comment Share on other sites More sharing options...
Recommended Posts