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
StonedMOFO
Beginner


Joined: 22 Sep 2004
Posts: 28

PostPosted: Sat Nov 04, 2006 2:30 am   

weird error
 
Everyone should try this and tell me if they can reproduce the problem :p (or if it's just me)
write a new alias call "test"
script:
Code:

#var nextoperation e
#if (%null(@nextoperation)) {
   #show test
} {
   @nextoperation
   tell anotherplace hi
}

and run it, I get a error! but if I remove
"tell anotherplace hi" than the script work!
Code:

#var nextoperation e
#if (%null(@nextoperation)) {
   #show test
} {
   @nextoperation
}
Reply with quote
StonedMOFO
Beginner


Joined: 22 Sep 2004
Posts: 28

PostPosted: Sat Nov 04, 2006 2:34 am   umm
 
update, just do this to reproduce the error
#var nextoperation e
#alias test {@nextoperation;-ANYTHING THAT CAUSE A TRIGGER TO BE FIRE-}
test

and VOLA ERROR!
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sat Nov 04, 2006 5:01 pm   
 
There is a known problem with 'e' being assumed to be exponential that may be related to this.
Reply with quote
Zugg
MASTER


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

PostPosted: Sat Nov 04, 2006 6:04 pm   
 
No, the problem with 'e' is only when it comes after a number, like 5e

The problem is that you just have @nextoperation sitting on a line by itself. That just retrieves the value of a variable. It doesn't do anything with it. So what are you trying to do with it? If you are trying to execute it like a command, then use #EXEC. If you are trying to send it to the MUD, then use #SEND. If you are trying to display it to the screen, then use #SHOW. But just putting a variable on a line by itself is undefined and not supported.

In other words, this works fine:
Code:
#alias test {#SEND @nextoperation;whatever}
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