Have been trying to make a game text or a floating text saying : Your hero has gained X strength. Can`t get it to show how many strength points the hero gets.
thanks in advance.
thanks in advance.
-
Events
- Player - Player 1 (Red) types a chat message containing -str max as An exact match
- Player - Player 2 (Blue) types a chat message containing -str max as An exact match
- Player - Player 3 (Teal) types a chat message containing -str max as An exact match
- Player - Player 4 (Purple) types a chat message containing -str max as An exact match
- Player - Player 5 (Yellow) types a chat message containing -str max as An exact match
- Player - Player 6 (Orange) types a chat message containing -str max as An exact match
- Player - Player 7 (Green) types a chat message containing -str max as An exact match
- Player - Player 8 (Pink) types a chat message containing -str max as An exact match
- Player - Player 9 (Gray) types a chat message containing -str max as An exact match
- Player - Player 10 (Light Blue) types a chat message containing -str max as An exact match
- Player - Player 11 (Dark Green) types a chat message containing -str max as An exact match
- Player - Player 12 (Brown) types a chat message containing -str max as An exact match
-
Conditions
- ((Triggering player) Current gold) Greater than or equal to 150
-
ActionsActions
-
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
-
Loop - Actions
- Hero - Modify Strength of (Picked unit): Add ((Player 1 (Red) Current gold) / 150)
- Player - Set (Triggering player) Current gold to (((Triggering player) Current gold) mod 150)
- Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: (Your Hero Gained + ((Substring(<Empty String>, (((Owner of (Triggering unit)) Current gold) / 150), 1)) + Strength))
-
Loop - Actions
-
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)