ShadowChemosh
Well-known member
Just to bump this back up. Anyway to do the above without hard-coding the Thing ID?Here's that code even more reduced, since you're only looking for one thing, so you can skip the foreach:
Code:perform state.thing[skHeal].amendthing[name,"Medical"]
In example I am doing the following script:
Code:
~ Army Tactics
foreach thing in ArmyTactic where "thingid.atSiegebr"
~ Build text string
sText = eachthing.field[descript].text & "{br}{br}" & sSource & "In addition, a unit using this tactic can try to circumvent the protection of a unit using the Screening Defense tactic if the unit it protects is equipped with siege weapons. If your attack against the screening unit succeeds, your attack deals half damage to that unit and you can make a second attack against the protected unit and its siege weapons. This attack also deals half damage."
~ Set descripting text
perform eachthing.amendthing[description,sText]
nexteach
Anyway to use a type of script like "findchild[]" that can be used against a Thing instead of Pick? I would like to remove the foreach loop if I could....
Thanks