• 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

Seed of Thought....How Do I

dartnet

Well-known member
How do I script the feat Speed of Thought?

The feat makes Intelligence the sat that modifies Initiative.

Like how Grappling Finesse works.
 
dartnet wrote:
>
>
> How do I script the feat Speed of Thought?
>
> The feat makes Intelligence the sat that modifies Initiative.
>
> Like how Grappling Finesse works.

Easiest way would be to subtract out your dexterity bonus, and add your
Intelligence bonus. Like so:

~ Subtract dex bonus from initiative
hero.child[Initiative].field[Permanent].value -= hero.child[aDEX].field[aBonus].value

~ Add int bonus to initiative
hero.child[Initiative].field[Permanent].value += hero.child[aINT].field[aBonus].value

You'd need to do this after attributes are finished, but before
initiative is finished.

Hope this helps!
 
If it doesn't give error messages but doesn't function, check the phase you've put it in. I'm not familiar with the M&M datafiles specifically, but in the d20 files, there's a list of phases in the help file - as Colen said, find something that's inbetween attributes and initiative.
 
What phase do you have it set to evaluate in? Attributes are evaluated at 5000, and initiative is calculated at 20000, so any phase in between the should be okay. Try 10000.
 
Hmm, it looks like a couple of line breaks got added where they shouldn't have. Try this:

Code:
~ Subtract dex bonus from initiative
hero.child[Initiative].field[Permanent].value -= hero.child[aDEX].field[aBonus].value

~ Add int bonus to initiative
hero.child[Initiative].field[Permanent].value += hero.child[aINT].field[aBonus].value
 
thorfin wrote:
>
>
> I haven't been able to get it to work. What am I missing?


It worked fine when I try it in the Traits phase at Priority 10000. What
phase and priority is the script set to run at? And are you still
getting an error? If so, please post the error here.
 
Back
Top