• 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

So I got some questions.

dartnet

Well-known member
How do I do the following?

Set a prerequisite the requires any 4 arcane powers.

Script it so that an arcane background gets 1 power and 4 power points each ranks.

An arcane background that gets 1 skill points every time a new power edge is taken.

Thanks in advance.
 
How do I do the following?

Set a prerequisite the requires any 4 arcane powers.

Presumably the same way you would with those prerequisites that step through Knowledge skill, the only difference being that you'd set up a variable to count up, then set a validif when the variable is =>4 and then drop out of the loop then. Unfortunately I don't have time to try to work on it now and I'll be out of town until the middle of next week so I can't really give a good example or look up how to really step through those powers right but maybe that will give you some ideas?

Script it so that an arcane background gets 1 power and 4 power points each ranks.

Sounds like one of those SeelyOne scripts he's been posting lately. You might look at some of those to see if they give some ideas. Otherwise I'm not too sure on that one.

An arcane background that gets 1 skill points every time a new power edge is taken.

I think this one I would set up as a separate New Power Edge (assuming you will have other ABs that would need to still use the standard New Power Edge, otherwise you should just preclude the standard one and just replace it). The new one could then just add a skill point and you're good to go.
 
I got it to work using this script.

var total as number
foreach pick in hero where "Arcane.?"
if (eachpick.field[trtFinal].value >= 2) then
total += 1
endif
nexteach
~if we have at least two, we're valid
validif (total >= 4)
if (@ispick <> 0) then
altpick.linkvalid = 0
endif
 
Set a prerequisite the requires any 4 arcane powers.

An easier method would be to check for #resmax[resPowers] > 3
The character knows that many, whether or not they have actually been chosen. It is a simpler script and does not need any looping.

Script it so that an arcane background gets 1 power and 4 power points each ranks.

I would do the XP table method as I mentioned in another thread. It can either be in the same edge as the Arcane Background (so a remake of, say, Miracles. Or if it is an edge that gives this benefit, or if perhaps it can just be a Mechanic. Most likely Traits 5000 will work. Pre-Traits will probably work as well, maybe before calc TrtFinal.

Code:
    var xp as number
    var modifier as number
    xp = hero.child[resXP].field[resMax].value
    modifier = 1

~ Determine XP table
if (xp >= 20) then
    modifier += 1
endif

if (xp >= 40) then
    modifier += 1
endif

if (xp >= 60) then
    modifier += 1
endif

if (xp >= 80) then
    modifier += 1
endif

~ Apply the bonus
#resmax[resPowers] += modifier
modifier = modifier*4
#trkmax[trkPower] += modifier

An arcane background that gets 1 skill points every time a new power edge is taken.
I would either have this as part of the Arcane Background edge, an edge, or a mechanic (if it is universal or you want to just check on an existing edge -- like see if Arcane Background: Magic).

If it is in a Mechanic another edge that watches for the new power edge, do it like this:
Code:
    var modifier as number
    modifier = 0

~Check for New Power Edges
foreach pick in hero from Edge
    if (eachpick.tagis[Edge.edgNewPwr] <> 0) then
        modifier += 1
    endif
nexteach

~Apply modifier to skills
#resmax[resSkill] += modifier
Note that this gives skill points, which means that you have to unlock the character to apply them after being in Advancement mode. If instead you meant the spellcasting skill you can do something like this:
Code:
      perform #resspent[resSkill,-,modifier,"Free Skill"]
      perform #traitadjust[skSpellcst,+,modifier,"Spellcasting d6"]
      hero.child[skSpellcst].field[trtMaximum].value += modifier
 
Back
Top