Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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] |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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?
|
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I'd have to see it in context. You could send me a copy of the file, if you like.
|
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
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. |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ah, ok. That makes sense. That's for the help!
|
#7 |
|
|