zoidbergZA
New Member
- Reaction score
- 0
hi guys, i've got a spell made in GUI that is a channeling ability but that isn't MUI. i have just started to try and learn JASS but i still find it very difficult. If anybody can make this ability MUI i would really appreciate it.
The spell is channeling, it boosts the life of the target by 5% of the caster's max HP per second. 4 levels increases the duration per level. i used the "channel" ability as a base and dummy units to get the desired channel effect.
The spell is channeling, it boosts the life of the target by 5% of the caster's max HP per second. 4 levels increases the duration per level. i used the "channel" ability as a base and dummy units to get the desired channel effect.
Trigger:
- turn on
- Events
- Unit - A unit Begins channeling an ability
- Conditions
- (Ability being cast) Equal to Boost Life
- Actions
- Unit - Create 1 channel dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
- Set ability_boost_life1[1] = (Last created unit)
- Unit - Create 1 channel dummy for Player 8 (Pink) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
- Set ability_boost_life1[2] = (Last created unit)
- Set ability_boost_life1[3] = (Casting unit)
- Set ability_boost_life1[4] = (Target unit of ability being cast)
- Unit - Add channel effect to ability_boost_life1[1]
- Unit - Order ability_boost_life1[1] to Human Blood Mage - Siphon Mana ability_boost_life1[2]
- Special Effect - Create a special effect attached to the overhead of ability_boost_life1[4] using Abilities\Spells\Other\Drain\DrainCaster.mdl
- Set ability_boost_life2 = (Last created special effect)
- Trigger - Turn on timed actions <gen>
- Trigger - Turn on turn off <gen>
- Events
Trigger:
- timed actions
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- Unit - Move ability_boost_life1[2] instantly to (Position of ability_boost_life1[4])
- Unit - Set life of ability_boost_life1[4] to ((Life of ability_boost_life1[4]) + ((Max life of ability_boost_life1[3]) / 200.00))
- Events
Trigger:
- turn off
- Events
- Unit - A unit Stops casting an ability
- Conditions
- ((Ability being cast) Equal to channel effect ) or ((Ability being cast) Equal to Boost Life )
- Actions
- Trigger - Turn off timed actions <gen>
- Unit - Remove ability_boost_life1[1] from the game
- Unit - Remove ability_boost_life1[2] from the game
- Unit - Order ability_boost_life1[3] to Stop
- Special Effect - Destroy ability_boost_life2
- Events