- Joined
- Jul 26, 2008
- Messages
- 1,009
Alright, I'm more familiar with JASS than I am triggers, however I'm not too familiar with all the capabilities of WE Trigger Editor and JASS functions.
This is a spell that mixes Triggers with Custom Script (AKA Jass) to attempt a spell using local variables.
However, the spell doesn't seem to function at all.
It's based off of Stampede.
Here is it's tooltip description:
Causes healing energy to seep up through the earth at a targeted point in the form of water, rapidly replenishing all nearby allies over time.
Another thing I'm wondering. How do you stop the spell from working if the channeling is broken? As well, how do I make it pick every unit with 400 range of the target point or unit instead of the caster?
Thanks much
This is a spell that mixes Triggers with Custom Script (AKA Jass) to attempt a spell using local variables.
However, the spell doesn't seem to function at all.
It's based off of Stampede.
Here is it's tooltip description:
Causes healing energy to seep up through the earth at a targeted point in the form of water, rapidly replenishing all nearby allies over time.
-
Tidal Haven
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to (==) Tidal Haven (Orc Shaman)
-
Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
-
Loop - Actions
- Custom script: local integer A
-
Custom script: set A = 1
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an ally of (Triggering player)) Equal to (==) True
-
Then - Actions
- Custom script: loop
- Custom script: exitwhen A > 5 + GetUnitAbilityLevelSwapped('TidH', GetTriggerUnit()) * 2
- Unit Group - Add (Triggering unit) to (Last created unit group)
- Wait 1.00 seconds
- Special Effect - Create a special effect attached to the origin of (Picked unit) using WaterBuff.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (4.00 x (Real((Level of Tidal Haven (Orc Shaman) for (Casting unit))))))
- Custom script: set A = A + 1
- Custom script: endloop
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
-
Events
-
Tidal Haven
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to (==) Tidal Haven (Orc Shaman)
-
Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
-
Loop - Actions
- Custom script: local integer A
- Custom script: local group tempgroup
-
Custom script: set A = 1
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to (==) True
-
Then - Actions
- Custom script: loop
- Custom script: exitwhen A > 5 + GetUnitAbilityLevelSwapped('TidH', GetTriggerUnit()) * 2
- Unit Group - Add (Casting unit) to (Last created unit group)
- Special Effect - Create a special effect attached to the origin of (Picked unit) using WaterBuff.mdx
- Wait 1.00 seconds
- Custom script: call SetUnitLifeBJ( GetEnumUnit(), ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) + 2.00 + ( 4.00 * I2R(GetUnitAbilityLevelSwapped('TidH', GetSpellAbilityUnit())) ) ) )
- Special Effect - Destroy (Last created special effect)
- Custom script: set A = A + 1
- Custom script: endloop
- Custom script: set A = 0
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of (Casting unit))) and do (Actions)
-
Events
Thanks much
Last edited: