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
Rolly
Wanderer


Joined: 16 Oct 2006
Posts: 62

PostPosted: Mon Oct 16, 2006 1:39 pm   

Auto Enemies
 
I am fairly new to this but I want to compare the names of characters in Achaea entering my room with an enemies list. The goal is to have their names appear in a set of buttons as they enter. As someone new comes in it moves the previous names down to 9 other button and drops off after the 10th new enemy to enters so that I have the most current enemies displayed. I can push any of the 10 buttons and cause that character to become the PrimeEnemy (target). Space would normally be an issue here but the whole thing is in a class I can shut off so all the buttons go away. This is the script:

#TRIG (%1) arrives from the %w.
#VAR PossibleEnemy "%1"
#IF (!%ismember( @PossibleEnemy, @HouseEnemies)) {
@EnemyJ = @EnemyI
@EnemyI = @EnemyH
@EnemyH = @EnemyG
@EnemyG = @EnemyF
@EnemyF = @EnemyE
@EnemyE = @EnemyD
@EnemyD = @EnemyC
@EnemyC = @EnemyB
@EnemyB = @EnemyA
@EnemyA = @PossibleEnemy
}

With typical push button values:
Button name @EnemyA
@PrimeEnemy = @EnemyA
enemy @EnemyA

The problem is that it fires true with any giberish I use in the trigger phrase. Can anyone help? I plan to make similar triggers for when I enter their room or use another ability to spot them but not until this one is up and running.
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