|
Thunderbuster Novice
Joined: 07 Nov 2001 Posts: 45 Location: USA
|
Posted: 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... |
|
|
|
Duindain Novice
Joined: 14 Feb 2003 Posts: 31 Location: Perth, Australia
|
Posted: 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 |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: 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. |
|
|
|
Thunderbuster Novice
Joined: 07 Nov 2001 Posts: 45 Location: USA
|
Posted: 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. |
|
|
|
|
|