Auto-Leveling

Posted by PJ on Wed 29 Jan 2003 06:47 AM — 4 posts, 17,813 views.

USA #0
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..
Amended on Wed 29 Jan 2003 06:50 AM by PJ
USA #1
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..
Australia Forum Administrator #2
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

USA #3
Alright, that did the trick.. Now all I have to do is make it a plugin for certain areas, thanks Nick