|
JainJude Newbie
Joined: 13 Jul 2019 Posts: 5
|
Posted: Tue Jul 23, 2019 9:57 am
Coding in Zmud |
I hope someone here can help. i am trying to do something simple but i dont know know how the code works with zmud. here is what i want:
i want to beable to have a button that executes commands on the thing im attacking
chant curse (variable) chant damage (variable)
the (variable) is whatever i am focused on at the moment. can anyone help? |
|
Last edited by JainJude on Fri Jul 26, 2019 6:09 pm; edited 1 time in total |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Tue Jul 23, 2019 10:47 am |
You referance variables with the @ symbol.
First, you have to define it:
#VAR target {ogre}
or
target=ogre
Both work, see #HELP #VAR for more details.
Then when you make your trigger (best done via the settings editor) you can just put this in the body:
chant curse @target |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|