|
savus Beginner
Joined: 19 Dec 2010 Posts: 10
|
Posted: Sun Dec 19, 2010 6:34 pm
auto whacking aggro mobs first |
ok, im not to good with coding. i would like to walk into a room and rate the mobs 1-10 based on their aggression. after that i would like to set up an alias to whack the mob with the highest rating first. please help..
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
|
_________________ Asati di tempari! |
|
|
|
savus Beginner
Joined: 19 Dec 2010 Posts: 10
|
Posted: Mon Dec 20, 2010 8:44 am |
thank you for your quick response first of all. i am able to make basic triggs and aliases. when i enter a room i see the room title, room description, any object in the room, and then a list of mobs that are there. i would like to rate the mobs on a greater than 0 basis 10 being the most aggressive. after that i would like to set up an alias that will attack the highest rated mob in the room first. Valheru is the mud that i play. i am using a mac computer with windows installed so that i can use zmud. im not to sure about variables, but i would believe that is what i would use to rate a mob greater than zero. i know it can be done just not sure how to go about it.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Mon Dec 20, 2010 9:20 am |
I would suggest a dbVariable to store the ratings, and a stringlist to hold current room contents.
You will need to populate the variable yourself, by trigger or by hand, but the command to do so should look something like this:
#ADDKEY mobRatings {MobName=Rating#}
#ADDITEM mobsHere {MobName}
You will need an alias most likely, to loop through @mobsHere and determine which mob is currently rated the highest, so you can define @target and initiate combat.
Triggers on death for cleanup is good too. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|