Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Beowulfe
Junior Member
 
Join Date: Aug 2007
Posts: 29

Old August 23rd, 2007, 06:34 AM
I am trying to code an adjustment that gives +2 to all Perform skill checks. I've got how to do for just one but is there a Perform that adds to all?
Beowulfe is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old August 23rd, 2007, 11:50 AM
Beowulfe wrote:
>
>
> I am trying to code an adjustment that gives +2 to all Perform skill
> checks. I've got how to do for just one but is there a Perform that adds
> to all?


The following piece of code should do the trick:


hero.child[AllPerf].field[Bonus].value += 2


You can also use "AllKnow" (all knowledge skills), "AllProf" (all
profession skills) and "AllCraft" (all craft skills), as well as
"AllSkills" for all skills.


Hope this helps,


--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/
Colen is offline   #2 Reply With Quote
Beowulfe
Junior Member
 
Join Date: Aug 2007
Posts: 29

Old August 23rd, 2007, 12:05 PM
Nope, it did not like that
Here's what I've got for the other skills
#skillbonus[kSenseMot] += 2
Beowulfe is offline   #3 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old August 23rd, 2007, 12:10 PM
Beowulfe wrote:
>
>
> Nope, it did not like that
> Here's what I've got for the other skills
> #skillbonus[kSenseMot] += 2


I'm sorry, it should have been "AllPerform", not "AllPerf". Try this:


#skillbonus[AllPerform] += 2


--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/
Colen is offline   #4 Reply With Quote
Beowulfe
Junior Member
 
Join Date: Aug 2007
Posts: 29

Old August 23rd, 2007, 12:59 PM
That worked. Thanks.
Beowulfe is offline   #5 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old August 24th, 2007, 04:57 AM
As kind of a related thing, is there a similar thing to use to do a bonus to say all STR or CHA based skills?

Thomas

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #6 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old August 27th, 2007, 06:01 PM
TCArknight wrote:
>
>
> As kind of a related thing, is there a similar thing to use to do a
> bonus to say all STR or CHA based skills?

There is, but it's more complex. You'd create a script that does this:


~ For each skill...
foreach pick in hero where "component.BaseSkill"

~ If this skill has a linked attribute, and the attribute is
~ strength (i.e. this is a strength-based skill), add +1 to it
if (each.islinkage[skillattr] <> 0) then
if (each.linkage[skillattr].tagis[IsAttr.aSTR] <> 0) then
each.field[Bonus].value += 1
endif
endif

~ Go on to the next skill
nexteach


Replace "STR" with the appropriate attribute abbreviation for your
attribute.


--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/
Colen is offline   #7 Reply With Quote
Reply


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 07:08 PM.


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