Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
I am trying to create an wondrous item that allows its daily use castable spells to be added ONLY when it is both equipped and it has a minimum number of skill ranks in one of two skills.
So far I've gotten it to work if its only checking for one skill but when it checks for two skills something breaks. I am using this code at Post-Attr/3000 Code:
~ If is not equipped, Get out Now! doneif (field[gIsEquip].value = 0) ~ Check if we have 2 ranks in either perform HARP or STRINGS if (#skillranks[skPerfStr] >= 1) then field[abValue5].value += 1 endif if (#skillranks[skPerfHarp] >= 1) then field[abValue5].value += 1 endif ~ If don't have 1 ranks in HARP or STRINGS, Get out Now! doneif (field[abValue5].value >= 1) ~ Assign conditions based on the number of ranks they posses in perform Code:
fieldval:abValue5].value >= 1 Any thoughts as to what I'm doing wrong? EDIT: Yes I know there is no Perform (harp) in the game. That is why I am checking for either STRINGS or HARP. Because of cross-comparability. |
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
What is the timing of your bootstrap condition? Is it after you are setting the value of abValue5? I am guessing not, since that script (at PostAttr) is far later than any condition would be allowed.
Also, your note says that you need at least 2 ranks, but you are using ">= 1" which means "greater than or equal to 1", so you probably want either ">= 2" or "> 1" |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Code:
fieldval:abValue5].value >= 1 |
#3 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
|
#4 |
|
|