Here is what i have, its not really working, im probably doing somthing wrong.
Im tryin to learn how to work with this kind of stuff hahaha its neat when you do it right.
Im tryin to learn how to work with this kind of stuff hahaha its neat when you do it right.
Trigger:
- Creep Respawn Speed
- Events
- Player - Player 1 (Red) types a chat message containing -respawn as A substring
- Conditions
- (Substring((Entered chat string), 1, 11)) Equal to -respawn
- Actions
- Set CreepRespawnTime = (Real((Substring(-respawn , 10, 11))))
- Game - Display to (All players) the text: (Creep Respawn Speed Has Been Set To + (String(CreepRespawnTime)))
- Events
Trigger:
- Revive Creeps
- Events
- Unit - A unit Dies
- Conditions
- ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- CreepRespawnTime Greater than 0.00
- Then - Actions
- Wait CreepRespawnTime game-time seconds
- Unit - Create 1 (Random level CreepLevel creep unit-type) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- Else - Actions
- Wait 45.00 seconds
- Unit - Create 1 (Random level CreepLevel creep unit-type) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events