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

Spell Request

Status
Not open for further replies.
Level 8
Joined
Nov 30, 2012
Messages
255
can i request a spell
here it is:

Uppercut
Passively adds a critical strike and will cause his attack to launch the victim in the air to his next attack, has a cooldown.

Level 1 : 1.5 damage multiplier, 10 second cooldown
Level 2 : 1.75 damage multiplier, 8 second cooldown
Level 3 : 2.0 damage multiplier, 6 second cooldown
Level 4 : 2.5 damage multiplier, 4 second cooldown
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
ok, I made it. However I was not able to test it but it will atleast give you a hint on how to do it.
I used my knockup system @spell section and a DDSmade by weeps.
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set KU_hash = (Last created hashtable)
      • Set KU_chance = 25
      • Set KU_damage[1] = 1.25
      • Set KU_damage[2] = 1.50
      • Set KU_damage[3] = 1.75
      • Set KU_CD = 10.00
  • spell
    • Events
      • Game - GDD_Event becomes Equal to 1.00
    • Conditions
      • (GDD_DamageSource is in KU_group) Equal to False
      • (Level of (Ability being cast) for GDD_DamageSource) Greater than 0
      • (Random integer number between 1 and 100) Equal to (100 x (Integer((0. + (String(KU_chance))))))
    • Actions
      • Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing (GDD_Damage x KU_damage[(Level of (Ability being cast) for GDD_DamageSource)]) damage of attack type Spells and damage type Normal
      • Set KUS_target = GDD_DamagedUnit
      • Set KUS_effect = Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Set KUS_height = 300.00
      • Set KUS_speed = 5.00
      • Set KUS_animation = Attack
      • Trigger - Run prepare <gen> (checking conditions)
      • Custom script: call SaveReal(udg_KU_hash. GetHandleId(udg_GDD_DamageSource), 1, 0.00)
      • Unit Group - Add GDD_DamageSource to KU_group
  • loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in KU_group and do (Actions)
        • Loop - Actions
          • Custom script: local integer h = GetHandleId(GetEnumUnit())
          • Custom script: local real r = LoadReal(udg_KU_hash, h, 1) + 0.03
          • Custom script: if r >= udg_KU_cd then
          • Unit Group - Remove (Picked unit) from KU_group
          • Custom script: endif
 
Last edited:
Status
Not open for further replies.
Top