Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
I'm in a game wherein the GM has made several of the feats scale with level. For example, in this game the Fleet feat is taken only once and grants an additional +5 for every two levels after it is taken.
I'm taking the 'easy' way and taking the feat at first level so I won't have to deal with figuring out how not to count levels before it was taken - though I would like to know if this is possible. AFAIK, HeroLab doesn't track the level at which feats are added to characters but I could be wrong. SO, I thought I could add a little math to the eval script to add an additional +5 to speed for every two levels after the first but it's not really working right. First, I'm getting the following error: Quote:
Here's the script I've come up with so far, with the additions to the original Fleet script in bold: Quote:
|
||
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
if you have the field abValue already set to 5 by default (which I believe Fleet does) you just need to modify the field like this
field[abValue].value += round(#totallevelcount[]/2,0,-1) * 5 and then add that to your total That will make it 5 + 5 for every 2 levels Last edited by AndrewD2; September 27th, 2014 at 05:26 PM. |
#2 |
Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
Perfect - thanks, AndrewD2.
|
#3 |
Senior Member
Join Date: Sep 2014
Posts: 105
|
You could use an incrementer to keep track of which level it was added at, but you'd have to show it in activated abilities list (It wouldn't actually be affected by toggling it there unless you coded that in).
field[abValue].value += round((#totallevelcount[]-field[actUser].value)/2,0,-1) * 5 and voila. |
#4 |
Senior Member
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858
|
Also cool - thanks ww
|
#5 |
Thread Tools | |
Display Modes | |
|
|