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
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Oct 03, 2006 11:17 pm   

[1.08] Weird Parser Bug
 
I have an alias that doesn't execute and I can't figure out why. Anyone else have trouble with it?

The alias is '$'. Just the dollar sign and this is the script.

#CLASS Money 1
#SEND money

And here is the compiled code.

Code:
0000   LINE   0   ; #CLASS Money 1
0012   STR   'Money'
0028   PUSHEXP   0044
0036   JUMP   0052
0044   INT   1
0052   ARGSTR   
0060   CMD   class   (2)
0072   LINE   1   ;
#SEND money
0084   STR   'money'
0100   CMD   send   (1)


It may have something to with the fact that the #send command triggers another alias that is incorrectly being changed from 'conv-step' to 'conv -step'.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Wed Oct 04, 2006 2:06 am   
 
You can't have an alias with the name of $. Aliases must start with alphabetic characters in CMUD, sorry. This was always supposed to be the rule in zMUD, even though they sometimes worked anyway.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Oct 04, 2006 3:36 am   
 
Gotcha.. I'll make the change.
_________________
Asati di tempari!
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