• 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

Adding Special Abilities using Scripts

I am currently trying to make a class based upon the 4 Winds Fantasy Ioun Angel.

For the Extra Orbit Ability I have created a dropdown box that uses the thing id's for orbit hands, feet and heart (at 10th level only). Now I want to use that in order to add an extra one of those abilities to the class dependant on what the player chooses.

I have looked around on google and tried searching the forum but my searches came up empty so I thought I'd ask.

I have toyed with the idea of adding them and then enabling them only when chosen, but I would prefer to not have the clutter if at all possible.

This is as far as I have gotten:

Code:
Custom Expression: thingid.cOrbitHand | thingid.cOrbitFeet
Code:
   if (field[xIndex].value = 3) then
      field[listname].text = "Third " & field[thingname].text
    elseif (field[xIndex].value = 2) then
      field[listname].text = "Second " & field[thingname].text
    elseif (field[xIndex].value = 1) then
      field[listname].text = "First " & field[thingname].text
      endif

    if (field[xIndex].value = 3) then
      field[usrCandid1].text &= " | thingid.cOrbitHear"
      endif
 
You'll need to provide more information about what this ability does before we're able to help you with it.

You also haven't described any problems you're having with your existing script - what do you want it to do? What is it currently doing? How is it failing to reach your goal?
 
What I need is for when the player chooses an ability from the dropdown box, it adds a copy of that ability at the level they choose it.

The current script provides the choices available at each level, what it lacks is the code required to take the player's choice and add the ability afterwards. The id's for the abilities is in the Custom Expression and the code that adds to it.
 
Is this something you can accomplish like a Rogue's Talents, or a Barbarian's Rage Powers, where the user selects what they want from a list?
 
yes that is the case, at the moment I am using the custom expression field to show the options, but if it possible to do it that way I am happy to use it. The only downside I can see is that the ability is meant to give another copy of a special ability they arlready have.
 
Last edited:
Thank you for your help Mathias, I was able to make a working version using your suggestion of being similar to Rogue Talents and Rage Powers :)
 
Back
Top