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


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Sun Sep 09, 2012 9:48 pm   

Multiple Variable Camparrisons
 
Not sure how easy or not this is -

OK I put names into variables

@knighs (Bill|Bob|Greg)
@Bards (Barry|Des|Lloyd)
@Mages (Lucie|Zac)

ok so as people change profession sometimes I wanted to maybe try and look for doubles like

if i type Bards and I see Barry - great
but if I type Bards and see Lucie - I want to show she was Mage - now Bard

Is the best way to do alias Profession
#If %1 %ismember(knights) {#show Knight} {%ismember(Bards) {#show Bard}}

etc etc
Reply with quote
stark62
Wanderer


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: Sun Sep 09, 2012 11:39 pm   
 
Thought another way if its easier - have text thats says

Barry Evil Mages
Bob Good Wizard
Greg Good Sorcerer
Bill Evil Knight
Lucie Good Paladin

ok so i could group and check magic v fighters if i could do something like

#If %3 = (Mages|Wizard|Sorcerer) then #additem Magicians %1

I know thats wrong just trying to show type thing im doing
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