|
mbalvetti Newbie
Joined: 12 Mar 2007 Posts: 6 Location: Italy
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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} |
|
|
|
mbalvetti Newbie
Joined: 12 Mar 2007 Posts: 6 Location: Italy
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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}} |
|
|
|
|
|