View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 3rd, 2018, 09:11 AM
Quote:
Originally Posted by Capnwalker View Post
ok I've been learning and plugging away at this, fixing little things along the way like the saves were slightly wrong.( fort is slow and reflex is fast) and the only thing that I cannot seem to fix is the channeling. at 9th level the divine agent should only have 2d6 channel (increasing to 3d6 at 10th) but this code above is giving me the same channel dice (5d6)as a cleric of the same level. I have no clue how to change the damage dice and when you earn them.

any help?
Capnwalker
I missed that its at half-level to a cleric. The core Channel is giving 1d6 per two levels.

If you look at the "Channel Energy" ability in the editor and at the first script you have this:
Code:
      ~only perform the calculations for the first copy
      doneif (tagis[Helper.FirstCopy] = 0)

      ~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] = 0)

      doneif (tagis[Helper.SpcDisable] <> 0)

      ~ Set our name properly
      var v_turnname as string
      call cClrTurnNm
      field[livename].text = v_turnname

      ~ Add our cleric level to our turning level.

      ~ We need to add to our channeling only, since we no longer stack.
      var tagexpr as string
      tagexpr = "SpecSource.cHelpS2DiA"
      call ChanEnFind
      doneif (state.isfocus = 0)

      focus.field[abValue].value += field[xAllLev].value

      ~ We also need to add a Helper.ChannelPos or ChannelNeg depending on what
      ~ our alignment or the gods alignment. The cClrTurnNm assigned the
      ~ appropriate tag to this class special when it set the livename variable,
      ~ so forward that to the correct xChannel.
      perform focus.pushtags[Helper.Channel?]
The highlighted line above is giving the ability your level. Because your class gives bonuses at "half" level you will need to divide your level in half and round down. That should make the calculations line up to what you want.

This means the above becomes:
Code:
focus.field[abValue].value += round(field[xAllLev].value/2,0,-1)

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.
ShadowChemosh is offline   #7 Reply With Quote