|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Sun Apr 15, 2007 4:50 am
#echo and staying on the same line |
To make this short I do this
Trigger:
(%w) directs a dazzling ray of divine light at you.
Command
#if (%ismember( %1, @Syssin)) {#echo ILLUSION!!! SYSSIN!!!!}
Problem is, it shows up like:
Kendra directs a dazzling ray of divine light at you.
ILLUSION!!! SYSSIN!!!!
I'd prefer as to not create any extra lines:
Kendra directs a dazzling ray of divine light at you. ILLUSION!!! SYSSIN!!!! |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Apr 15, 2007 6:42 am |
You could just sub it out. For instance, use this:
#TRIGGER {(%w) directs a dazzling ray of divine light at you.} {#if (%ismember( %1, @Syssin)) {#SUB {%trigger ILLUSION!!! SYSSIN!!!!}}}
And there you go. You can even color the illusion using %ansi(color). Enjoy.
Charneus |
|
|
|
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Fri Apr 20, 2007 7:57 pm |
It's not that I want to sub it, until I'm sure the trigs are working properly.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri Apr 20, 2007 11:06 pm |
The trigger I gave you will work properly. And in fact, it does exactly what you want it to do. It'll check to see if the person casting it is a member of the string variable Syssin, and if the person is, it'll return the trigger line with ILLUSION!!!! SYSSIN!!!!. Here's output from my MUD directly, with the above trigger.
Code: |
Variable Syssin contains: PlayerA|PlayerB
Command:
#say PlayerA directs a dazzling ray of divine light at you.
Returns:
PlayerA directs a dazzling ray of divine light at you. ILLUSION!!!! SYSSIN!!!!
#say PlayerB directs a dazzling ray of divine light at you.
Returns:
PlayerB directs a dazzling ray of divine light at you. ILLUSION!!!! SYSSIN!!!!
#say PlayerC directs a dazzling ray of divine light at you.
Returns:
PlayerC directs a dazzling ray of divine light at you. |
Feel free to test it out. Now, if you're talking about something else not correcly causing your trigger to fire, then say something. Otherwise, you're better off testing a suggestion and finding that it works rather than just saying you want to "wait until /you're/ sure the trigs are working properly."
Charneus |
|
|
|
|
|