garion992
TH.net Regular
- Reaction score
- 17
hi all, i wanted to make a trigger that if you type a string you get units. trigger:
so if player 1 types create 05 01 hfoo, there will spawn 5 footman for player 1.
but it doesnt works, can someone help?
Thx Garion992
Code:
Create Units
Events
Player - Player 1 (Red) types a chat message containing create as A substring
Conditions
Actions
Unit - Create (Integer((Substring((Entered chat string), 8, 9)))) (Unit-type((Substring((Entered chat string), 14, (Length of (Entered chat string)))))) for (Player((Integer((Substring((Entered chat string), 11, 12)))))) at (Center of (Playable map area)) facing Default building facing degrees
so if player 1 types create 05 01 hfoo, there will spawn 5 footman for player 1.
but it doesnt works, can someone help?
Thx Garion992