Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
savus
Beginner


Joined: 19 Dec 2010
Posts: 10

PostPosted: 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.. Sad
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Dec 19, 2010 11:54 pm   
 
To be able to help you we'd need alot more information. First of all what do you see when you enter a room. How do you rate the mobs?

I'd suggest you start with some reading. Introduction to Triggers, Introduction to Aliases and Introduction to Variables.
_________________
Asati di tempari!
Reply with quote
savus
Beginner


Joined: 19 Dec 2010
Posts: 10

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net