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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
13thpillar
Newbie


Joined: 20 Apr 2011
Posts: 2

PostPosted: Wed Apr 20, 2011 10:10 pm   

Chase Script Help
 
Hello all.

I am trying to get this to work so that it chases faster, as well as executes 'kill target' instead of cursing, which has no use in my MUD.

#alias settarget {
target = %1
#show target set to @target
#var willcurse 1
#t+ hunt
}
#class hunt
#tr {^@target is*here} {#if (@willcurse) {
c curse @target;willcurse = 0} {k @target}
}
#tr {@target leaves (%w).} {%1}
#tr {@target arrives} {#if (@willcurse) {
c curse @target;willcurse = 0} {k @target}
}
#tr {@target is DEAD!} {#t- hunt}
#class 0

Any suggestions?
Reply with quote
13thpillar
Newbie


Joined: 20 Apr 2011
Posts: 2

PostPosted: Wed Apr 20, 2011 11:18 pm   
 
I am a script newbie btw, just found this useful bit in these forums and it works to a degree - but it does not automatically engage the target upon following it and it can be outran fairly easily.
Reply with quote
Mixsel
Wanderer


Joined: 02 Feb 2003
Posts: 99
Location: Seattle, Wa

PostPosted: Fri Apr 22, 2011 2:32 am   
 
I think all you need to do is get rid of the #IF statements

#alias settarget {
target = %1
#show target set to @target
#t+ hunt
}
#class hunt
#tr {^@target is*here} {k @target}
#tr {@target leaves (%w).} {%1}
#tr {@target arrives} {k @target}
#tr {@target is DEAD!} {#t- hunt}
#class 0

doublecheck the {'s if it doesn't work, but this should do it.
_________________
Spin
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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