Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Auto-Leveling
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| PJ
USA (48 posts) Bio
|
| Date
| Wed 29 Jan 2003 06:47 AM (UTC) Amended on Wed 29 Jan 2003 06:50 AM (UTC) by PJ
|
| Message
| I want to use a script and trigger(s) to run through an area and kill all the animals, example for cat:
Triggered by an alias "GoLevel"?
Go N W W, I manually kill the cat
"A cat is DEAD!!"
Go S E S, I manually kill the cat
"A cat is DEAD!!"
Go S E E, I manually kill the cat
"A cat is DEAD!!"
Go W W N N W N E E S, Sleep
I just want to get the basic idea so I can add more animals and change stuff later.. The number of animals will probably go up to 15 so please use a method that will support that?
It will end up as a plugin after I've tested it and stuff so it doesnt matter to me how many triggers and stuff it uses..
Thanks ahead of time.. | | Top |
|
| Posted by
| PJ
USA (48 posts) Bio
|
| Date
| Reply #1 on Sun 02 Feb 2003 08:41 PM (UTC) |
| Message
| Hmm, maybe someone could help me on the triggers, I think that's all I'd need.
I want to make like 15 of them and be able to have each turn the next off:
Match: Cat is DEAD!!
Label/Name thing: LVLT1
Send: N, E, E, Disable LVLT1, Enable LVLT2
And of course just have my dirrections and stuff.. can anyone give me the two strings I need there to enable by name and disable by name? Then I could just do the alias by myself.. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Sun 02 Feb 2003 09:27 PM (UTC) |
| Message
| The trigger would need to call a small script, like this:
sub OnLevelT1 (name, output, wildcards)
world.EnableTrigger "LVLT1", 0 ' disable me
world.EnableTrigger "LVLT2", 1 ' enable next one
end sub
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| PJ
USA (48 posts) Bio
|
| Date
| Reply #3 on Mon 03 Feb 2003 02:22 AM (UTC) |
| Message
| | Alright, that did the trick.. Now all I have to do is make it a plugin for certain areas, thanks Nick | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
16,056 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top