Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
AKstorm
Newbie


Joined: 31 May 2003
Posts: 3
Location: Brazil

PostPosted: Sat May 31, 2003 1:14 am   

#if with #temp
 
Ok Im trying to do some triggers that will do this...
If after I kill this mob, Im full health, I walk north. If Im not full health, I sleep till so then walk north.

I set prompthp > 720 because my full health is 721 hp. I had the prompt thing set up correctly in zmud, it updates the variable as it should
I made something in the room description create this for me:

#var inzone 1
#temp {You have killed a behemoth} {#if (@prompthp > 720) {north} {
sleep
#temp {You wake up} {north}
#temp {You are completly rested} {stand}
}}

somehow its not working. the #temps inside the #if arent getting created I think
The room description trigger is working because the variable command runs ok, I tried putting other stuff to test and it works fine.
but the if with temp aint working.

I did a simpler one to see if it worked to no avail:

#temp (You have killed a behemoth) {#if (@prompthp > 720) {
north
}}

also doesnt work
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat May 31, 2003 12:36 pm   
 
I see no problem with it, it works fine for me. Make sure that the variable @prompthp is not getting expanded when the trigger is created. Check the temporary trigger created when this script executes and look to see if it has the variable reference or just its value.

Kjata
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net