Lone Wolf Development Forums  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mythanthor
Junior Member
 
Join Date: Apr 2011
Location: Brisbane, Australia
Posts: 9

Old April 16th, 2011, 08:31 AM
I am attempting to create a Will-o'wisp PC race, and i have made some headway. I am trying to scale the shock natural attack by level and have gotten to the following code:

Code:
  var level as number
  level = herofield[tLevel].value
  var result as number
  result = hero.child[wUnarmed].delete[wMain.?]
  var dice as string


  if (level < 3) then
    result = hero.child[wUnarmed].assign[wMain.1d6_5]
    dice = "1d6"
  elseif (level < 5) then
    result = hero.child[wUnarmed].assign[wMain.1d8_6]
    dice = "1d8"
  elseif (level < 7) then
    result = hero.child[wUnarmed].assign[wMain.1d10_304]
    dice = "1d10"
  elseif (level < 9) then
    result = hero.child[wUnarmed].assign[wMain.2d6_104]
    dice = "2d6"
  else
    result = hero.child[wUnarmed].assign[wMain.2d8_204]
    dice = "2d8"
  endif
  hero.child[wUnarmed].field[livename].text = "Shock " & dice
I have put this in an Eval with a phase: First and Priority: 500 and the code runs. The Unarmed Attack is Renamed to 'Shock 1d6' but the actual damage is unchanged.

Can anyone see anything wrong with this code?

Also, how do you remove the Strength bonus/penalty?

Thanks in advance
Mythanthor is offline   #1 Reply With Quote
 

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 12:21 PM.


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