View Single Post
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632

Old July 10th, 2019, 07:57 PM
The script at Final/999998 fails to properly setfocus, I tried looking at the procedure to see if I could manually set the focus but I dont really understand that code well enough to know what is truly going wrong.

Because their is no focus set the class special abText.text is not being set so when transitioning to the next script at Final/100000 it fails to add a prepend text to the custom expression.

I have also tried to use perform root.setfocus, and it fails as well giving me a message that says:

Cannot reliably access bootstrap source for unique pick 'arTO2MysOr' when I use the script directly on the archetype and it also fails when I try to use it on a script bootstrapped to an archtype.


Final/999998
Code:
call foctoclass
doneif (state.isfocus = 0)

field[abText].text = focus.field[cCstS3Expr].text
debug "Early cCstS3Expr :: " & focus.field[cCstS3Expr].text
debug "abText :: " & field[abText].text
Final/1000000
Code:
foreach pick in hero from Ability where "abCategory.OraMys & CustTaken.cHelpOra"
  perform eachpick.pulltags[Custom.Myst?]
  nexteach

call foctoclass
doneif (state.isfocus = 0)

focus.field[cCstS3Expr].text = "(SpecSource.cHelpOra) & Helper.Tertiary &! Helper.Obsolete & " & "(" & tagids[Custom.Myst?,"|"] & ")"

~ Removed for testing because foctoclass isnt working
~field[abText].text & " & (" & tagids[Custom.Myst?,"|"] & ")"

debug "cCstS3Expr :: " & focus.field[cCstS3Expr].text
---
2nd Edit:

I have discovered that the timing for this script is completely EVILLL! The script on the Mysteries class custom is set to EIGHT places. Eight bloody '9's. So to override that I had to use 10 places. That's just nuts. I thought it was like SIX places. Still doesnt get the setfocs to work, but it does allow me to manually override.

Probably not best practice, since it would break if applied to a different class.

Last edited by TobyFox2002; July 11th, 2019 at 03:52 AM. Reason: Timings are utterly evil.
TobyFox2002 is offline   #4 Reply With Quote