shinjay5882
New Member
- Reaction score
- 0
I want to make this trigger work for all player when player 1 types it in. Something to test around with bots on a normal map.
Trigger:
- Chat Level Up
- Events
- Player - Player 1 (Red) types a chat message containing -lvlup as A substring
- Player - Player 2 (Blue) types a chat message containing -lvlup as A substring
- Player - Player 3 (Teal) types a chat message containing -lvlup as A substring
- Player - Player 4 (Purple) types a chat message containing -lvlup as A substring
- Player - Player 5 (Yellow) types a chat message containing -lvlup as A substring
- Player - Player 6 (Orange) types a chat message containing -lvlup as A substring
- Player - Player 7 (Green) types a chat message containing -lvlup as A substring
- Player - Player 8 (Pink) types a chat message containing -lvlup as A substring
- Player - Player 9 (Gray) types a chat message containing -lvlup as A substring
- Player - Player 10 (Light Blue) types a chat message containing -lvlup as A substring
- Player - Player 11 (Dark Green) types a chat message containing -lvlup as A substring
- Player - Player 12 (Brown) types a chat message containing -lvlup as A substring
- Conditions
- (Substring((Entered chat string), 1, 7)) Equal to -lvlup
- Actions
- Set tempintlvlup = (Integer((Substring((Entered chat string), 8, (Length of (Entered chat string))))))
- Set tempgrouplvlup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))
- Unit Group - Pick every unit in tempgrouplvlup and do (Actions)
- Loop - Actions
- Hero - Set (Picked unit) Hero-level to ((Hero level of (Picked unit)) + tempintlvlup), Show level-up graphics
- Loop - Actions
- Custom script: call DestroyGroup( udg_tempgrouplvlup )
- Events