• 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

Mech Pre-reqs

Frodie

Well-known member
I have a mechanic and I put this script in the Pre-reqs, but I don't think that is the right spot. The code is:

Code:
foreach pick in hero from BaseEquip where "gType.TechItem"
validif (eachpick.hero.childfound[pFGMPTPL].field[pAdjust].value >= 8)
  nexteach

The script loads fine, but seems to not have an effect, (the gear will not give an error or greyed out).

Any ideas?

Thank you!
 
Mechanics are always present. So there's no way to see whether the mechanic is greyed out or not, because you never purchase it.

What you have written will not create a new prereq on other items, if that's what you're trying to accomplish. A prereq written on a mechanic will report from that mechanic whether it's succeeded or not.
 
Yea, that's what I was thinking. BTW - Can we hide gear in a loop?

Well, I got something that might work. I think the timing is off. ATM it Render 10000. The code loads with no errors, but not sure about the timing.

Code:
foreach pick in hero from BaseEquip where "gType.TechItem"
perform eachpick.assign[Hide.Gear]
nexteach
 
Last edited:
Yea, that's what I was thinking. BTW - Can we hide gear in a loop?

Well, I got something that might work. I think the timing is off. ATM it Render 10000. The code loads with no errors, but not sure about the timing.

Code:
foreach pick in hero from BaseEquip where "gType.TechItem"
perform eachpick.assign[Hide.Gear]
nexteach
That will work but its against "Picks". This means it hides all TechItem gear that is 'ADDED' to the character. It will have no affect on the Gear List that you pick from.
 
Yea, I changed it to:

Code:
      foreach thing in BaseEquip where "gType.TechItem"
        perform eachthing.assign[Hide.Gear]
      nexteach

but it's a no go, the error is:

Syntax error in 'eval' script for Thing 'mechFGMPTP' (Eval Script '#1') on line 3
-> Script reference is invalid under the circumstances
 
Last edited:
You can't assign a tag to a thing, only a pick.
So to sum up my post and Andrew's. You can't prevent the Tech Items from displaying the in list. Your best solution is to have a person NOT turn on the paizo book source that has Tech Items.

Sorry its another limitation to not having access to the Skeletal files. At the same time I am not sure its proper for a "Campaign Setting or Other Addon" to remove options of a player. If I am playing in a game and my DM allows me to have Tech Items why should an addon "stop" that. Personally I would not be happy that someone else was deciding how my game was running. Just a thought.... :)
 
If what you want to do is hide all high-tech items, look at the hero tags, and then see what changes when the "Hide High-Tech Items" in the "Equipment, Weapons & Armor to Show" group near the bottom - that adds a tag along with its source tag that's what actually triggers the behavior of that option.
 
This sort of thing is why I recommend giving us all the context of what you're trying to accomplish when asking a question - the method you're trying to use may not be able to accomplish what you want to, but if we know what you're trying to accomplish, we can recommend other routes to the same goal.
 
Thank you, well I was looking at just a pre-req or have it grayed out. Then I thought, maybe I could just hide them. So it was kind of fluid.
 
Back
Top