• 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

Custom ability choice based on Int

AndrewD2

Well-known member
I've got an ability that gets to select a number of items based on their intelligence modifier.

I've tried setting cGiveSp3rd to the value, but nothing showed up unless there was something in the array. So I tried setting the array value directly, but that didn't work either.

My current code, running at Post-Levels 20000
Code:
doneif (tagis[Helper.SpcDisable] <> 0)
doneif (tagis[Helper.ShowSpec] <> 1)

root.linkage[varies].field[cCustTeTot].arrayvalue[2] += (#attrbonus[aINT])

if (field[xAllLev].value >= 15) then
  root.linkage[varies].field[cGiveSp3rd].value += 2
elseif (field[xAllLev].value >= 11) then
  root.linkage[varies].field[cGiveSp3rd].value += 1
endif
 
You're looking for an attribute bonus - what phase are you in? What phases can you look up an attribute bonus?
 
Oy I feel dumb ...
You may wish to look into Cardboard Cut out debugging or more commonly called Rubber Duck debugging methods. Here is the Wiki link I am really not making this up. :D

The idea is that having to explain in detail your issue to another person that often you find the answer to your question. Its a mind trick that causes you to look at the issue in a different way.
 
You may wish to look into Cardboard Cut out debugging or more commonly called Rubber Duck debugging methods. Here is the Wiki link I am really not making this up. :D

The idea is that having to explain in detail your issue to another person that often you find the answer to your question. Its a mind trick that causes you to look at the issue in a different way.

Yep, I can attest to that (didn't know about the name though, thanks :)) There has been plenty of times where I've gotten up from my desk to go ask a co-worker a programming question and by the time I've reached his desk, I've already answered the questions
 
You know I've heard of that before, and I usually talk things over with my wife (she doesn't understand a word of what I'm saying) but she was dealing with a cranky toddler.
 
Back
Top