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


Joined: 03 Jun 2003
Posts: 2
Location: Australia

PostPosted: Tue Jun 03, 2003 3:46 pm   

Trigger outputs { }
 
Hi- I've just upgraded to 6.62 and my triggers are working okay but when it outputs the result of the trigger back the mud it does it with { } around it. Which the mud doesn't like ie - bad command.
********************************************
Trigger is as follows -

A small (%w) stone has been wedged there.


#if (%1=jade) {
imitate owl
climb rope
}{}
#if (%1=azure) {
imitate wolf
climb rope
}{}
#if (%1=amber) {
imitate hawk
climb rope
}{}
#if (%1=moon) {
imitate fox
climb rope
}{}
#if (%1=fire) {
imitate cougar
climb rope
}{}

**************************************************

If anyone of the above statements is true then it outputs text back to the mud but the text has the curly braces around it and therefore it fails.

Eg the output to the mud looks like this

{imitate cougar;climb rope}{}


The question is how do I get rid of the curly braces in the output?

Thanks
Az
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Tue Jun 03, 2003 4:23 pm   
 
Putspacesbetweenthecurlybraces,otherwisetheclientdoesn'tunderstandwhatyoumean.

like this:
} { } not: }{}
Reply with quote
DeathofOne
Beginner


Joined: 03 Jun 2003
Posts: 25

PostPosted: Tue Jun 03, 2003 4:23 pm   
 
Why do you have basic so you understand

#if (x = y) {I hate all} <{}>

The stuff inside <> is not inportant.

if you are going to do a if comand you do not need the false. Do this if this but do nothing if something else. You do not need the no nothing.
Reply with quote
Azza1
Newbie


Joined: 03 Jun 2003
Posts: 2
Location: Australia

PostPosted: Tue Jun 03, 2003 4:32 pm   
 
Yep that was to easy. It was the space between the curly braces that fixed it.

And to answer the question of why have true and the empty false curly braces...well I just think it rounds out the statement :) ...in some of my triggers in I have false statements doing things.


Thanks for the help
Az
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