• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Setting Source and Replace 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"]
Just to bump this back up. Anyway to do the above without hard-coding the Thing ID?

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
This allows me to change the text on the Siegebreaker Army Tactic without "requiring" those loading a Pack to actually have the Ultimate Campaign license.

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
 
Back
Top