Archideas
Active Member
- Reaction score
- 32
Right, so I'm trying to make a spell that burns away 20%/30%/40% of current mana of the picked enemy units and deals that amount in damage. I'm not really certain this formula I have so far is correct so I'm turning to you guys to help me out.
Trigger:
- Almagest
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Almagest
- Actions
- Set HeroCaster = (Casting unit)
- Set HeroCastPoint = (Position of HeroCaster)
- Set HeroCastUnitGrp = (Units within 600.00 of HeroCastPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of HeroCaster)) Equal to True))))
- Unit Group - Pick every unit in HeroCastUnitGrp and do (Actions)
- Loop - Actions
- Unit - Cause HeroCaster to damage (Picked unit), dealing ((Mana of (Picked unit)) x (0.10 + (0.10 x (Real((Level of Almagest for HeroCaster)))))) damage of attack type Spells and damage type Normal
- Unit - Set mana of (Picked unit) to ((Mana of (Picked unit)) x (0.10 + (0.10 x (Real((Level of Almagest for HeroCaster))))))
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Custom script: call DestroyGroup( udg_HeroCastUnitGrp )
- Custom script: call RemoveLocation( udg_HeroCastPoint )
- Events