• 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

Favored Enemy candidate expression

AndrewD2

Well-known member
Trying to figure out a candidate expression to list favored enemies for usrChosen1

Previously Mathias and Frumple discussed it for a foreach loop and used "FavTaken.? & !Helper.Seconday" but using those tags only gets me the list of classes, any ideas on this? The only way I get it to work is "component.Ability & thingid.fe?" but Mathias says that shouldn't be used so I'm at a loss.

My other option is making it a user text field and creating a candidate expression based off what's in two boxes for when they increase it. It's just adding situational text so it might work, just looking for ideas.

Andrew
 
What component do they have to themselves? Find that and realize the terrains are marked with Helper.Secondary, and you should be mostly there I think
 
The only thing I can figure out is the FavTaken.? tag is on the terrains and enemies.

component.Ability & FavTaken.? & !Helper.Secondary is what I believe it should be, and if I have a level of ranger and have it set to picks on Hero it shows the currently selected favored enemies, but I need this for all things and as soon as I change it to all things I get nothing to select.
 
I would have never guessed that was a field that was only on Fav. Enemey and Fav. Terrain, thank you Aaron.

I had thought that was on all Custom Specials, guess I should have looked deeper.
 
No problem, happy to help.

FYI - Favored Enemies and Terrains have user fields which must be manipulated by the user (the incrementers where you set their value), which most custom specials do not.

BaseCustUs = Base Custom User component.

Admittedly, not the clearest name. Sometimes 10 characters makes things ambiguous, but that is what we have to work with.
 
Well I learned a lot here, and it ended up being unnecessary as upon further analysis of the ability (and cross checking other sources) it ended up being granting favored enemy to th oracle at level 10 and another one at 15 plus an upgrade ... so all the code I wrote ended up being redundant, but thanks Aaron, I like learning as much as I can.
 
Back
Top