• 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

Must have 2 ranks in Perf (strings) or perf (harp).

TobyFox2002

Well-known member
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

And attaching a Bootstrap condition of
Code:
fieldval:abValue5].value >= 1

But it doesn't seem to want to function. I suspect there is a timing issue that I am not seeing, but I have run through the full range of timings and nothing seems to work. I could have sworn I've seen code like this somewhere but I cant recall where.

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.
 
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"
 
Code:
fieldval:abValue5].value >= 1

This is not a properly coded bootstrap condition - you're mixing up fieldval, which is used in bootstrap conditions, with "].value", which is used in scripts.
 
Code:
fieldval:abValue5].value >= 1

This is not a properly coded bootstrap condition - you're mixing up fieldval, which is used in bootstrap conditions, with "].value", which is used in scripts.

That was a mistype on my part when posting it here. :P
 
Back
Top