help with a run-kill-script

Posted by Isman on Mon 19 May 2003 08:40 PM — 2 posts, 10,848 views.

#0
hi there, i just wanted to build a script that will check if there are enemys on tha field,and then the script automatically will kill it - else, it should wald through a map by an run=Array(n,nw,w,sw,s,so,o,no)if there is no enemy..magic shield should be checked to, and when it ends, a new shild should be made...is that possible n how hard to make such a script?..thx 4 help
Australia Forum Administrator #1
Yes it is possible, do a bit of a search in this forum, a few people have done similar things, they might give you ideas. I think there was a recent post about detecting enemies and hitting them, and a while back there was a "wilderness walker" which walked in various directions.

Basically you need some triggers, eg. one to match "is there an enemy" - whatever that is for you, and another "my shield has run out". I would start with those two, and at least automate that part.

You can test these triggers without actually going into battle by using a little-documented feature - the "debug simulated world input" window. Go to a quiet part of the MUD, and then hit Shift+Ctrl+F12.

Then type in what you expect to see (better have made an exact copy from an earlier battle), eg.

"The Orc lunges at you"

Hit <enter> and it will pretend that that came from the MUD - then check that the trigger fires and does what you want it to. The debug window remembers what you entered from time to time, so if the trigger doesn't work you can fix it, and try again.

Make sure you put a "newline" in the debug window or the trigger won't fire. One way is to use Ctrl+Enter when typing in your test text, another is to enter a newline in hex, eg. \0A