|
13thpillar Newbie
Joined: 20 Apr 2011 Posts: 2
|
Posted: 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? |
|
|
|
13thpillar Newbie
Joined: 20 Apr 2011 Posts: 2
|
Posted: 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.
|
|
|
|
Mixsel Wanderer
Joined: 02 Feb 2003 Posts: 99 Location: Seattle, Wa
|
Posted: 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 |
|
|
|
|
|