- Joined
- Jul 9, 2008
- Messages
- 2,552
Been having a hard time with this... I set a new unit's ID to 1, and these are basically the triggers:
-
SpawnNPC
-

Events
-


Game - Player Any Player types a chat message containing "/spawn", matching Partially
-
-

Local Variables
-


ID = 0 <Integer>
-
-

Conditions
-

Actions
-


Variable - Set ID = (Integer((Substring((Entered chat string), 8, 12))))
-


Unit - Create 1 (Unit type from (String(ID))) for player 0 at (Current camera target of player (Triggering player)) using default facing (No Options)
-
-
-
Debug On
-

Events
-


Game - Player Any Player types a chat message containing "dbg63", matching Partially
-
-

Local Variables
-

Conditions
-

Actions
-


Variable - Set Debug = true
-
-



