Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 596

Old May 4th, 2014, 04:39 AM
I have a template that I am working on that adds a slam to the character with damage based on the size of the base creature.

I've tried most of the night to get the script to apply, and while it does seem to be applying it internally it doesn't display the proper damage on the weapons tab.

I've tried every timing ranging from First/500 all the way to Final/50000
Code:
      if (hero.tagis[Size.Diminutive] <> 0) then
        perform hero.child[wSlam].assign[wMain.1_1]
        endif
      if (hero.tagis[Size.Diminutive] <> 0) then
        perform hero.child[wSlam].assign[wMain.1d2_2]
        endif
      if (hero.tagis[Size.Tiny] <> 0) then
        perform hero.child[wSlam].assign[wMain.1d3_3]
        endif
      if (hero.tagis[Size.Small] <> 0) then
        perform hero.child[wSlam].assign[wMain.1d4_4]
        endif
      if (hero.tagis[Size.Medium] <> 0) then
        perform hero.child[wSlam].assign[wMain.1d6_5]
        endif
      if (hero.tagis[Size.Large] <> 0) then
        perform hero.child[wSlam].delete[wMain.?]
        perform hero.child[wSlam].assign[wMain.1d8_6]
        endif
      if (hero.tagis[Size.Huge] <> 0) then
        perform hero.child[wSlam].assign[wMain.2d6_104]
        endif
      if (hero.tagis[Size.Gargantuan] <> 0) then
        perform hero.child[wSlam].assign[wMain.2d8_204]
        endif
      if (hero.tagis[Size.Colossal] <> 0) then
        perform hero.child[wSlam].assign[wMain.4d6_106]
      endif
TobyFox2002 is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,701

Old May 4th, 2014, 11:22 AM
You need to add logic to remove the current weapon damage first.

Like this:
Code:
perform hero.child[wSlam].delete[wMain.?]
Then assigning your new value should work correctly. First/10000 should be a good spot to do this.

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 online now   #2 Reply With Quote
TobyFox2002
Senior Member
 
Join Date: Nov 2013
Location: Andover, Ma
Posts: 596

Old May 4th, 2014, 05:35 PM
Quote:
Originally Posted by ShadowChemosh View Post
You need to add logic to remove the current weapon damage first.

Like this:
Code:
perform hero.child[wSlam].delete[wMain.?]
Then assigning your new value should work correctly. First/10000 should be a good spot to do this.
First/10000 doesn't work Pre-Level does. The timing for this seems to be extremely narrow. Extremely narrow, cant even use this to alter the damage based on spells or adjustments. I very much doubt it will even take changes from other templates into account.

But thank you, very much it works.
TobyFox2002 is offline   #3 Reply With Quote
Kendall-DM
Spy
 
Join Date: Jan 2011
Location: Overland Park, Kansas
Posts: 1,217

Old May 5th, 2014, 10:36 AM
Another options is to increment the natural weapon's wDamage field. The following code implements a 1 step increase in damage (say size M to size L). Just an FYI.

Code:
hero.child[wSlam].field[wDamage].value += 1

Vist my D&D 3.5 homebrew campaign! http://daelund.kendallhub.net
Kendall-DM 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 03:19 PM.


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