Variables and Targetted Emoting in Nexus

by Kaalak

Back to Mechanic's Corner.

Kaalak2008-04-19 22:15:18
So my objective is to get variables to work with targetted emotes in the following way:

Desired output:
Seen by observers in the room: Kaalak snickers at Ashteru, mocking his tiny claws.
Seen by target (Ashteru): Kaalak snickers at you, mocking your tiny claws.



If I know the target is "Ashteru" the alias would be....
alias deadelf
emote snickers at ^Ashteru, mocking ^Ashteru_his tiny claws.

Thats all fine and good, but I want to make an alias that can target anyone. For example....
alias deadelf
emote snickers at ^$1, mocking ^$1_his tiny claws.

input: deadelf

The problem is I'm getting the output
I'm sorry, I do not see $1 here.


Thoughts?


---------------------------------------------

Reference

TARGETTED EMOTING
=================
Emoting uses a simple language, which can be used to refer other characters and
objects around you.

To make it a bit easier to understand, we have provided a table.

Symbol Reference Target sees
^john John you
^john_him him/her you
^john_he he/she you
^john_his his/her your
^john's John's your

Example:

EMOTE turns to ^estarra, reaching out and shaking ^estarra_his hand,
smiling widely.

What is seen by Estarra:
Roark turns to you, reaching out and shaking your hand, smiling widely.

What is seen by Everyone:
Roark turns to Estarra, reaching out and shaking his hand, smiling widely
Rika2008-04-19 22:28:29
It seems the problem is that Nexus isn't reading the $1 because you have ^ (and _his after for the second bit) in front of it. I don't think there is any way around it.
Unknown2008-04-21 21:45:12
Have you tried #send?

Try this although I am not sure it will work.
CODE
Alias
deadelf

Script
#send emote snickers at ^$1, mocking ^$1_his tiny claws.


Or try to set it as a trigger. If your machine is fast enough it should catch what you type in and be able to trigger it.

CODE
trigger
deadelf {w:targ}

Script
#send emote snickers at ^$targ, mocking ^$targ_his tiny claws.
Kaalak2008-04-25 05:21:20
QUOTE(TAea @ Apr 21 2008, 02:45 PM) 504374
Have you tried #send?

Try this although I am not sure it will work.
CODE
Alias
deadelf

Script
#send emote snickers at ^$1, mocking ^$1_his tiny claws.

Thanks for the ideas! Unfortunately I'm getting the same results:

I'm sorry, I do not see $1 here.

QUOTE(TAea @ Apr 21 2008, 02:45 PM) 504374
Or try to set it as a trigger. If your machine is fast enough it should catch what you type in and be able to trigger it.

CODE
trigger
deadelf {w:targ}

Script
#send emote snickers at ^$targ, mocking ^$targ_his tiny claws.

I'm sorry, I do not see $targ here.


Also I tried the following

CODE
Variable
target = Ashteru

Script
#send emote snickers at ^$target, mocking ^$target_his tiny claws.


Still didn't work.
Rika2008-04-25 05:25:06
Nexus probably won't let you do it, unfortunately.
Kaalak2008-04-25 06:53:26
So issued myself to see if this functionality even existed and the response back was essentially 'we don't do that, try asking other nexus users.'

Shiri, Bashara do you know of any ways to do this? Otherwise I'll send it to ideas.
Unknown2008-04-25 11:18:18
I'm no Nexus user, but how about this? (Note the underscores after the #SEND commands.)

CODE
#SEND_ emote snickers at ^
#SEND_ $target
#SEND_ , mocking ^
#SEND_ $target
#SEND _his tiny claws.