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
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: 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!!!!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: 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.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
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