|
Intense5 Beginner
Joined: 02 Aug 2013 Posts: 10
|
Posted: Tue Mar 03, 2015 3:38 am
Help! Cant get this trigger working |
Hello I am trying to make this work but I simply cant..
When I type info there is a line that shows this information:
You have 377/377 hit, 103/103 mana, and 112/112 movement points.
I want that information to be stored in 3 different variables.
hpnow, mananow and mpnow
and I want to be able to write
"scen" and once I do that it is supposed to
emote Reports: hpnow, mananow and mpnow.
and I also want a command
"sce" that will only do
emote Reports: hpnow, and mpnow.
Is there any kind soul out there that can help me with this? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Tue Mar 03, 2015 5:32 am |
#TR {You have (%d)/(%d) hit, (%d)/(%d) mana, and (%d)/(%d) movement points.} {
hpnow=%1
hpmax=%2
mananow=%3
manamax=%4
mpnow=%5
npmax=%6
}
#ALIAS scen {emote reports: @hpnow, @mananow, @mpnow}
#ALIAS sce {emote reports: @hpnow, @mpnow} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Intense5 Beginner
Joined: 02 Aug 2013 Posts: 10
|
Posted: Tue Mar 03, 2015 6:08 pm |
cool..thanks alot :)
can anyone explain why I have to change all my triggers from XML to zscipt to make them work? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Tue Mar 03, 2015 10:26 pm |
you shouldn't have to
the script text tab is for zscript (or whatever other language you set it to use)
the XML tab shows you the XML version of the same thing |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|