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
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Sat Apr 17, 2010 12:31 am   

[3.16b] Bug? Oninput and ~
 
I have an #oninput trigger, let's call it 'bob'. When I type '~bob' on the command line, it bypasses the oninput trigger. But, if I put '~bob' in an alias and call the alias, it doesn't. Is this the intended behavior? It seems to me that they should both act the same. If I want to bypass an oninput trigger, should I always use #sendraw?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Apr 17, 2010 2:17 am   
 
#sendraw prevents ALL parsing and sends the arguments to the game as-is. #send does much the same thing, but allows for variable/expression expansion. You may need to use #execute.
_________________
EDIT: I didn't like my old signature
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Sat Apr 17, 2010 3:05 am   
 
#sendraw bypasses #oninput triggers, #send does not. Not quite what I was looking for, though.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: Sat Apr 17, 2010 5:50 pm   
 
is your bob oninput trigger anchored? ... {^bob}

you can also input on command like " bob" to bypass if so

so in an alias... %char(32)bob %-1 @variable

but yea, zmud usta bypass ~bob in aliases... i think it prolly should now as well, but doesn't

i went in after zmud import and changed all i used from ~ to %char(32)
Reply with quote
GeneralStonewall
Magician


Joined: 02 Feb 2004
Posts: 364
Location: USA

PostPosted: Thu Apr 22, 2010 2:39 am   
 
Still wondering about this.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Apr 22, 2010 6:48 am   
 
ZMud still does Wink . In CMud, the proper way to send game commands to the game from inside a setting (#trigger, #alias, etc) is to use #SENDRAW (equivalent to ~) or #SEND (allows you to expand variables and functions, but not call aliases or match triggers).
_________________
EDIT: I didn't like my old signature
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