Member
Join Date: Apr 2007
Posts: 60
|
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) |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Check for both abilities.
Code:
validif (#hasability[cKinExpAir] + #hasability[cKinAir] = 2) |
#2 |
Member
Join Date: Apr 2007
Posts: 60
|
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). |
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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) |
#4 |
Member
Join Date: Apr 2007
Posts: 60
|
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 by Sphynx; December 30th, 2015 at 11:12 PM. |
#5 |
Thread Tools | |
Display Modes | |
|
|