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

2 Questions on Passive Skills and Stacking Spells

Status
Not open for further replies.
Level 5
Joined
Dec 11, 2010
Messages
101
Hello, I think i need some clarification on 2 problems I've had for a while now.

The first one being about stacking spells;
Sear curses your opponent to take damage over time. Damage increases with each stack, stacks up to 4 times.
- How can do do this? Where if they are hit with the same spell, it refreshes and adds +1 to the stack.


The second question being about passive becoming active spells
For example, I use a spell that will grant 20% evasion, instead of having it be a passive.

Thanks :)
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
Here is your evasion.
You need a variable unit "TempUnit".
The actual Evasion ability is put in a spell book that is disabled so the icon is not shown.
Be aware that you have to change the spell book id to something that you will use for passive spell books.

The full map with only the evasion buff and tests is attached to this post.

  • Evasion
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Evasion (custom)
    • Actions
      • Custom script: local unit udg_TempUnit
      • Set TempUnit = (Casting unit)
      • Unit - Add Spell Book (evasion) to TempUnit
      • Wait 5.90 game-time seconds
      • Unit - Remove Spell Book (evasion) from TempUnit
      • Unit - Remove Evasion buff from TempUnit
I knew that I said this not very long ago.
 

Attachments

  • evasion buff.w3x
    17.5 KB · Views: 45
Level 5
Joined
Dec 11, 2010
Messages
101
Here is your evasion.
You need a variable unit "TempUnit".
The actual Evasion ability is put in a spell book that is disabled so the icon is not shown.
Be aware that you have to change the spell book id to something that you will use for passive spell books.

The full map with only the evasion buff and tests is attached to this post.

  • Evasion
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Evasion (custom)
    • Actions
      • Custom script: local unit udg_TempUnit
      • Set TempUnit = (Casting unit)
      • Unit - Add Spell Book (evasion) to TempUnit
      • Wait 5.90 game-time seconds
      • Unit - Remove Spell Book (evasion) from TempUnit
      • Unit - Remove Evasion buff from TempUnit
I knew that I said this not very long ago.

Thanks!
 
Status
Not open for further replies.
Top