Junior Member
Join Date: Apr 2010
Posts: 7
|
I really enjoy the editor but have a hard time creating some of the stuff that was given to me by the DM.
Is there a way to scale an item? Such as at level 5 get +5 to stealth then at Level 10 +7 to stealth and 15 so on. There is nothing in any of the guides since it’s a made up item. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
You can do something like the following script on to the "Eval Scripts" of the weapon or item power.
Code:
~Pre-Attributes 5,000 if (#totallevelcount[] >= 5) then #skillbonus[skStealth] += 5 endif if (#totallevelcount[] >= 10) then #skillbonus[skStealth] += 2 endif if (#totallevelcount[] >= 15) then #skillbonus[skStealth] += 2 endif if (#totallevelcount[] >= 20) then #skillbonus[skStealth] += 2 endif Hope that helps. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Junior Member
Join Date: Apr 2010
Posts: 7
|
it doesn't seem to work, unless I'm missing something.
Anyway the item that was given to me has: disable device escape artist slight of hand appraise stealth disguise with a scaling effect lvl 5 +3 lvl10 +5 lvl 15 +8 lvl 20 +12 Nice DM guess he didn't want my Rouge/ assassin to be doing nothing. So I don't know if the coding has to permit stacking or not. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Without more information I don't know what to tell you. The above script I did in HL and attached it to a weapon. As the character leveled up so did the bonus to stealth so I know it works.
Did you get any error message or anything when you compiled it with "Test(Now)!"??? Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#4 |
Junior Member
Join Date: Apr 2010
Posts: 7
|
oops sorry forgot to add it in. It is supposed to be an Icon worn around the neck. I was trying to create it in wondrous. I've checked off: appears as a wondrous item, can be equiped and powers always available but I'll probably change that to available when equiped. Cost and everything else I'll have to talk to the DM. Other than that I really don't know what else it needs.
|
#5 |
Junior Member
Join Date: Apr 2010
Posts: 7
|
and there was no error message and the skill bonus was not added to stealth.
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I think timing may be your problem. At the top of the Eval Script window is a dropdown to select which phase to schedule this script in, and a field to enter the specific priority within that phase. The default is First/100, and the script ShadowChemosh wrote won't do anything if it runs at that time, because the level of the character hasn't been calculated yet, so it's still 0.
The first line of his script was the instruction as to what phase and priority to use - Pre-Attributes/5000. |
#7 |
Junior Member
Join Date: Apr 2010
Posts: 7
|
Thanks everything works. But now I have two other problems.
1) how do I make it only work when it's equiped? the code that I have been using for other items is: if (field[gIsEquip].value <> 0) then #competencebonus[hero.childfound[skStealth], 5] endif 2) the scaling code doesn't seem to work for the red mantis assassin. For lvl 10 character (lvl 5 rogue and lvl 5 assassin) it works fine, when 5 lvls of red mantis assassin replaced the lvl 5 assassin it did not add in the lvl 10 bonus. |
#8 |
Junior Member
Join Date: Apr 2010
Posts: 7
|
I should add that my character is only based on the red mantis assassin. So if there is something about the character that is not allowed I would like to work around it.
thanks again. |
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You've got the correct "are we equipped code - so now just wrap it around the whole thing.
Code:
if (field[gIsEquip].value <> 0) then ~all the code you've written endif |
#10 |
|
|