• 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 Feat Help

agdiv

Member
Using the editor I have created a custom feat which has three opens to choose from via an array. I am however stumped on how to write an eval script that would add different effects based on which option was selected in the array.

Any guidance on this would be welcome.
 
I think in many such cases people create separate Feats... one for each of the options, and add the option name to the Feat name. This assumes that the choice is made only once.. if the player can change the choice at will, then this will not work.
 
Example code:

Code:
      ~ Array's start at 0 index in HL
      if (field[usrIndex].value = 0) then
        ~ Do effect 1 logic
      elseif (field[usrIndex].value = 1) then
        ~ Do effect 2 logic
      elseif (field[usrIndex].value = 2) then
        ~ Do effect 3 logic
      endif
 
Back
Top