• 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

Bootstrap with Condition

tkarn

Well-known member
Hi,

i try to code a custom system and have a question, I didn't find the correct solution yet. Maybe it's only a syntax problem.

I have a Fighter class: ctyKampfer.
I have an 2 level for Fighter: ChTypSt.cttKampf2.
I have a ability "Trained with all weapons": sfcTrAlWaK

sfcTrAlWaK is bootstrapped by ctyKampfer. This works fine.

Now I wish the following:
sfcTrAlWaK should only be bootstrapped, when ChTypSt.cttKampf2 is assigned.

I tried to add a condition for sfcTrAlWaK:
In the setup phase with priority: 100

hero#ChTypSt.cttKampf2

Now the "Trained with all weapons" ability disppeares, if ChTypSt.cttKampf2 is assigned or not.

What is wrong?

EDIT: A (hero.tagis[ChTypStu.Stufe2] <> 0) makes a syntax or "hero.tagis" not defined error.
I searched in the wiki, but i did'nt find a solution.
 
Last edited:
Look at what priority and phase ChTypSt.cttKampf2 is being assigned. It sounds like you’re checking the hero for the tag before it’s assigned, and those it’ll never be present for the check.
 
Back
Top