Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Feat Gear Skill choice help (http://forums.wolflair.com/showthread.php?t=59457)

Frodie November 2nd, 2017 10:42 AM

Feat Gear Skill choice help
 
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]

Aaron November 2nd, 2017 11:06 AM

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.

Frodie November 2nd, 2017 03:00 PM

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?

Aaron November 2nd, 2017 03:10 PM

I'd have to see it in context. You could send me a copy of the file, if you like.

Frodie November 2nd, 2017 03:29 PM

1 Attachment(s)
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.

Aaron November 2nd, 2017 04:26 PM

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.

Frodie November 2nd, 2017 04:46 PM

Ah, ok. That makes sense. That's for the help!


All times are GMT -8. The time now is 07:07 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.