|
StonedMOFO Beginner
Joined: 22 Sep 2004 Posts: 28
|
Posted: 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
}
|
|
|
|
|
StonedMOFO Beginner
Joined: 22 Sep 2004 Posts: 28
|
Posted: 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! |
|
|
|
Seb Wizard
Joined: 14 Aug 2004 Posts: 1269
|
Posted: 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.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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} |
|
|
|
|
|
|