• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Multiple Activation scripts

DeltaMasterMind

Well-known member
Ok so I am not sure how I would it this to happen in herolab: I got an ability called Produce Shadow which makes all light around the player dim light which would activate all the other abilities I have setup with a User.Activation. How would (if I can) setup up that class special to force activate the other abilities?

It comes at level 12 and other abilities must be kept separate as they come in much earlier.
 
When an ability is "activated" a global tag is added to the hero. Your other scripts can check for that. In example if your ability has a unique id of cDarkness then on the hero a tag of "Activated.cDarkness" appears when you activate it.

Have your other abilities check to see if the field[abilActive].value or hero.tagis[Activated.XXXXX] is true. If either is true let the rest of the script turn on.
 
Would that "or" function look like this?:
doneif (field[abilActive].value <> hero.tagis[Activated.csSAProSha] = 0)

Edit: I am still being a dumdum.
doneif (field[abilActive].value + hero.tagis[Activated.csSAProSha] = 0)
Is what works.

Hmm seems I am at a loss for how to do this without using a script, as in I got a 20th lvl ability that could be under this but since all of it uses the GUI portion of the editor I have no idea how to add in the check without the script.
 
Last edited:
Back
Top