SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,969
Greetings, Hive!
For a long while, a triggered (yet very simple) ability has been acting very inconsistently for me and I finally decided to do greater research about it after struggling with various fixes that have failed.
So, here is the premise: I have a boss, in whose chamber Rain of Fire should start falling down periodically every 5 seconds. You engage the boss -> a periodic trigger is turned on that spawns a dummy unit for the player that owns the boss and starts channeling Rain of Fire on a random hero in the region where the fight happens.
There have been 2 major bugs that have happened with this simple idea:
1) Rain of Fire got interrupted almost immediately after the dummy unit spawned, resulting in having only 0-1 waves. This has been fixed a few days ago in a different thread. If interested (and if it matters) you can take a look at it here.
2) Occasionally Rain of Fire didn't occur at all, or if it did it was very strange -> only 1 wave with 1 'shard' of the Rain of Fire fell down. After a long time of having no idea as to when exactly this does happen and what might cause it, one of the players that play the map noted that it happens if you save the game at some point and then load it. If you engage the boss after the save/load (I am talking about regular F10 Save and Load), then it either doesn't happen at all or acts super strange as I just explained.
I am posting the only trigger related to the boss fight, which is the one that spawns the dummy every 5 seconds (initially off, turned on at the end of the boss cinematic):
I am almost certain the 2nd issue happens only after the game has been loaded. Is there any explanation for it? Can it be fixed? Thanks in advance!
For a long while, a triggered (yet very simple) ability has been acting very inconsistently for me and I finally decided to do greater research about it after struggling with various fixes that have failed.
So, here is the premise: I have a boss, in whose chamber Rain of Fire should start falling down periodically every 5 seconds. You engage the boss -> a periodic trigger is turned on that spawns a dummy unit for the player that owns the boss and starts channeling Rain of Fire on a random hero in the region where the fight happens.
There have been 2 major bugs that have happened with this simple idea:
1) Rain of Fire got interrupted almost immediately after the dummy unit spawned, resulting in having only 0-1 waves. This has been fixed a few days ago in a different thread. If interested (and if it matters) you can take a look at it here.
2) Occasionally Rain of Fire didn't occur at all, or if it did it was very strange -> only 1 wave with 1 'shard' of the Rain of Fire fell down. After a long time of having no idea as to when exactly this does happen and what might cause it, one of the players that play the map noted that it happens if you save the game at some point and then load it. If you engage the boss after the save/load (I am talking about regular F10 Save and Load), then it either doesn't happen at all or acts super strange as I just explained.
I am posting the only trigger related to the boss fight, which is the one that spawns the dummy every 5 seconds (initially off, turned on at the end of the boss cinematic):
[trigger=""]
Cast Rain of Fire
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Set Kergaloth_Group = (Units in Final Boss Area <gen> matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Backpack)))
Set Kergaloth_Point = (Position of (Random unit from Kergaloth_Group))
Unit - Create 1 Dummy (Rain of Fire) for Player 12 (Brown) at Kergaloth_Point facing Default building facing degrees
AI - Ignore (Last created unit)'s guard position
Unit - Order (Last created unit) to Human Archmage - Blizzard Kergaloth_Point
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_Kergaloth_Point)
Custom script: call DestroyGroup(udg_Kergaloth_Group)
[/trigger]
Cast Rain of Fire
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Set Kergaloth_Group = (Units in Final Boss Area <gen> matching ((((Matching unit) is A Hero) Equal to True) and ((Unit-type of (Matching unit)) Not equal to Backpack)))
Set Kergaloth_Point = (Position of (Random unit from Kergaloth_Group))
Unit - Create 1 Dummy (Rain of Fire) for Player 12 (Brown) at Kergaloth_Point facing Default building facing degrees
AI - Ignore (Last created unit)'s guard position
Unit - Order (Last created unit) to Human Archmage - Blizzard Kergaloth_Point
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_Kergaloth_Point)
Custom script: call DestroyGroup(udg_Kergaloth_Group)
[/trigger]
I am almost certain the 2nd issue happens only after the game has been loaded. Is there any explanation for it? Can it be fixed? Thanks in advance!