|
Medakan Novice
Joined: 15 Dec 2015 Posts: 41 Location: Seattle
|
Posted: Wed Aug 02, 2017 9:15 am
Can't figure out the syntax error. |
I keep getting a syntax error in the zMUD settings window when I click on this setting. Works fine without any errors, but just wondering if anyone can tell me why.
Thanks!
Code: |
#ALIAS colorWeave {
#SHOW {""}
#IF (%null(%1)) {
#SHOW {" Usage: colorWeave <type> <color> [bcolor] [background color optional]"}
#SHOW {" Available colorWeave types: (shown in current set color)"}
#SHOW {" "@colorMXPhelp(%replace(@colorWeaveObserved,","," "),"Observed (you see others target)")}
#SHOW {" "@colorMXPhelp(%replace(@colorWeaveReceived,","," "),"Received (targeted at you)")}
#SHOW {" "@colorMXPhelp(%replace(@colorWeaveTargeted,","," "),"Targeted (you target)")}
#ABORT 1
} {}
#IF (%class(%concat("colorWeave",%1))=-1) {
#SAY {%1 is an invalid type selection...}
#ABORT 1
} {
#IF (%null(%2)) {
#SAY {What color is that?...}
#ABORT 1
} {}
#IF (%colorname(%2)=536870911 AND %color(%2)=0) {
#VAR %concat("colorWeave",%1) {}
#SAY {" "%2 is an invalid color. %concat("colorWeave",%proper(%1)) variable cleared.}
} {
#IF (%colorname(%3)=536870911 AND %color(%3)=0) {} {
#VAR %concat("colorWeave",%1) {%concat(%2,",",%3)}
#SHOW {Weave %proper(%1) color set: @colorMXPcolor(%subchar(%eval(%concat("@","colorWeave",%1)),","," ")}
#ABORT 1
}
#VAR %concat("colorWeave",%1) {%2}
#SHOW {Weave %proper(%1) color set: @colorMXPcolor(%subchar(%eval(%concat("@","colorWeave",%1)),","," ")}
}
}
}
|
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Wed Aug 02, 2017 7:57 pm |
#SHOW {Weave %proper(%1) color set: @colorMXPcolor(%subchar(%eval(%concat("@","colorWeave",%1)),","," ")}
Missing closing parenthesis on that snippet of code.
It is used twice. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Medakan Novice
Joined: 15 Dec 2015 Posts: 41 Location: Seattle
|
Posted: Thu Aug 03, 2017 6:30 am |
Awesome Shalimar! Sometimes a second pair of eyes is what it takes. I spent hours trying to figure it out lol.
Thank you! |
|
_________________ Taziar Medakan @ WoTMUD |
|
|
|
iosman Beginner
Joined: 06 May 2019 Posts: 10
|
Posted: Mon May 06, 2019 7:12 pm |
Written very well, Really like your blog.
|
|
|
|
|
|
|
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
|
|