Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Mutants & Masterminds

Notices

Reply
 
Thread Tools Display Modes
dartnet
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2007
Posts: 591

Old June 27th, 2008, 08:47 AM
How do I script the feat Speed of Thought?

The feat makes Intelligence the sat that modifies Initiative.

Like how Grappling Finesse works.
dartnet is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old June 27th, 2008, 11:53 AM
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!
Colen is offline   #2 Reply With Quote
dartnet
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2007
Posts: 591

Old June 27th, 2008, 08:25 PM
The Script doesn't seem to work.
dartnet is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old 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.
Mathias is online now   #4 Reply With Quote
FifthWanderer
Senior Member
Volunteer Data File Contributor
 
Join Date: Apr 2006
Posts: 649

Old 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.
FifthWanderer is offline   #5 Reply With Quote
dartnet
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2007
Posts: 591

Old June 28th, 2008, 12:49 PM
I get a spelling error in line 2.
dartnet is offline   #6 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old 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
Colen is offline   #7 Reply With Quote
thorfin
Member
 
Join Date: Jun 2008
Posts: 62

Old July 2nd, 2008, 10:02 AM
I haven't been able to get it to work. What am I missing?
thorfin is offline   #8 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old July 2nd, 2008, 12:43 PM
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.
Colen is offline   #9 Reply With Quote
thorfin
Member
 
Join Date: Jun 2008
Posts: 62

Old July 2nd, 2008, 07:08 PM
That did it. I had been setting my Priority somewhere below 10000. So, that did it.
thorfin is offline   #10 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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