• 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] 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,266
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,266
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