Kayoss666
Member
- Reaction score
- 7
i have two triggers to revive the creeps in my dungeons. i did display checks to make sure it all works and according to the display text it should but it doesn't. instead of the creep appearing where it should it appears at point 0, 0. i dont know why.
Trigger 1- stores the starting locations.
trigger 2 - revives them when they die
the displays in trigger two also show the right values but for some reason the creeps are revived at 0, 0. i really am at a loss on why:banghead:?
Trigger 1- stores the starting locations.
Trigger:
- DungeonCreepRevive
- Events
- Conditions
- Actions
- Set DCreep_Count = 0
- Wait 1.00 seconds
- Unit Group - Pick every unit in DungeonCreeps and do (Actions)
- Loop - Actions
- Game - Display to (All players) the text: (String(DCreep_Count))
- Set DCreep_Count = (DCreep_Count + 1)
- Set DCreep_Start_Position[DCreep_Count] = (Position of (Picked unit))
- Unit - Set the custom value of (Picked unit) to DCreep_Count
- Game - Display to (All players) the text: ((String((X of DCreep_Start_Position[DCreep_Count]))) + (, + (String((Y of DCreep_Start_Position[DCreep_Count])))))
- Game - Display to (All players) the text: (String((Number of units in DungeonCreeps)))
- Loop - Actions
trigger 2 - revives them when they die
Trigger:
- ReviveDCreeps
- Events
- Unit - A unit Dies
- Conditions
- ((Dying unit) is in DungeonCreeps) Equal to True
- Actions
- Game - Display to (All players) the text: (String((Custom value of (Dying unit))))
- Game - Display to (All players) the text: ((String((X of DCreep_Start_Position[(Custom value of (Dying unit))]))) + (, + (String((Y of DCreep_Start_Position[(Custom value of (Dying unit))])))))
- Wait (Random real number between 20.00 and 25.00) seconds
- Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at DCreep_Start_Position[(Custom value of (Dying unit))] facing (Random angle) degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
- Unit Group - Add (Last created unit) to DungeonCreeps
- Cinematic - Ping minimap for (All players) at (Position of (Last created unit)) for 1.00 seconds
- Events
the displays in trigger two also show the right values but for some reason the creeps are revived at 0, 0. i really am at a loss on why:banghead:?