• 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

Kineticist - Expanding Element Check

Sphynx

Well-known member
For my Zephyr class (Sylph Archetype), one of the rules is that they must start in the Air element, and can only expand into the Air element. I have the following checks in place:

Code:
validif (#hasability[cKinAir] <> 0)

Code:
validif (linkage[varies].field[cTotalLev].value < 7)
      validif (#hasability[cKinExpAir] <> 0)

Code:
validif (linkage[varies].field[cTotalLev].value < 15)
      validif (#hasability[cKinExpAir] > 1)

The last check isn't working though, and sure enough a "notify #hasability[cKinExpAir]" shows that that ability is a 1 when both expand elements are set to air. Does anyone know how to check if they expanded twice into the same element? "Find thing..." didn't reveal any other possible variable to check... Everything is setup in the Validation Phase at 10,000 and I've played with the 10,000 a bit in the off chance that the 2nd expand check happens later...
 
This only shows if they've expanded 1-time into the element. I need to make sure they expand twice.

1st level: #hasability[cKinAir] <> 0
7th level: #hasability[cKinExpAir] <> 0
15th level: #hasability[ ??? ] <> 0

I thought #hasability[cKinExpAir] would equal 2 instead of 1 to accomplish this, but that is currently not the case (though it probably should be the case).
 
Ah, I misunderstood. In that case, you can use tagcount for the expansion, instead of the macro.

Code:
validif (hero.tagcount[HasAbility.cKinExpAir] + #hasability[cKinAir] = 3)
 
Perfect! Again, thank you so much. :)

End script:
Code:
var level as number
var check as number

level = linkage[varies].field[cTotalLev].value
if (level >= 8) then
    level -= 1
endif

check = round(level/7, 0, -1) + 1

validif (hero.tagcount[HasAbility.cKinExpAir] + #hasability[cKinAir] >= check)
 
Last edited:
Back
Top