• 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.

skill help

Status
Not open for further replies.
Level 2
Joined
Nov 16, 2011
Messages
13
i am at a lost at how to make skills. i have tampered with the triggers and variables for a good 5 hours and i still cant make it work.

im trying to make a passive skill that has a 20% chance wen atking to do an aoe atk.

for example. 20% chance to prock fan of knives or quill spray wen atking or something like that. can someone help me with this? much appreciated thanks:ogre_haosis:
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
  • Events
    • Unit is attacked
  • Conditions
    • Integer - level of (passive ability) for (attacking unit) greater than or equal to 1
  • Actions
    • If / then / else
      • If - conditions
        • Real - (random percentage) less than or equal to 20
      • Then - actions
        • Set TempPoint = position of attacking unit
        • Unit - create 1 dummy caster at TempPoint
        • Unit - add a 1 second expiration timer to last created unit
        • Unit - add ability - add (fan of knives dummy) to last created unit
        • Unit - order last created unit to (Night Elf Warden - Fan of Knives)
        • Custom script: call RemoveLocation(udg_TempPoint)
  • TempPoint is a point variable
  • dummy caster is a unit based on Undead\Special\Locust, with no model (set art - model to ".mdl") and no attack
  • fan of knives dummy is an ability based on fan of knives, set to a unit ability (set hero = false), with no mana cost and a cooldown greater than 1
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Something like this usually works:

  • Fan of Knives
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of Passive Ability for (Attacking unit)) Greater than 0
    • Actions
      • Set randInt = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • randInt Less than or equal to 20
        • Then - Actions
          • Set tempLoc = (Position of (Attacking unit))
          • Unit - Create 1 Dummy for Player 1 (Red) at tempLoc facing 0.00 degrees
          • Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
          • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
          • Custom script: call RemoveLocation( udg_tempLoc )
        • Else - Actions
"Dummy" is a dummy unit with the ability you wish to activate (whether this is quill spray, fan of knives or something completely different - doesn't matter).
The Dummy must also have the locust-ability, no model, no shadow, no food cost, no vision, no attacks, etc.

Edit: hah, only 10 minutes too late :3

tempLoc / tempPoint are point variables.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Why dont you use the default orc skill, wich name i already forgot, that has a chance to slam the ground and deal AoE dmg?

<< EDIT >>
Thanks to rulerofiron99 for the ability name: Pulverize
 
Status
Not open for further replies.
Top