Highlight what is being attacked when variable is called

Posted by Gronka on Tue 07 Aug 2018 08:30 AM — 3 posts, 12,237 views.

#0
I have variable for target.
I have alias for attacking target.
I want to pop up a Blue note saying Attacking: @target

Variable:
<variables>
<variable name="target">s</variable>
</variables>

alias for attacking target
<aliases>
<alias
match="3some"
enabled="y"
expand_variables="y"
group="combat"
sequence="100"
>
<send>kill @target
aim 2.@target
aim 3.@target
treport</send>
</alias>
</aliases>


alias for treport as I was hoping it I use a second alias it would to there coloring part since I need a script in this alias. Can you put a script in an alias and send to world at same time? I think that would solve it.

<aliases>
<alias
match="treport"
enabled="y"
expand_variables="y"
send_to="12"
sequence="1"
>
<send>ColourNote ("white", "blue", "Attacking: @target")</send>
</alias>
</aliases>

treport ends up sending to world with no colour note.
Amended on Tue 07 Aug 2018 08:39 AM by Gronka
Australia Forum Administrator #1
Quote:

Can you put a script in an alias and send to world at same time?


Yes, you can Send stuff, eg.


Send ("kill @target")
#2
Well turns out that was pretty simple by adding your comment. Doing the below gives me the message I wanted on the screen and engages my targets. Thanks for your help!

<aliases>
<alias
match="some"
enabled="y"
expand_variables="y"
group="combat"
send_to="12"
sequence="100"
>
<send>ColourNote ("white", "blue", "Mass attacking: %1")
Send ("kill @target")
Send ("aim 2.@target")
Send ("aim 2.@target")</send>
</alias>
</aliases>