• 🏆 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!

Spell Damage Based on Atk damage

Status
Not open for further replies.

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,266
You need to be more specific for us to understand your question.

Just asking for a system is hard since we do not know your specification and your goals with such a system which uses a units attack damage to deal spell damage to a different unit.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
I wanna know this system too
Something along "GetUnitDamage" or something
Example:
  • Example
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Storm Bolt
    • Actions
      • Custom script: call GetUnitDamage(GetTriggerUnit())
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing *Damage set up by script* damage of attack type Spells and damage type Normal
I know it's f*cking incorrect usage of JASS script but you'll get what I mean, right ?
 
Status
Not open for further replies.
Top