Hello there~ I got regular access to internet again after a long long break, filled with some complications~ But well, without further ado - lets get to the problem in question.
I already posted this problem ages ago, but I have not found a solution, so I'll repost it.
I want to create an ability based of disease cloud(Miasma), that poisons enemies around my Hero. If a poisoned enemy dies, enemies near the dying enemy should be affected by a different poison, which reduces life regeneration. Once an enemy affected by any of these poisons dies, the poison will once again spread. Important is, that the poisons should stack and that both deal damage according to the level of Miasma. The trigger I have so far looks like this:
1. If you create an ability with "Disease Cloud" as base ability, if will ALWAYS give the "Disease"-buff. Does anyone know how to prevent that?
2. I made some adjustments to prevent some nuisances with the undead's disease buff, but if my custom race(Naga) allies with undead and uses the Hero "Plaguebringer", which has the miasma ability, the undead's disease cloud will create that "Contangion"-effect.
3. The Trigger bugs around a lot, if there are 2 Plaguebringers in the game, due to the new one overwriting the "MiasmaCaster"-Variable all the time.
So, these are the problems. Any idea how to solve them? Answers would please me a lot and lots~:3
I already posted this problem ages ago, but I have not found a solution, so I'll repost it.
I want to create an ability based of disease cloud(Miasma), that poisons enemies around my Hero. If a poisoned enemy dies, enemies near the dying enemy should be affected by a different poison, which reduces life regeneration. Once an enemy affected by any of these poisons dies, the poison will once again spread. Important is, that the poisons should stack and that both deal damage according to the level of Miasma. The trigger I have so far looks like this:
-
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
1. If you create an ability with "Disease Cloud" as base ability, if will ALWAYS give the "Disease"-buff. Does anyone know how to prevent that?
2. I made some adjustments to prevent some nuisances with the undead's disease buff, but if my custom race(Naga) allies with undead and uses the Hero "Plaguebringer", which has the miasma ability, the undead's disease cloud will create that "Contangion"-effect.
3. The Trigger bugs around a lot, if there are 2 Plaguebringers in the game, due to the new one overwriting the "MiasmaCaster"-Variable all the time.
So, these are the problems. Any idea how to solve them? Answers would please me a lot and lots~:3