Health Easter Egg?
lePickles
08 Sept 2010, 13:17Ok so I am just making a short apocolyptic game right now with Quest 4.1.2. Lite.
In my room "Abandoned Shack" I have a custom command "eat cockroach" when i type it into the game, it says "you eat the cockroach" then freezes. it is supposed to lower your hp as well. I tried having it lower hp by 5 but i couldnt figured out so i did the easy way out and did the lower by 1 by leaving it blank.
The code is this: Decrement "health"
what would i put in there to make it lower by like between 1-5 randomly, or just by 5
In my room "Abandoned Shack" I have a custom command "eat cockroach" when i type it into the game, it says "you eat the cockroach" then freezes. it is supposed to lower your hp as well. I tried having it lower hp by 5 but i couldnt figured out so i did the easy way out and did the lower by 1 by leaving it blank.
The code is this: Decrement "health"
what would i put in there to make it lower by like between 1-5 randomly, or just by 5
Alex
09 Sept 2010, 12:24If the game is freezing, then maybe you've set up your HP status variable's "on change" script to change the value of the HP variable, causing an infinite loop. If you attach your .asl file here or email it to me at alex@axeuk.com I can take a look into this for you.
You can make Quest generate a random number between 1 and 5 by typing:
$rand(1;5)$
You can make Quest generate a random number between 1 and 5 by typing:
$rand(1;5)$