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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
struesdell
Beginner


Joined: 30 Nov 2006
Posts: 11
Location: Seattle, WA, USA

PostPosted: Tue Dec 26, 2006 8:55 pm   

[1.24] Invalid Local Variable?
 
I've had this happen a bunch, and I haven't figured out why yet.

I'll create a new trigger, such as...

has a partially damaged ($side:%w) ($limb:%w).

then, I'll try to use $side in the script.

#var %concat($side,$limb) damaged

Only to have the syntax checker report that

"Invalid Local Variable side at row 0 col 13"

Any idea what's wrong? It's working fine for $limb, and I don't see any differences between them. Is $side a reserved name? I've had this happen with $h and $m before, as well as $s.
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Tue Dec 26, 2006 11:48 pm   
 
I've seen the same thing happen. Sometimes when local variables are declared implicitly (i.e., not defined with #LOCAL), CMUD gives you an error when it shouldn't. I'm sure it will be remedied soon.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Dec 27, 2006 8:26 pm   
 
Never had it happen in localvars defined in the trigger pattern (thankfully) but I have had it happen with $localvar=value. Bit easier to remedy with the #local command in that situation.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Jan 17, 2007 10:17 pm   
 
The problem is that the #VAR command is currently not handling indirect variable assignment at all. This is on the bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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