Hello there.
I need help with a certain Trigger. I am not the best Triggerer, so bear with my incompetence...
The Trigger is for the ability "Miasma" - an ability based on disease cloud. A Hero ability that should poison enemies around the caster, damaging them over time - and if an enemy died by Miasma dies, they should leave behind a poison cloud that afflicts further enemies with the "Contangion" debuff, another DoT.
So far, the Trigger is at least usable - however, when to Plaguebringer's(THe Hero that has Miasma) are in the game, the variable is overwritten.. I need a fix to that. Additionally, it is important to note: As the Disease Cloud ability has it hardcoded to ALWAYS apply the buff "disease"(That cannot be changed), one needs to put in a line, so that Undead do not benefit from this Trigger.
Anyway, I hope you can help little me~ Here is the trigger:
I need help with a certain Trigger. I am not the best Triggerer, so bear with my incompetence...
The Trigger is for the ability "Miasma" - an ability based on disease cloud. A Hero ability that should poison enemies around the caster, damaging them over time - and if an enemy died by Miasma dies, they should leave behind a poison cloud that afflicts further enemies with the "Contangion" debuff, another DoT.
So far, the Trigger is at least usable - however, when to Plaguebringer's(THe Hero that has Miasma) are in the game, the variable is overwritten.. I need a fix to that. Additionally, it is important to note: As the Disease Cloud ability has it hardcoded to ALWAYS apply the buff "disease"(That cannot be changed), one needs to put in a line, so that Undead do not benefit from this Trigger.
Anyway, I hope you can help little me~ Here is the trigger:
-
Miasma Setup
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Miasma
-
Actions
- Set MiasmaCaster = (Triggering unit)
- Trigger - Turn on Miasma Group <gen>
-
Events
-
Miasma Group
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of MiasmaCaster)) Equal to True
- (((Picked unit) has buff Disease) Equal to True) or (((Picked unit) has buff Contangion ) Equal to True)
-
Then - Actions
- Unit Group - Add (Picked unit) to Miasma_Group
-
Else - Actions
- Unit Group - Remove (Picked unit) from Miasma_Group
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
-
Miasma Cloud
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) is in Miasma_Group) Equal to True
-
Actions
- Unit - Create 1 Miasma Cloud for (Owner of MiasmaCaster) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Set level of Miasma Contangion DoT for (Last created unit) to (Level of Miasma for MiasmaCaster)
- Unit - Order (Last created unit) to Neutral Pit Lord - Howl Of Terror
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Events