Cfw_Master
New Member
- Reaction score
- 1
Hello,
I'm making a testing/RP map that can be used for many purposes.
I'm adding in some triggers that can set the max life, current life, gold etc...
Since I want this to be player triggered, it will be something along the lines of -hp100 which would set the hp of the selected unit to 100. However, although I know how to do the trigger without values, (such as -levelup for the hero), I don't know how to insert a value in.
Another example would be to set gold to whatever the player types in. (EX: -gold 1000 would set the player's gold amount to 1000)
Thanks for your help in advance!
EDIT: BTW, by the -hp and -gold, I mean the chat command.
I'm making a testing/RP map that can be used for many purposes.
I'm adding in some triggers that can set the max life, current life, gold etc...
Since I want this to be player triggered, it will be something along the lines of -hp100 which would set the hp of the selected unit to 100. However, although I know how to do the trigger without values, (such as -levelup for the hero), I don't know how to insert a value in.
Another example would be to set gold to whatever the player types in. (EX: -gold 1000 would set the player's gold amount to 1000)
Thanks for your help in advance!
EDIT: BTW, by the -hp and -gold, I mean the chat command.