- Joined
- Apr 13, 2007
- Messages
- 17
Hey there, i need help with 2 spells. The first one is a passive ability that gives the hero 0.5/1.0/1.5% attack speed for each point of strength he has. That advanced trigger was the only one i could find that could increase attack rate for a hero/unit. The spell doesnt have to be MUI, i would prefer if it could be done in GUI, but jass is ok too.
You cast it on a unit friendly or unfriendly, and all units around that unit gets knockbacked+slowed+damaged.
This is what i have done so far:
-
Holy Strength
-
Events
- Unit - Lieutenant 0318 <gen> Learns a skill
-
Conditions
- (Learned Hero Skill) Equal to Special Chen - Attribute Bonus
-
Actions
- Advanced - For (Owner of Lieutenant 0318 <gen>) Increase attack rate for all units that use the Human Upgrade Set 1 by (((Real((Level of Holy Strength for Lieutenant 0318 <gen>))) x 0.50) x (Real((Strength of Lieutenant 0318 <gen> (Include bonuses)))))
-
Events
You cast it on a unit friendly or unfriendly, and all units around that unit gets knockbacked+slowed+damaged.
This is what i have done so far:
-
ProtectINIT
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Protect
-
Actions
- Set ProtectCaster = (Triggering unit)
- Set ProtectTarget = (Target unit of ability being cast)
- Trigger - Turn on ProtectEffect <gen>
-
Events
-
ProtectEffect
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
- Set ProtectTargetGrp = (Units within (100.00 + (50.00 x (Real((Level of Protect for ProtectCaster))))) of (Position of ProtectTarget) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of ProtectCaster)) Equal to True)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- KnockbackCounter Less than 5.00
-
Then - Actions
- Unit - Create 1 Dummy for (Owner of ProtectCaster) at ProtectCasterLoc facing Default building facing (270.0) degrees
- Unit - Add ProtectDummy to (Last created unit)
- Unit - Set level of ProtectDummy for (Last created unit) to (Level of Protect for ProtectCaster)
- Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
- Unit Group - Pick every unit in ProtectTargetGrp and do (Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 60.00 towards (Angle from (Position of ProtectCaster) to (Position of (Picked unit))) degrees))
- Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Set KnockbackCounter = (KnockbackCounter + 1.00)
-
Else - Actions
- Set KnockbackCounter = 0.00
- Trigger - Turn off (This trigger)
-
If - Conditions
-
Events