• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Spell help

Status
Not open for further replies.
Level 11
Joined
Jul 20, 2004
Messages
2,760
Of course this is possible. You will have to use a three levels skill based on the item skill which increases maximum hit points (search for it). First level will have level 1 bonus, second level bonus for level 2 and so on... I'll call this ability "Vitality (dummy)"

To spell cast by the caster will obviously be a dummy ability, maybe base it off berserk with no effects. I'll name it Vitality. And now there are two ways: Make the spell dispellable, or of course not.

1) Dispellable
Give the duration of the berserk dummy ability to the real duration of the spell (ex: 20/25/30 seconds). It must have an unique buff of course (I'll call it Vitality (buff)). And now let's go to the trigger:

Event - An Unit Starts the effect of an ability
Conditions - Ability being cast equal to Vitality
Actions - Unit - Add Vitality (dummy) to (Triggering Unit)
- Set Level of Vitality (dummy) for (Triggering Unit) to (Level of Vitality for (Triggering Unit))
- Wait 0.10 seconds
- Wait for Condition (Triggering Unit) has Vitality (buff) equal to false checking every 0.10 seconds
- Remove Vitality (dummy) from (Triggering Unit)

2) Undispellable
This is very simple. Just give a 0.01 seconds duration to the Vitality ability, no buff necessary. And now let's go to the trigger:

Event - An Unit Starts the effect of an Ability
Conditions - Ability Being Cast equal to Vitality
Actions - Add Vitality (dummy) to (Triggering Unit)
- Set Level of Vitality (dummy) for (Triggering Unit) to (Level of Vitality for (Triggering Unit))
- Wait (20+(5*((Level of Vitality (dummy) for (Triggering Unit))-1))) seconds
- Remove Vitality (dummy) from (Triggering Unit)

*******
That's all!

~Daelin
 
Status
Not open for further replies.
Top