Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old August 24th, 2010, 11:04 PM
I have most of this done via a feat that provides an additional feat.

It messes up the experience.

It seems tXP isn't a a changeable item. Is there a better way to reduce LA on a race without this trouble? The XP appeared to be auto corrected, but it is different. It is coming in at 27,000 xp for a Centaur (4HD 2LA) instead of the correct 24,000 xp to buy it off.

Anyone have any idea how to fix this issue?

Code:
var rHD as number
var rLA as number
var UALA as number
var reduced as number
var xpcost as number

~ Add to feats allowed
      herofield[tFeats].value += 1

foreach pick in hero from BaseRace
  if (eachpick.field[rHitDice].value > 0) then
    rHD += eachpick.field[rHitDice].value
    rLA += eachpick.field[cLevelAdj].value
  endif
nexteach

rLA -= rHD

UALA = rLA * 3
if (herofield[tLevel].value >= UALA) then
     reduced = 1
     xpcost = (rLA + rHD + UALA - 1) * 1000
endif

debug "UALA"
debug UALA
debug "rLA"
debug rLA
debug "Levels"
debug herofield[tLevel].value

if (rLA = 2) then
     debug "Testing rLA = 2"
     UALA = rLA * 3 + (rLA - 1) * 3
     debug "UALA 2nd round"
     debug UALA
     if (herofield[tLevel].value >= UALA) then
          reduced += 1
          xpcost += (rLA - 1 + rHD + UALA - 1) * 1000
     endif
endif

if (rLA = 3) then
     UALA = rLA * 3 + (rLA - 1) * 3 + (rLA - 2) * 3
     if (herofield[tLevel].value >= UALA) then
           reduced += 1
           xpcost += (rLA - 2 + rHD + UALA - 1) * 1000
     endif
endif

debug "XP Cost"
debug xpcost
debug "Reduced LA"
debug reduced

~ Reduce Experience
      herofield[tXP].value -= xpcost

~ Reduce Level Adjustment
      herofield[tLevelAdj].value -= reduced
risner is offline   #1 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old August 24th, 2010, 11:21 PM
I also tried bootstrapping a template of -1 LA, but it messed up the experience the same way.
risner is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old August 25th, 2010, 08:09 AM
XP can't be modified by a script, only by the user.

Just apply the altered LA and trust the user to manually enter the XP.
Mathias is online now   #3 Reply With Quote
Jhalad
Member
 
Join Date: Jun 2010
Posts: 90

Old August 25th, 2010, 09:38 AM
You also have to remember that Pathfinder doesn't use LA. You'd be better off balancing the creature out in regards to similar beasties and enterig that instead.
Jhalad is offline   #4 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old August 25th, 2010, 10:33 AM
Quote:
Originally Posted by Mathias View Post
Just apply the altered LA and trust the user to manually enter the XP.
Ok, that works. Thanks

Quote:
Originally Posted by Jhalad View Post
You also have to remember that Pathfinder doesn't use LA.
In my view a defect of Pathfinder. ;-)
risner is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

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 04:44 PM.


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