• 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

Feat Gear Skill choice help

Frodie

Well-known member
I am working on a feat that once a chosen gear is equipped then the chosen skill grants a bonus. Is my timing off or is there something else wrong. Thank you.

post levels 100

doneif (field[usrChosen1].ischosen = 0)
doneif (field[usrChosen2].ischosen = 0)

perform field[usrChosen2].chosen.setfocus

doneif (focus.field[gIsEquip].value = 0)

#applybonus[BonTrait,field[usrChosen1].chosen,3]
 
I don't think it is a timing thing. Stick some debugs in there to figure out how far the script is getting and what has been chosen by each chooser.
 
Seems to be a timing issue and I can't seem to pin it down. The debugs didn't seem to help. The timing issue has something to do when the item is equipped. Any ideas?
 
I have attached them. They are part of the community files. These all the modern files I have been updating. So you would need the community files and replace the modern files with these. The feat is in the file called "COM_PackModern - Path Heroes.user" and is called "Vehicle Specialization".

Thank you for your time and help. The modern files were a hot mess and I am doing my best to fix everything without causing any errors. I still have a lot to do.
 

Attachments

The problem is that your second chooser is selecting among things, not picks. Things don't exist on the hero to check their equip state, so the last doneif stops the bonus from being applied.
 
Back
Top