• 🏆 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] Spells based on stats

Status
Not open for further replies.
Level 12
Joined
Oct 16, 2010
Messages
680
For a stat based spell u need to trigger the damage by yourself.
An instant spell could be done easily , a projectile is more difficult to trigger the damage actually when it hits.

  • Events
    • Unit - a unit starts the effect of an ability
  • Conditions
    • Condition - (ability being cast) equals to 'your spell'
  • Actions
    • Unit - make (triggering unit) damage 'your target' for 3*(INT of(triggering unit)) ...
 
Level 14
Joined
Nov 17, 2010
Messages
1,265
Lender is correct, projectiles are tricky but if you search you can find projectile systems here on the Hive. There are also Damage Detection Systems that can calculate when damage is taken (when a projectile hits) and then change the damage through triggers.
 
Level 14
Joined
Nov 17, 2010
Messages
1,265
You can use your DDS to detect when a projectile hits then calculate the damage with triggers. In the case you mentioned you would want to deal (3 x real(int of caster)) + 250.

To get the int of your caster you will need to use the conversion = integer to real. The rest is done using the arithmetic function.
 
Level 12
Joined
Oct 16, 2010
Messages
680
before start setting hero stat chose multiplication option then set one of it to 3 and the other to real(int of caster))

1. () + ()
2. ([]*[]) + ()

3. set values (3 * real(int of caster)) + 250

thats why i hate GUI... clicks and clicks and clicks and ..... never ends:/

imagine if you would have to make a line - point distance calculation like this:D
 
Status
Not open for further replies.
Top