|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: 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?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sat Apr 17, 2010 3:05 am |
#sendraw bypasses #oninput triggers, #send does not. Not quite what I was looking for, though.
|
|
|
|
Private Adept
Joined: 10 Jan 2002 Posts: 264 Location: USA
|
Posted: 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) |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Thu Apr 22, 2010 2:39 am |
Still wondering about this.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Apr 22, 2010 6:48 am |
ZMud still does . 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 |
|
|
|
|
|