Hey there~
Edit: Did some big changes to the description/triggers, please read through it again^^.
I need a little help with a hero ability, it is called "Miasma". The ability is based of the abominations disease cloud ability.
Miasma intoxicates nearby enemies, dealing damage over time to them. What I want to add are the following effects:
If a unit afflicted with Miasma dies, nearby enemies will be poisoned with a "different form" of Miasma - meaning, it will have probably a different duration/damage than the normal Miasma.
What is to note: Miasma is a hero ability, so that spreading part of it also should deal more damage/have a longer duration, if the hero levels Miasma up.
The idea I have is: Create a "Miasma Cloud" whenever a unit with the "Miasma" Buff dies. That "Miasma Cloud" will have an aversion of the ability "Howl of Terror", which it is ordered to use. That aversion simply reduces health regeneration of all hit units - as reduced life regeneration is practically the same as a DoT, this seems quite fine to me.
I discovered a new problem~ the ability, Miasma, gives the wrong buff. It seems to be somehow hard-coded into the base ability, Disease Cloud. This is rather annoying~ As I need to use the base-buff(Disease Cloud), to trigger all these effects. In any case, I shall post the triggers now and explain the problems with it.
1. If two heroes of the same kind are in the map (Plaguebearer), the variable can be set to the wrong Hero, as the trigger works, as it is now, only for one unit perfectly. In this case, I do not know how to change that, so some help would be appreciated.
For now, it is not that much of a problem for me: As The Hero belongs to my custom naga race, only one of them will be in the map. It just gets problematic, if more than one person would use the custom naga race at a time.
2. It conflicts with the base ability "Disease Cloud". I put in the condition "((Picked unit) belongs to an enemy of (Owner of MiasmaCaster)) Equal to True", so I can, if I play alone, at least test this skill(For balancing reasons, for example - a skill like that is rather difficult to balance).
However, if I were to ally with an undead-player, their disease cloud would also fire this trigger. Anyway, how to change that? As mentioned, I cannot change the buff of "Miasma", due to that hard-coded disease cloud.
I tried, with my knowledge, to make this spell MUI and to change whatever possible, to make the spell work out as it should, but to no avail. On the bright side: I can at least "use" the spell now and test it.
Edit: Did some big changes to the description/triggers, please read through it again^^.
I need a little help with a hero ability, it is called "Miasma". The ability is based of the abominations disease cloud ability.
Miasma intoxicates nearby enemies, dealing damage over time to them. What I want to add are the following effects:
If a unit afflicted with Miasma dies, nearby enemies will be poisoned with a "different form" of Miasma - meaning, it will have probably a different duration/damage than the normal Miasma.
What is to note: Miasma is a hero ability, so that spreading part of it also should deal more damage/have a longer duration, if the hero levels Miasma up.
The idea I have is: Create a "Miasma Cloud" whenever a unit with the "Miasma" Buff dies. That "Miasma Cloud" will have an aversion of the ability "Howl of Terror", which it is ordered to use. That aversion simply reduces health regeneration of all hit units - as reduced life regeneration is practically the same as a DoT, this seems quite fine to me.
I discovered a new problem~ the ability, Miasma, gives the wrong buff. It seems to be somehow hard-coded into the base ability, Disease Cloud. This is rather annoying~ As I need to use the base-buff(Disease Cloud), to trigger all these effects. In any case, I shall post the triggers now and explain the problems with it.
-
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
-
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.50 second Generic expiration timer to (Last created unit)
-
Events
1. If two heroes of the same kind are in the map (Plaguebearer), the variable can be set to the wrong Hero, as the trigger works, as it is now, only for one unit perfectly. In this case, I do not know how to change that, so some help would be appreciated.
For now, it is not that much of a problem for me: As The Hero belongs to my custom naga race, only one of them will be in the map. It just gets problematic, if more than one person would use the custom naga race at a time.
2. It conflicts with the base ability "Disease Cloud". I put in the condition "((Picked unit) belongs to an enemy of (Owner of MiasmaCaster)) Equal to True", so I can, if I play alone, at least test this skill(For balancing reasons, for example - a skill like that is rather difficult to balance).
However, if I were to ally with an undead-player, their disease cloud would also fire this trigger. Anyway, how to change that? As mentioned, I cannot change the buff of "Miasma", due to that hard-coded disease cloud.
I tried, with my knowledge, to make this spell MUI and to change whatever possible, to make the spell work out as it should, but to no avail. On the bright side: I can at least "use" the spell now and test it.
Last edited: