• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Uther's Party blade effect

Status
Not open for further replies.
Level 13
Joined
Mar 14, 2008
Messages
848
Hey people , if you ever played Uther Party and played with that swordmasters , you noticed that they have a skill which automatically swings the blade in direction that swordmaster is facing . Can any of you explain me , how to make that kind of skill ?
 
  • Attack
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Owner of (Casting unit)) Equal to Player 1 (Red)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Attack (Z)
        • Then - Actions
          • Set Casting_Unit_Loc[(Player number of (Owner of (Casting unit)))] = ((Position of (Casting unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
          • Set Hit_Group[(Player number of (Owner of (Casting unit)))] = (Units within 100.00 of Casting_Unit_Loc[(Player number of (Owner of (Casting unit)))] matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
          • Unit Group - Pick every unit in Hit_Group[(Player number of (Owner of (Casting unit)))] and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing (100.00 + ((Real((Strength of (Casting unit) (Include bonuses)))) x 2.50)) damage of attack type Spells and damage type Normal)
          • Unit Group - Pick every unit in Hit_Group[(Player number of (Owner of (Casting unit)))] and do (Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl)
          • Custom script: call DestroyGroup( udg_Hit_Group[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
          • Custom script: call RemoveLocation( udg_Casting_Unit_Loc[GetConvertedPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))] )
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
this works for one player, based spell is tount/channel/summon a spell with no target, make an animation name for attack
 
Status
Not open for further replies.
Top