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


Joined: 15 Dec 2015
Posts: 41
Location: Seattle

PostPosted: 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)),","," ")}
         }
      }
   }
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Medakan
Novice


Joined: 15 Dec 2015
Posts: 41
Location: Seattle

PostPosted: 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
Reply with quote
iosman
Beginner


Joined: 06 May 2019
Posts: 10

PostPosted: Mon May 06, 2019 7:12 pm   
 
Written very well, Really like your blog.
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