|
json2001 Newbie
Joined: 09 Jul 2002 Posts: 1
|
Posted: Tue Jul 09, 2002 2:15 am
Xping Script |
I cant quite figure out how to make an xping script with Zmud. There is a large 50*50 matrix (total 2500 rooms) on the mud where I am (Watersedge). I would like to make it so that it walks starting from the NW corner and checks each room for enemies, and then if it finds any, it uses my area attack (Rampage) to kill them, and then moves on, and continues in a continuous circuit. I would like to be able to have this script run as quickly as possible (from room to room) becuase that means quicker Experience. Here is an example of a room:
Abysmal Void [n,s,e,w,ne,nw,sw,se].
Lesser Demon and Wraith are here.
The four types of monsters that can be in the rooms alone or together in any combonation are Mordhel, Lesser Demon, Wraith and ghouls. Thanks for your help.
Json2001 |
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Tue Jul 09, 2002 7:54 am |
well, it'd probably be easier to create a path of the area, then use #step and #pause to step through the area. Create a couple of triggers, one that tells you that there are no monsters in the room and one to tell you that there are monsters and what monsters are there. The one without monsters would look something like this:
#trigger {*~[*~]$$~<YourPromptHere~>} {#step}
The one with the monsters can be any way you want, but here's a suggestion:
#trigger {*~[*~]$(*)$~<YourPromptHere~>} {#var monsters %replace(%replace(%replace(%replace(%1, ",", "|"), "are here.", ""), "is here.", ""), " and ", "|");#var Error 0;#forall @monsters {#if (!%ismember(%i, @MonsterList)) {#var Error 1}};#if (@Error) {#step} {cast 'rampage'}}
You'll need a MonsterList variable:
#var MonsterList {Mordhel|Lesser Demon|Wraith|ghouls}
Then you'll need a trigger to tell you that the battle is done and that you should step to the next room. You can do this using alarms or you can do this without a trigger and manually type '#step' when the battle is over.
If I haven't forgotten any steps, this should take you through the whole area and kill monsters you deemed were okay to kill. All this has been untested so use at your own risk.
Iljhar |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|