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
Hastrom
Newbie


Joined: 31 Oct 2002
Posts: 2
Location: USA

PostPosted: Thu Oct 31, 2002 1:59 am   

almost got this trigger working
 
Greetings
heres what i have so far
Pattern: (%d) hp/(%d) HP
Value: #IF ((%1 != %2) AND (%1 < 3000)) {poke ren}
so basically im trying to do an action if my hp drops below 3000, but it only works if newline is checked, but also it'll "poke ren" everytime the prompt shows that im under 3000 hps, like when the mud echos "you poke rendar in the ribs" it'll poke ren again of course. but when I uncheck newline and check prompt it doesn't work at all.
Do i have to somehow tell zmud what my prompt is? and how?
I think im close just missing some little rule hehe, oh im using 6.36 too.
Any help Mucho appreciated
Hast


I Didn't do it, Noone saw me, Can't prove Anything. :)
Reply with quote
celticshiva
Newbie


Joined: 30 Oct 2002
Posts: 4

PostPosted: Thu Oct 31, 2002 3:36 am   
 
Hm.. I'm assuming Ren heals you when you are poked, and that when he heals you your HP is above 3000. If so the following *should* work.. but I'm kinda new at this script stuff.



#IF (lastHP<%1) {renpoked=FALSE}
#IF ((@renpoked=FALSE) AND (%1 != %2) AND (%1 < 3000)) {poke ren;renpoked=true;lastHP=%1}


The first line checks to see if you gained any HP since the last prompt (presumably from being healed by ren). This might not work if your mud regenerates you in combat though, but gives you an idea.

You're gonna need to create a var named renpoked and lastHP, natch!
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