• 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

Add Global Ability

AndrewD2

Well-known member
I need to add an ability to every class that has a Monk's Ki Pool ability. Basically I need a check box on the in-play tab that I can have a number of feats be activated off.

It's for being "Ki Focused" and I have a number of feats that do something specific when Ki Focused and I was hoping for being able to add a single checkbox to all classes that have the ability instead of having to add an activation for each feat.

Any advice?
Andrew
 
you should be able to either add a template or mechanic to bootstrap in "Ki Focused" either method should work.
 
I'm trying to go the mechanic route. I've created a Ki Focused Ability that just has "Show in activated abilities list" turned on. I bootstrapped that to a Ki Focus Mechanic, but I'm still not seeing it show up.
 
I'm not sure, as I am entangled with another system at the moment, but I think you might need Helper.ShowCharge as well for it to show in the activated abilities list.
 
I got it to show up, but now i'm trying to limit it so it only shows up if someone has the Ki Pool Ability so I snagged this bit of code from the monks fast movement:

Code:
      ~ if we have the Ki Pool ability
      if (hero.childfound[cMnkKiPool].tagis[Helper.ShowSpec] <> 0) then
        perform assign[User.Activation]
        endif
 
Ah, so that code isn't working? I didn't get that impression.

Check out the Bewildering Koan or Deny Death feats. They both have a pre-req for a ki pool
 
Hmm actually, that's probably not helpful, since HasAbility tags are forwarded so late. Let me look for another, better example.
 
I think the code you posted should work. What phase and Priority are you running it at? cMnkFlurr does it at Final 10000
 
Then there must be something else going on. Can you send me a user file I can take a look at? Forum name at wolflair dot com.
 
Alright, it looks like you need to have the Helper.ShowSpec tag for an ability to show in the Activated abilities list (which makes sense, we wouldn't want to show class abilities there if at a too low level to access them). Check the "Show in Specials List?" box and the Ki focused ability will show up both in the Activated Abilities list and on the specials list. I assume you don't actually want it to show on the specials list though, so assign the Hide.Special tag to the ability as well (there's no checkbox for this, you'll have to add it through the Tags button in the upper right).
 
Wonderful, that did it. So then to check if it's active from another feat I would use

Code:
if hero.childfound[abJOKiFocu].field[abilActive].value <> 0 then
right?
 
Wonderful, that did it. So then to check if it's active from another feat I would use

Code:
if hero.childfound[abJOKiFocu].field[abilActive].value <> 0 then
right?
Personally I have too many times had issues using childfound[] if you don't test for childlives[] first. So in this case I personally would test for the Active tag that gets placed on the hero instead. I can't remember the exact tag group but if you turn on the abJokiFocu ability and then look at the Hero Tags you will see one like "Active.abJokiFocu". The "Active." may not be correct but it uses the Thing ID as the back half of the tag. I have found that way safer to work with and you can test for that in a Bootstrap condition also.

Just FYI. :)
 
Interestingly enough the only tag with this I can find on the hero is HasAbility and it's there whether it's checked or not.
 
Just double checked this and its called "Activated.THING_ID". So in this case it will be "Activated.abJokiFocu" will display on the hero. I am looking at an Ability right now and it put that tag on the hero.
 
Interesting, mine is not adding it. Could it have something to do with the timing of the script to reveal it? (post-levels/20000)
 
Back
Top