|
ArjenJ Wanderer
Joined: 30 Jan 2006 Posts: 66
|
Posted: Fri Dec 29, 2006 6:14 pm
a trigger calling an alias |
Code: |
#IF (Equilibrium = 0) {} {@nextmove} |
when this is executed it sends whatever is in the nextmove variable to the command line and to the MUD. Sometimes there is an alias name in the variable though. In this case I want that to be processed too. but right now it somehow sends the aliasname to the MUD. How do I fix this?
thanks in advance. |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Fri Dec 29, 2006 6:21 pm |
#IF (@Equilibrium = 0) {} {#exec {@nextmove}}
Exec forces @nextmove to be expanded before parsing
Also, the if needs to be #if (@Equilibrium = 0)
rather than #if (Equilibrium = 0)
gotta put @var to get the value |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
ArjenJ Wanderer
Joined: 30 Jan 2006 Posts: 66
|
Posted: Fri Dec 29, 2006 8:19 pm |
Thanks... that did indeed fix the problem.
|
|
|
|
|
|