![](templates/Classic/images/spacer.gif) |
Bromax Wanderer
Joined: 03 Jan 2002 Posts: 66
|
Posted: Tue Jun 15, 2004 7:23 pm
Trigger help |
I have this short script:
#CLASS {Chase} {disable}
#TRIGGER {* HP:(*) MV:(*) - (*): (*) >} {
#VAR target {%3}
#VAR ktarget {%if( ( ( %word( {@target}, 1)="a"))or ( ( %word( {@target}, 1)="the"))or ( ( %word( {@target}, 1)="an")), %trim( %remove( %word( @target, 1), @target)), @target)}
} "" {nocr|prompt}
#TRIGGER {@target leaves (%w).} {
%1
kill @ktarget
}
#CLASS 0
which chases and kills based on prompt info....only problem is that some badguys have names like *BadGuy* with the *'s before and after their name...the @target is just set to "BadGuy" so when he runs I don't chase. Any help?
-Bromax |
|
|
![](templates/Classic/images/spacer.gif) |
Aarlot Adept
![](images/avatars/177738244840f58e21a45d9.jpg)
Joined: 30 Dec 2003 Posts: 226
|
Posted: Tue Jun 15, 2004 9:27 pm |
Easy fix would be to just make another trigger to follow any badguy with stars around the name:
#TR {~*@target~* leaves (%w).} {%1;k @ktarge} |
|
|
![](templates/Classic/images/spacer.gif) |
Bromax Wanderer
Joined: 03 Jan 2002 Posts: 66
|
Posted: Tue Jun 15, 2004 10:51 pm |
Oh man...that was too easy for me to think of. =P Thanks a lot!
-B |
|
|
![](templates/Classic/images/spacer.gif) |
|
|