• 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

Adjustment to all Perform skills?

Beowulfe

Active member
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 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/
 
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/
 
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
 
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/
 
Back
Top