Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 201

Old July 12th, 2020, 12:32 PM
Iím working on several archetypes that use an alternate magic system (Super Genius Gamesí House Rule Handbook: Spell Point Compilation), which is a spell point system. The aspect of this system that Iím having trouble with is this: ďA bard gains bonus spell points equal to her Charisma bonus (to a maximum of the highest level spell she knows).Ē

To that effect, I put together this eval script:
<Post-attributes 10000>
Code:
if (hero.childfound[aCHA].field[aFinalVal].value >= 22) then
   if (hero.childfound[cHelpBrd].field[cTotalLev].value >= 16) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 4
      hero.childfound[cReseSPBrd].field[abValue].value += 3
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 13) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 3 
      hero.childfound[cReseSPBrd].field[abValue].value += 3
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 10) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 3 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 7) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 4) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   else
      hero.childfound[cOpenSPBrd].field[abValue].value += 1 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   endif

elseif (hero.childfound[aCHA].field[aFinalVal].value >= 20) then
   if (hero.childfound[cHelpBrd].field[cTotalLev].value >= 13) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 3 
      hero.childfound[cReseSPBrd].field[abValue].value += 3
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 10) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 3 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 7) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 4) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   else
      hero.childfound[cOpenSPBrd].field[abValue].value += 1 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   endif

elseif (hero.childfound[aCHA].field[aFinalVal].value >= 18) then
   if (hero.childfound[cHelpBrd].field[cTotalLev].value >= 10) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 3 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 7) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 4) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   else
      hero.childfound[cOpenSPBrd].field[abValue].value += 1 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   endif

elseif (hero.childfound[aCHA].field[aFinalVal].value >= 16) then
   if (hero.childfound[cHelpBrd].field[cTotalLev].value >= 7) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 2
   elseif (hero.childfound[cHelpBrd].field[cTotalLev].value >= 4) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   else
      hero.childfound[cOpenSPBrd].field[abValue].value += 1 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   endif

elseif (hero.childfound[aCHA].field[aFinalVal].value >= 14) then
   if (hero.childfound[cHelpBrd].field[cTotalLev].value >= 4) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 2 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   else
      hero.childfound[cOpenSPBrd].field[abValue].value += 1 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   endif

elseif (hero.childfound[aCHA].field[aFinalVal].value >= 12) then
      hero.childfound[cOpenSPBrd].field[abValue].value += 1 
      hero.childfound[cReseSPBrd].field[abValue].value += 1
   endif
First, thereís probably a more elegant way of scripting this, but at least I know that abValue is calculating correctly. The trouble is that abValue isnít adding to the bardís spell point pools. I attempted every phase from First to Render, but the spell points arenít changing. Hero Lab gurus, what am I missing?

Projects: Legendary Rogue (Legendary Games) 94.9%, Assassin (Interjection Games) 81%, Eldritch Godling (Super Genius Games) 50.8%, Mighty Godling (Super Genius Games) 35.6%, Clever Godling (Super Genius Games) 30.3%, Adept Godling (Super Genius Games) 27.2%, Legendary Cavalier (Legendary Games) 18.7%, Fortunate (rebuild of Luckbringer, Rite Publishing) 13.5%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #1 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 766

Old July 13th, 2020, 03:42 PM
When does cReseSPBrd and cOpenSPBrd get created and set?
Minous is offline   #2 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 201

Old July 13th, 2020, 07:15 PM
Quote:
Originally Posted by Minous View Post
When does cReseSPBrd and cOpenSPBrd get created and set?
Currently both are set to<Post-attributes 10000>

Projects: Legendary Rogue (Legendary Games) 94.9%, Assassin (Interjection Games) 81%, Eldritch Godling (Super Genius Games) 50.8%, Mighty Godling (Super Genius Games) 35.6%, Clever Godling (Super Genius Games) 30.3%, Adept Godling (Super Genius Games) 27.2%, Legendary Cavalier (Legendary Games) 18.7%, Fortunate (rebuild of Luckbringer, Rite Publishing) 13.5%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #3 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 766

Old July 14th, 2020, 02:42 AM
Check the field history of the objects. Id suggest changing the second script to 10001
Minous is offline   #4 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 06:11 PM.


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