Adding (attribute times X) to a spell

JM08

New Member
Reaction score
2
how can i add additional healing to the spell rejuvenation, using the hero's attribute?

example would be
rejuvenation heals for (1000 + (hero's intelligence / 2)) over 10 seconds
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Its an integer a hero attributes just use artmetic
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Have a periodic event of 1 second and when the spell is started turn on the trigger
 

Lumograph090

New Member
Reaction score
22
Here is an example of what a Trigger for this might look like. Mind you this is for dealing damage but you could easily change that.

Trigger:
  • Obliterate
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (==) Obliterate
    • Actions
      • Set L2 = (Position of (Triggering unit))
      • Floating Text - Create floating text that reads (String(((Strength of (Triggering unit) (Include bonuses)) x 3))) above (Target unit of ability being cast) with Z offset 0.00, using font size 12.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 90.00 degrees
      • Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Objects\Spawnmodels\Orc\Orcblood\OrdBloodWyvernRider.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Real((Strength of (Triggering unit) (Include bonuses)))) x 3.00) damage of attack type Hero and damage type Normal
      • Unit - Create 1 Dummy Unit - Undead (Buffs/Debuffs/Damage/Healing) for (Owner of (Triggering unit)) at L2 facing Default building facing (270.0) degrees
      • Unit - Set level of Obliterate (Negative Armor) for (Last created unit) to (Level of Obliterate for (Triggering unit))
      • Unit - Order (Last created unit) to Neutral Alchemist - Acid Bomb (Target unit of ability being cast)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Triggering unit) to Attack (Target unit of ability being cast)
      • Custom script: call RemoveLocation(udg_L2)


The floating text is to obviously display the damage done.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top