• 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

Common Code Examples

This will probably work in either version -

Say you have a piece of gear that gives you a particular Strength when equipped (for example is a d12+1)
Code:
Pre-Traits/5100
var strdiff as number
var curr as number

if (field[grIsEquip].value <> 0) then
  ~ get current values
  curr = #traitbonus[attrStr] + #traitcreation[attrStr] + #traituser[attrStr]
  ~ set strength to d12+1
  strdiff = 7 - curr
  #traitinplay[attrStr] += strdiff
  endif
 
Back
Top