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
mbalvetti
Newbie


Joined: 12 Mar 2007
Posts: 6
Location: Italy

PostPosted: Mon Mar 12, 2007 10:08 am   

Newbie question about aliases and triggers
 
Hi, I have two pg on the same mud but they use different aliases and triggers.
I put all in the same container but some of them collide like:
cast strength Joy if Joy is the player and
cast strength Miriam if Miriam is the player

Thanks a lot,

mbalvetti
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Mar 12, 2007 11:43 am   
 
If you're using the autologin system, you can use %char instead of the name of the character.

#alias blah {cast strength %char}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
mbalvetti
Newbie


Joined: 12 Mar 2007
Posts: 6
Location: Italy

PostPosted: Mon Mar 12, 2007 12:25 pm   Alias and Triggers
 
Thanks a lot :)
I solve 90% of my problems ...

But if I have two characters with different skills mode:
cast 'pstrength' Joe for a psionic

and

cast 'strength' Jimmy for a warrior

and the message from the mud is the same:

"You loose your strength"

how can I do to select the appropriate command ?

Thanks again
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Mar 12, 2007 3:43 pm   
 
Try this:

#alias {cast %if(%char=Jimmy,strength)%if(%char=Joe,pstrength) %char}

or

#alias {#if (%char=Jimmy) {cast strength %char};#if (%char=Joe) {cast pstrength %char}}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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