Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Sun Jun 18, 2006 4:49 pm   

variable errors
 
i am getting many unmatched parenthesis errors with scripts that i am copying from zmud to cmud. i checked to see if it was a problem with the script conversion, but none of those apply. in the zmud status editor all the () are dim'd meaning they have a matching pair, but in cmud it isn't.

#temp {&rname ~((&texits)~)} {
#var rname %trim(@rname)
#var texits %replace(@texits, ne, j)
#var texits %replace(@texits, nw, h)
#var texits %replace(@texits, sw, k)
#var texits %replace(@texits, se, l)
#var texits %replace(@texits, ",", |)
#var texits %sort( @texits)
}

is some of the code that shows as unmatched parenthesis. when i remove all my #var commands, and just do something simple such as #var rname fd it come up with an error "command list expected". the problem seems to lie with variables, anyone else have this experience or solution? this also won't work:

#var nrooms %mapquery( {[Name] = '@rname'})
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Sun Jun 18, 2006 8:07 pm   
 
How about this..

Code:

#temp {&rname ~((&texits)~)} {
#var rname %trim(@rname)
#var texits %replace(@texits, ne, j)
#var texits %replace(@texits, nw, h)
#var texits %replace(@texits, sw, k)
#var texits %replace(@texits, se, l)
#var texits %replace(@texits, "," , ~|)
#var texits %sort( @texits)
}

This one should be i think. Without seeing the script anyways. 

#var rname {fd}
#var nrooms %mapquery( {Name = '@rname'})
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jul 05, 2006 7:12 pm   
 
Added to bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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