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
Fizban1216
Apprentice


Joined: 03 Feb 2007
Posts: 170

PostPosted: Sun Feb 07, 2010 3:44 am   

Help with Simple Trigger
 
Expected this to work as it's a relatively simple trigger, but doesn't seem to:

Code:

#TRIG {The (%w) seems to be closed.} {open %1 %lastinput;%lastinput}


The first %lastinput seems to work, but not the second one.

Trying to get it to so that if I type:

e

and run into a closed door with name 'door' it will do:

open door e
e
Reply with quote
Dumas
Enchanter


Joined: 11 Feb 2003
Posts: 511
Location: USA

PostPosted: Sun Feb 07, 2010 4:13 am   
 
Doesn't this have to do with using a function as a command? Maybe change the last one to #SEND %lastinput ?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Feb 07, 2010 5:23 am   
 
Right. You cannot use a function as a solitary command. You MUST use some sort of command with it, such as #SEND as Dumas suggested, or #EXEC. It's under the changes for zMUD users in the documentation for CMUD.

Charneus
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