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
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Sat May 03, 2003 1:47 pm   

Targeting Script
 
A problem I run into with targeting is in group fights. There will be several enemies darting in and out of a location. By the time I target one of them he has already left and a new opponent has appeared. There is a skill called EYE which will discern all players in a location. I want to use this skill to create variables and check these variables against a enemy list. Than a picklist would be created so I can choose which enemy to attack. Here is some sample mud text.



EYE (is the mud command to discern all people in location)



You see, in your mind, Enchanter Dookukhan,
You see, in your mind, Taisho Xarxis,

Esprii the Ignorant is here.
Athena, Traitor to Darkness is here.
Maud of Springdale is here.
Meseye, the Blue Flame is here.
Apprentice Enchantress Aradhyl Aurora is here.


Maud, Meseye, and Xarxis are on my enemies list called @enemylist

Than I want to WEAVE BRILLIANCE @quicktarget


The main problem I run into is how do I check if %1, %2, or %3 is on my @enemylist and if it is how do I load the name into @quicktarget.

If anyone can help me or suggest a better way to accomplish this I would appreciate it.
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Sat May 03, 2003 8:13 pm   
 
Try a speed menu?

#MENU wb {#if (%ismember(%selword, @enemylist)) {#var @quicktarget %selword;weave brilliance @quicktarget}}

Then you can have an alias to keep hitting your @quicktarget:

#alias wb {weave brilliance @quicktarget}

Iljhar
Reply with quote
Curtis
Novice


Joined: 25 Nov 2002
Posts: 39
Location: USA

PostPosted: Sun May 04, 2003 3:02 pm   
 
I dont like to use %selword but I see how you used the %ismember command. Instead I want to load the variables from triggers.

^(%w) is here.
^(%w) (%w) is here. ect ect.

Now to load the variable I do this:

#if (%ismember( %1, @enemylist)) {#additem quicktarget %1}

This works but when I use %2 %3 or %4 is does not load the variable. Im not sure what Im doing incorrectly.
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