Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Disabling a skill

Discussion in 'Triggers & Scripts' started by Raging Ent, Jan 27, 2011.

  1. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    So, I have this skill that uses a dummy skill to change it.
    More detailed : a devotion aura that can be switched between giving a armor buff to allies and a armor debuff to enemies.
    But when it switches from e.g. buff to debuff, the hero is able to learn the debuff skill again.

    Is there a way to disable that?
     
  2. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    You could use
    • Unit - A unit Learns a skill


    and then manipulate the learned skill.

    Could you post a test map so I can fix the issue?
     
  3. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    Here it is, it is pretty simple but I didn't think it'd need more.
     

    Attached Files:

  4. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,978
    Resources:
    17
    Spells:
    17
    Resources:
    17
    The time for it to change from (+) to (-) has some slight delay, but that won't be a problem :)
    But from (-) to (+), there's no delay at all
    You forgot to set Boolean Variable when the unit learns that skill
    I have edited your map, check it out

    EDIT:
    It can be bugged if you Learn the skill while you're in the (-) form because natural form is (+)
    I'm lazy to fix this, haha

    EDIT 2:
    Fixed that bug
    Also, (-) increases linearly with (+)
     

    Attached Files:

    Last edited: Jan 28, 2011
  5. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    But when you max the (+) version and you switch you can still learn the (-) version (If you had a skillpoint) which would bug later on.. And if it could be fixed that the (-) version leveling stays on 1, that'd be awesome.

    But it's a step in the good direction, thanks!
     
  6. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,978
    Resources:
    17
    Spells:
    17
    Resources:
    17
    Hmmmm, never thought of that problem, lol
     
  7. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    Yeah, kinda want it fixed asap so I can finish up my map's newest version.. :p
     
  8. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,978
    Resources:
    17
    Spells:
    17
    Resources:
    17
    What's the problem exactly.. ?
    You can learn (-) ?
    How is that possible ???
    At your Hero, ONLY (+) skill is enabled at him, no (-) form at all
    So, how can he learn it ?
     
  9. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    you check it! when it switches he gains the ability to learn it >.> god knows, I hope Maker knows too.
     
  10. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    *It's now MUI
    *Fixed the first time change bug
    *It works

    --New link in post #12--
     
  11. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    Awesome, thanks Maker!
     
  12. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,174
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
  13. Raging Ent

    Raging Ent

    Joined:
    Jul 15, 2009
    Messages:
    552
    Resources:
    40
    Icons:
    34
    Packs:
    3
    Maps:
    3
    Resources:
    40
    Gosh just as I'm busy adding it to my map, well thanks again!