Bigdaddy2 |
posted 01-01-2002 07:42 GMT
I was using this code to make this old guy only give up information if you talked asked about him first. I cant seem to get it to consider the variable WhatAboutBob. The debug window shows the variable with the right value but the menu script runs the else condition only which should only happen with the variable set to 1define selection <Bob_Talk> info <What do you want to ask bob> choice <Where is the cave entrance ?> if ( %WhatAboutBob% = 0 ) then msg <All you _ young whipper snappers always want to know about the cave. Where's the entrance, _ WHERES THE ENTRANCE! Well find it yourself you big ediot!> else { msg <The Elf king blocked off the entrances long ago. The only way into _ the cave is by using the ancient stones of the sioux indian tribes that _ roamed the land. There is magic in those stones.|n> set numeric <WhatAboutBob; 0> } choice <Where can I learn magic spells ?> if ( %WhatAboutBob% = 0 ) then msg _ <Magic spells ? What are you some kind of ediot ! there is no such thing as magic!.> _ else msg <Magic you say,Hmmm, you dont look like a wizard. I will tell you this much, _ spells and potions are not for the inexperianced. Messing around with them with out _ nowing the right words or ingrediants can be trouble. My advice to you is LEAVE IT _ ALONE!. Unless you have the book of spells of course.> choice <What do you do here Bob ?> { msg <Now that is an interesting question, cause it's about me !.|n|nI was _ the jeweler to the elf king until he made it forbidden for elves to come up _ this close to the surface. Now I just get the occasional ediot like you that _ stumbles across my cabin every know and then.> set numeric <WhatAboutBob; 1> } choice <Do you live here alone Bob ?> { msg <I like you young boy, You arnt like the others. Most of the people that _ come my way just want to here about the cave entrance, or the treasures, and _ the magic that can be used in the underground world that exists below.> set numeric <WhatAboutBob; 1> } end define
|