Well, I had already examined that, and took from it what I could. I am honestly begining to think that it isnt an issue with the code that I have as it appears from the debug output that I should get some positive result.
Instead when I look at the usrCandid1 gives um.. EVERYTHING as an option instead of being limited to the custom expression that I HL says that it should be using.
Using this code:
Code:
debug "~~~~~~ Settlement & Building Selection ~~~~~~~"
debug "{b}Location:{/b} cLGCoEdict | {b}Timing:{/b} Render/999999/1"
~ Seach the Kingdom Hexes and find those with a settlement
foreach pick in hero from KingHex where "HexFeature.Settle"
debug "==============================================="
debug "{b}Settlement Name:{/b} " & eachpick.field[hxName].text
foreach pick in eachpick.gizmo where "TerrImpCat.Building"
debug "{b}Gizmo ID:{/b} " & eachpick.idstring
nexteach
field[abText].text &= "thingid." & eachpick.idstring & "|"
nexteach
debug "==============================================="
debug "=====================END======================"
debug "abText : " & field[abText].text
field[usrCandid1].text &= field[abText].text
See the attached image for the output for the result. Not sure what I'm doing wrong..