1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

2 Questions on Passive Skills and Stacking Spells

Discussion in 'World Editor Help Zone' started by Impereal Gardian, Dec 7, 2014.

  1. Impereal Gardian

    Impereal Gardian

    Joined:
    Dec 11, 2010
    Messages:
    100
    Resources:
    0
    Resources:
    0
    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 :)
     
  2. Tickles

    Tickles

    Joined:
    Aug 13, 2011
    Messages:
    663
    Resources:
    4
    Maps:
    4
    Resources:
    4
    Here's an example map of how Sear's debuff can stack. It just detects for the previous buff the unit has in order to increase it.
     

    Attached Files:

  3. Impereal Gardian

    Impereal Gardian

    Joined:
    Dec 11, 2010
    Messages:
    100
    Resources:
    0
    Resources:
    0
    Woah, thanks :D! Now, what if I had it do a slow that stacks? like 10/20/30/40% per stack?
    EDIT: Just noticed the values in the Sear spells have a movement speed thing
     
  4. Tickles

    Tickles

    Joined:
    Aug 13, 2011
    Messages:
    663
    Resources:
    4
    Maps:
    4
    Resources:
    4
    You can replace the dummy skills with the ability Slow from the sorceress like in this map if you want attack speed reduced too.
     

    Attached Files:

  5. Impereal Gardian

    Impereal Gardian

    Joined:
    Dec 11, 2010
    Messages:
    100
    Resources:
    0
    Resources:
    0
    Alright, looks easy enough now :)

    Now I gotta find out how to turn passive skills into actives

    +rep'd
     
  6. Wietlol

    Wietlol

    Joined:
    Aug 1, 2013
    Messages:
    4,638
    Resources:
    3
    Spells:
    3
    Resources:
    3
    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.
     

    Attached Files:

  7. Impereal Gardian

    Impereal Gardian

    Joined:
    Dec 11, 2010
    Messages:
    100
    Resources:
    0
    Resources:
    0
    Thanks!