- Joined
- Jun 14, 2008
- Messages
- 176
(The actual question that I have is the bolded part below)
So I want to make a spell based on breath of fire.
I want to make it have 2 functions, it damages enemies AND heals allies.
To do this, I'll use items as the dummy and force the hero to use it.
I'll also make the "base ability" do nothing at all but allow it to target both "friends" and "enemies".
The item will be perishable, one item will have the Breath of Fire that heals, the other will be the one that damages.
Both items will be given to the hero and both be used at the same time. Not sure if this will actually work as intended though but I have tried using items for other custom spells(just not 2 at the same time).
Example:
For example - if the ability has 4 levels. Since the actual "base ability" itself does nothing, and it's the item that does the actual effect, there needs to be 4 items, one for each level.
I don't know how to make the trigger detect the level of ability.
Also another question, instead of having to use "4" separate abilities for 4 levels, is it possible just to make it just 1 ability with 4 levels and somehow make it detect the actual level and use that level?
I noticed that some JASS spells do that. So if the trigger does have to use some JASS, that's fine also.
Anyway, if anyone can tell me how to make a trigger detect the level of the ability being casts so that it makes the trigger use the appropriate ability, thanks.
So I want to make a spell based on breath of fire.
I want to make it have 2 functions, it damages enemies AND heals allies.
To do this, I'll use items as the dummy and force the hero to use it.
I'll also make the "base ability" do nothing at all but allow it to target both "friends" and "enemies".
The item will be perishable, one item will have the Breath of Fire that heals, the other will be the one that damages.
Both items will be given to the hero and both be used at the same time. Not sure if this will actually work as intended though but I have tried using items for other custom spells(just not 2 at the same time).
Example:
-
BreathofFireHeal
-
Events
- Unit - Hero Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to BreathofFireAbility
-
Actions
- Hero - Create BreathOfFireHeal and give it to (Triggering unit)
- Hero - Hero to use (Last created item) on (Target unit of ability being cast)
- Hero - Create BreathOfFireDamage and give it to (Triggering unit)
- Hero - Hero to use (Last created item) on (Target unit of ability being cast)
-
Events
For example - if the ability has 4 levels. Since the actual "base ability" itself does nothing, and it's the item that does the actual effect, there needs to be 4 items, one for each level.
I don't know how to make the trigger detect the level of ability.
Also another question, instead of having to use "4" separate abilities for 4 levels, is it possible just to make it just 1 ability with 4 levels and somehow make it detect the actual level and use that level?
I noticed that some JASS spells do that. So if the trigger does have to use some JASS, that's fine also.
Anyway, if anyone can tell me how to make a trigger detect the level of the ability being casts so that it makes the trigger use the appropriate ability, thanks.