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
Thunderbuster
Novice


Joined: 07 Nov 2001
Posts: 45
Location: USA

PostPosted: Sun Sep 05, 2004 1:27 pm   

Back to the Nest #if
 
Ok, why is this happening...

#IF (@OutOfWater) {
#IF (@ClassCleric) {
stand
c create water @DrinkContainer
rest
}
}{#IF (@RealThirsty) {Drink Water}}

produces an unparsed result to mud... like as follows
{#IF (1) {stand;c create water Waterskin;rest}}{#IF (0) {Drink Water}}
That is exactly as it gets sent to the mud...it isn't parsing.
Oh and yes I have parsing turned on, and I get no syntax errors in the editor so it makes me believe that I have the code correct...

Thanks for help...
Reply with quote
Duindain
Novice


Joined: 14 Feb 2003
Posts: 31
Location: Perth, Australia

PostPosted: Sun Sep 05, 2004 4:28 pm   
 
put a space in between brackets at the bottom if
#IF (@OutOfWater) {
#IF (@ClassCleric) {
stand
c create water @DrinkContainer
rest
}
} {#IF (@RealThirsty) {Drink Water}}
^here


Last edited by Duindain on Sun Sep 05, 2004 4:29 pm; edited 1 time in total
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Sun Sep 05, 2004 4:29 pm   Re: Back to the Nest #if
 
Quote:

#IF (@OutOfWater) {
#IF (@ClassCleric) {
stand
c create water @DrinkContainer
rest
} {}
}{#IF (@RealThirsty) {Drink Water} {}}


I'd explicity define the else branches. If that didn't work, I would re-create the setting from the Command Line.

My ctrl-c block wrote:
#IF (@OutOfWater) {} {}
#IF (@ClassCleric) {stand;c create water @DrinkContainer;rest} {}
#IF (@RealThirsty) {Drink Water} {}


#TRIGGER {your code here} {#IF (@OutOfWater) {#IF (@ClassCleric) {stand;c create water @DrinkContainer;rest} {}} {#IF (@RealThirsty) {Drink Water} {}}}
or
#Alias your_drink_alias {#IF (@OutOfWater) {#IF (@ClassCleric) {stand;c create water @DrinkContainer;rest} {}} {#IF (@RealThirsty) {Drink Water} {}}}

I don't know why you're getting those results, but recreating should take care of the problem.

EDIT: Or do what Duindain said. Embarassed
Reply with quote
Thunderbuster
Novice


Joined: 07 Nov 2001
Posts: 45
Location: USA

PostPosted: Mon Sep 06, 2004 11:37 pm   That was it...
 
Thanks, it was the space... Man it is easy to over look the syntax.


Reguards....


SYNTAX: Another documented proof that there is no seperation between church and state.
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