Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old November 2nd, 2017, 10:42 AM
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]
Frodie is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old 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.
Aaron is offline   #2 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old 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?
Frodie is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old 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.
Aaron is offline   #4 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old November 2nd, 2017, 03:29 PM
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.
Attached Files
File Type: zip COM_PackModern - Path Heroes.zip (916.2 KB, 1 views)
Frodie is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old 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.
Aaron is offline   #6 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old November 2nd, 2017, 04:46 PM
Ah, ok. That makes sense. That's for the help!
Frodie is offline   #7 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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