Lone Wolf Development Forums Changing Unarmed Damage
 Register FAQ Members List Search Today's Posts Mark Forums Read

 Notices Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528. If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com. - The Lone Wolf Development Team

Junior Member

Join Date: Apr 2011
Location: Brisbane, Australia
Posts: 9

April 16th, 2011, 07: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?

#1
Senior Member
Lone Wolf Staff

Join Date: May 2005
Posts: 12,794

April 16th, 2011, 09:44 AM
Is this d20 or Pathfinder, or something else - the answer may differ.

As a general rule, the First phase is too early for anything that doesn't specifically need to happen that early, and it's definately too early to look up the level of the character - that needs to happen in the post-level phase or later.

I don't recognize herofield[tLevel].value - I don't think that exists in d20 or Pathfinder.
#2
Junior Member

Join Date: Apr 2011
Location: Brisbane, Australia
Posts: 9

April 16th, 2011, 04:01 PM
This is for Pathfinder. I have gotten the main part to work, changed the phase to Post-Levels, Priority 5000.

The issue I have now is that the damage is being adjusted by Strength bonus/penalty. How can I get it to ignore Strength bonus/penalty or add it back as an adjustment?

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]
perform hero.child[wUnarmed].assign[Helper.DamageUp]
dice = "1d6"
elseif (level < 5) then
result = hero.child[wUnarmed].assign[wMain.1d8_6]
perform hero.child[wUnarmed].assign[Helper.DamageUp]
dice = "1d8"
elseif (level < 7) then
result = hero.child[wUnarmed].assign[wMain.1d10_304]
perform hero.child[wUnarmed].assign[Helper.DamageUp]
dice = "1d10"
elseif (level < 9) then
result = hero.child[wUnarmed].assign[wMain.2d6_104]
perform hero.child[wUnarmed].assign[Helper.DamageUp]
dice = "2d6"
else
result = hero.child[wUnarmed].assign[wMain.2d8_204]
perform hero.child[wUnarmed].assign[Helper.DamageUp]
dice = "2d8"
endif
hero.child[wUnarmed].field[livename].text = "Shock " & dice```
#3
Senior Member

Join Date: May 2010
Location: Maryland
Posts: 164

May 7th, 2011, 08:12 AM
I think you'd add these tags:

hero.child[wUnarmed].assign[wMaxStrBon.0]
hero.child[wUnarmed].assign[wMaxStrPen.0]

You might have to delete them first -- hero.child[wUnarmed].delete[wMaxStrBon.?], hero.child[wUnarmed].delete[wMaxStrPen.?]

I also see a tagreplace method, which might let you do the delete/assign in one go. Something like perform tagreplace[wMaxStrBon.?,wMaxStrBon.0]. No idea if the wildcard is going to work in that context.

Additionally, I'm not certain that assigning the Helper.DamageUp tag in the PostLevels phase actually does anything. In my testing of that tag, it only seemed to take effect if it was assigned in the Pre-Levels or earlier phases. You could probably delete those statements, with no noticeable effect.

Last edited by Adam.Ormond; May 7th, 2011 at 08:18 AM.
#4

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Lone Wolf Development Web Site Announcements Realm Works Forums     Realm Works Discussion         Realm Works in Action         Realm Works Feature Requests     Realm Works in Action     Realm Works Feature Requests Hero Lab Online Forums     Hero Lab Online Discussion     HLO - Pathfinder 2nd Edition     HLO - Starfinder     HLO - Shadowrun Hero Lab Forums     HL - Pathfinder Roleplaying Game     HL - D&D 5th Edition SRD     HL - Shadowrun     HL - Mutants & Masterminds     HL - d20 System     HL - World of Darkness     HL - Call of Cthulhu     HL - 4th Edition     HL - Savage Worlds     HL - Cortex System     HL - Authoring Kit     HL - User Projects     HL - Alternity (user-created)     Hero Lab Discussion Army Builder Forums     Army Builder Army Builder Data Files     Babylon 5: A Call to Arms     Battlefleet Gothic     Blood Bowl     Black Powder, Bolt Action, Hail Caesar, Judge Dredd, and Pike & Shotte     Confrontation - English     Kings of War (2nd Edition)     Lord of the Rings (Tabletop)     Mordheim     Necromunda     Starship Troopers     Star Wars: X-Wing and Armada Miniatures Game     The 9th Age     Warhammer Ancient Battles     Warhammer 40,000     Warhammer Fantasy 8th Ed.     Warhammer Historical: The Great War     Warhammer Fantasy 3rd Ed.     Warlord     Warmachine & Hordes     Warmaster Card Vault Forums     Card Vault Card Vault Data Files     MLB Showdown     Lord of the Rings CCG     .hack//ENEMY     Vs. System     Yu-Gi-Oh!     D&D Miniatures

All times are GMT -8. The time now is 05:43 AM.

 -- Default Style -- Majestic Contact Us - Lone Wolf Development Forums - Archive - Top