• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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