• 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

check for language known

AllusiveMan

Active member
Hoping someone can show me the script for a bootstrap condition to check to see if the hero knows a particular language (let's say elven just for the sake of example). I've been unable to find any examples to copy from. Thank you in advance.
 
To perhaps be a bit clearer, what I need is a tag expression to place in a bootstrap condition, checking for whether the hero knows a given language. Is there any sort of macro set up for this, or do I need to set a custom tag in an eval script using childlives or something like that, and then check for the custom tag in the tag expression? And if that's the way to go, what phase/priority should I be using for each?
 
I'd write a script on your pick that does a foreach, looking for the right language(s). If you find it, set the Value field on that pick to 1, and then your bootstrap condition will be:

fieldval:Value <> 0


First/500 is the default for bootstrap conditions, but in this case, see if First/600 will work for the condition, and First/550 for the script. If not, First/500 for the bootstrap and First/490 for the script.
 
Unfortunately, I couldn't get it to work, no matter how I set up the timing. Seems like testing for languages known in a bootstrap is just too damn hard! I even found another thread from 5 years ago where someone was trying to do the exact same thing I'm trying to do (create custom Rings of Eloquence that automatically add languages without creating duplicates). I tried the exact things suggested there, and none of them worked.

https://forums.wolflair.com/showthread.php?t=60650
 
Last edited:
For this, I'd use a configurable - I think those have a languages table in PF1, and if so, you can add a generic ring, then the ring bootstraps a configurable with a table for the user to choose a language, and then the languages the user is adding will follow the normal rules. This way, you only create one magic item, not hundreds for all the languages out there.
 
A general note to everyone - please tell us about the whole project - don't just ask the narrow question as to how to solve your current problem. If we know about the whole project, we may see that you're going about something in an odd way, and that there's a better overall approach that bypasses the problem you're having.
 
Point taken. And thank you for trying to help.

I've given up on this project, however. It's trickier than I expected and not worth the effort.
 
A general note to everyone - please tell us about the whole project - don't just ask the narrow question as to how to solve your current problem. If we know about the whole project, we may see that you're going about something in an odd way, and that there's a better overall approach that bypasses the problem you're having.

^This

Its best to ask about your goal, not how you are trying to achieve it. I've lost count of the number of cases where I find people trying to do things the hard way because they are unaware of the right/easy way.

With HL biggest issue you are going to be dealing with this timing for stuff like this.
 
Back
Top