Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
I've notice some procedural calls in some of the scripts I've been perusing in order to make my own scripts. I'm not sure what they do. Does anyone have a list of the procedure calls I can make in the d20 system files, and what they do?
|
#51 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Could you define what a procedural call is?
|
#52 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
For example, in xSmiteEvil, there is a procedure call:
call CalcValue This is a call to a procedure. That's what I'm referring to. |
#53 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
CalcValue is the only one I think exists that's for the use of users.
CalcValue is: Code:
~ If we have Value tags assigned, see if the highest is higher than our ~ current value - if so, use it. field[Value].value = maximum(field[Value].value, tagmax[Value.?]) ~ If we have a value of 0, hide ourselves if (field[Value].value = 0) then perform delete[Helper.ShowSpec] perform delete[Helper.ShowCharge] done endif |
#54 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Quote:
|
|
#55 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
CalcValue can only be used if you're on a thing that has the Value field (feats, traits, skill tricks, class specials, specials, racial specials, etc.), or you'll get errors. It only looks at and modifies the Value field and tags of the pick its running from.
|
#56 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
I noticed on HeroLab startup, that you can select No Cross-Class Skill Penalty. I know this applies to all cross-class skills across classes, but is there a way that I can turn this on for only one specific cross-class skill.
For example, absurd as it is, it gets the point across. If I wanted to allow all of a Fighter's cross-class skills to work normally except for Knowledge: Arcana, where I wanted that cross-class skill to be able to have No Cross-Class Skill Penalty, is there a way I can do that just for Knowledge: Arcana on the Fighter? |
#57 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
I believe there is a feat I made in the community files that does a similar thing for Spot and Listen. Look at Guerilla Scout.
|
#58 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Cool, this will essentially do the same thing, I would guess. I've also got another work around that works too. I was just wondering if there was some kind of flag that could be set for skills individually, or is that No Cross-Class Skill Penalty essentially doing what Lawful_g's code is doing, setting the Ranks equal to the Points spent?
|
#59 |
Senior Member
Volunteer Data File Contributor
Join Date: Jun 2010
Posts: 623
|
I used LG's code for a similar thing, but the character house rule thing modifies the internal code to multiply by 1.0 instead of 0.5 across the board.
|
#60 |
|
|