wilze
Active Member
- Reaction score
- 3
How do I modify a units damage/armor with a chat command? :banghead:
I have already made trigger that sets the health and mana of the unit to a requested value (after a tutorial by Tom Jones). Now I need help with this! Thanks in advance!
Edit: One more question, how would I make this trigger loop the unit animation?
I have already made trigger that sets the health and mana of the unit to a requested value (after a tutorial by Tom Jones). Now I need help with this! Thanks in advance!
Edit: One more question, how would I make this trigger loop the unit animation?
Trigger:
- Play Animation
- Events
- Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
- Conditions
- (Substring((Entered chat string), 1, 4)) Equal to play
- Actions
- Unit Group - Pick every unit in Group_A and do (Actions)
- Loop - Actions
- Animation - Play (Picked unit)'s (Substring((Entered chat string), 6, (Length of (Entered chat string)))) animation
- Loop - Actions
- Unit Group - Pick every unit in Group_A and do (Actions)
- Events