Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Mutants & Masterminds (http://forums.wolflair.com/forumdisplay.php?f=48)
-   -   Seed of Thought....How Do I (http://forums.wolflair.com/showthread.php?t=7715)

dartnet June 27th, 2008 08:47 AM

Seed of Thought....How Do I
 
How do I script the feat Speed of Thought?

The feat makes Intelligence the sat that modifies Initiative.

Like how Grappling Finesse works.

Colen June 27th, 2008 11:53 AM

Seed of Thought....How Do I
 
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!

dartnet June 27th, 2008 08:25 PM

The Script doesn't seem to work.

Mathias June 27th, 2008 09:03 PM

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.

FifthWanderer June 28th, 2008 06:33 AM

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.

dartnet June 28th, 2008 12:49 PM

I get a spelling error in line 2.

Colen July 2nd, 2008 08:36 AM

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 July 2nd, 2008 10:02 AM

I haven't been able to get it to work. What am I missing?

Colen July 2nd, 2008 12:43 PM

Seed of Thought....How Do I
 
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.

thorfin July 2nd, 2008 07:08 PM

That did it. I had been setting my Priority somewhere below 10000. So, that did it.


All times are GMT -8. The time now is 04:42 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.