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
ArjenJ
Wanderer


Joined: 30 Jan 2006
Posts: 66

PostPosted: 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.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: 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... ;)
Reply with quote
ArjenJ
Wanderer


Joined: 30 Jan 2006
Posts: 66

PostPosted: Fri Dec 29, 2006 8:19 pm   
 
Thanks... that did indeed fix the problem.
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