 |
Tommy2143 Beginner
Joined: 10 Aug 2002 Posts: 17
|
Posted: Tue Aug 19, 2003 4:55 am
Need some ideas |
Ok so I've got this autoattack setup for MajorMUD
Currently, it just looks in the room, records who's in there and attacks the first available one. I recently modified it to allow for priority attacks, but it's no more complicated than that. The main problem is that when it gets blinded, it cant see anyone when combat ends, so it just sits there getting wailed on. So I figure I'll keep all the names in the list instead of purging it everytime combat ends to re-initialize it. Then the problem arises of if the monster dies, not by my hand, while I'm killing another one. This keeps a monster in my list that isnt in the room anymore. MajorMUD doesnt have a general monster death msg, every monster has their own unique msg. So I obtained a huge list of every monster death msg in the game. We're talking hundreds if not in the thousands of monsters. My question is, do you think I should take a whole buncha time and do a single trigger for each death msg/monster, or is there a way for me to setup a general trigger to check against a text file of the deaths msgs/monsters to see if it matches one? I know both are possible, but which would be more feasible and/or make more sense? Any ideas?
Thanks alot in advance. |
|
|
 |
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Tue Aug 19, 2003 4:18 pm |
Show an example of the death messages.
If there is some common factor...
"You have slain an orc captain!"
"You have slain Zsarachnor!"
Then you can have something like...
#TR {You have slain (*)!} {#DELITEM killlist %db( @deathmsg, %1)}
#AL addcr {
#ADDKEY deathmsg{%-2=%1}
#SHOWDB %cr@deathmsg
}
Use "addm orc an orc captain" and "addm Zsarachnor Zsarachnor" etc to add death messages to your list... remember that the first word after the alias is the name of the creature you're killing, as you would write it when you make your first attack - as it appears *exactly* in the kill list. The rest is how it appears in the death message. Assuming of course that there is some common bit to each death message. |
|
|
 |
Tommy2143 Beginner
Joined: 10 Aug 2002 Posts: 17
|
Posted: Tue Aug 19, 2003 10:08 pm |
Err no, I meant to make that clearer
Every monster has a unique msg in that one might say "The orc warrior falls to the ground and breaths it's last!" or another might say "Her illusion shattered, the ice sorceress falls as an old hag!" (these are just examples)
MANY of the msgs begin with "The" but that's as far as the similarities goes, and it's not even in every single one. |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Wed Aug 20, 2003 1:27 am |
The best way to handle it is to go ahead and attack then trigger on the You say, "ju orc warior" to trap failures. Simply drop that one from the list and move on or dump the whole list and refresh with a #CR (if you have prompt set to full or full custom). Sure it lets people see you have a hole in your script, but there is no way to plug it. Btw, this was the method used by all of us for years. Megamud even used the same model when it came out.
I used to have a L56 D-Elf Mystic but got bored when Metro started giving fear to ever mob and its brother without making a defense for it. Then the system I played on shut down so I deleted all my scripts, otherwise I would just post mine for you. |
|
|
 |
Tommy2143 Beginner
Joined: 10 Aug 2002 Posts: 17
|
Posted: Wed Aug 20, 2003 4:12 am |
Well see, that's how I have it setup currently. When combat ends, it #cr's and refreshes the room list. And if it sees You say "attack (*)" then it clears the list and does a #cr
The problem with this is if I get blinded, I just sit there and get wailed on. I really think that with a little time I could get it to keep track of who's in the room without having to #cr alot. I mean MegaMUD figured it out, and that program sucks in my opinion. |
|
|
 |
|
|