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


Joined: 05 Oct 2002
Posts: 2

PostPosted: Sat Oct 05, 2002 12:59 am   

Chase and disable trigger help
 
I'm new at making zmud triggers, as in I tend to use alot of aliases but no triggers. The time has come to use a trigger, and well, it is a bit complicated for me. This is what I am looking for...

A trigger where I can type something in like

target Mong

then if I see

Mong is here.

to then

kill mong

Or if I am in battle and I see this..

Mong leaves west.

to chase them

I would then like to have something to where if I drop below a certain number of hps, say 100, the target would set itself to 1234, so it cannot chase anyone. The prompt looks like this...

<522hp(522) 240ma(329) 418mv(420)(38254) 9312gp >

Help please!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Oct 05, 2002 5:26 am   
 
#AL target {#VAR target %1}
#TR {@target is here} {kill @target}
#TR {@target leaves (%w)} {%1}
#TR {^~<(%d)hp~(%d~) %dma~(%d~) %dmv~(%d~)} {#IF (%1 < 100) {#VAR target 1234}} {} {nocr|prompt}

LightBulb
Senior Member
Reply with quote
katrana
Newbie


Joined: 05 Oct 2002
Posts: 2

PostPosted: Sat Oct 05, 2002 5:42 pm   
 
Thanks! It works beautifully!!!
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