Senior Member
Join Date: Jul 2010
Posts: 178
|
Hi, All.
I'm trying to help out a friend who wants to use the subject creature for a different game. First: Is there a helper that will force Hero Lab to ignore any strength bonuses on a melee attack's damage? If not, what script or tag could I use? I'm trying to set up a monster with an incorporeal touch ability that deals 1d6 Cold damage plus 1d6 Charisma damage. I can get the incorporeal touch to show up, but the incorporeal creature curiously has a +3 strength bonus. And when I select 1d6 for the damage and use the wDamExtra tag to apply the " cold plus 1d6 Charisma damage" description, it applies that bonus to the 1d6. If I select "None" for the "incorporeal touch" damage, then the wDamExtra info doesn't even show up. Second: The creature becomes corporeal after dealing Charisma damage to a creature. It gains a Strength score equal to its Charisma score, its deflection bonus to AC becomes a natural armor bonus, and its incorporeal touch attack is replaced with two slam attacks. It loses its fly speed and replaces it with a land speed. I had planned on doing this with an In-Play check box similar to the hybrid form modifications applied for a lycanthrope. I'd appreciate any suggestions you might have for the scripting to change the relevant aspects of the creature when the box is checked. Thanks for your help. |
#1 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
So in this case wOverDMG.CHA would use charisma, instead of Strength. Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
|
#2 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Cool. So, is there an option to use the wOverDMG tag and not apply any ability score at all?
|
#3 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Quote:
I was going to use the following code: Code:
hero.child[Damage].field[tDamStr].value = 0 Last edited by Paris.Crenshaw; March 9th, 2015 at 04:37 PM. Reason: Found a better solution. |
|
#4 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
Glad you got it sorted Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Run this script at First/510: Code:
~ If ability not active get out now! doneif (field[abilActive].value = 0) ~ Remove the incorporeal subtype perform hero.assign[NoTypeAbil.stIncorpor] Pre-Attributes/100: Code:
~ If ability not active get out now! doneif (field[abilActive].value = 0) ~ Set the starting Str modifier to the same as the Cha score hero.child[aSTR].field[aStartMod].value = hero.child[aCHA].field[aStartMod].value I assume you set the Incorporeal Touch Attack as an "Other Melee Weapon" on the race. So add a bootstrap condition to it: First/600 Code:
!NoTypeAbil.stIncorpor Then add Two Slam Attacks with the following bootstrap condition: First/600 Code:
NoTypeAbil.stIncorpor Quote:
Code:
~ If ability not active get out now! doneif (field[abilActive].value = 0) hero.child[Attack].field[BonProfane].value += field[abValue].value hero.child[Damage].field[BonProfane].value += field[abValue].value I had to write a little of this so if I can I will finish out this module to be added to the GM Pack. Or happy to take other stuff you have done. Attached is an example source of this monster. 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. |
||
#6 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Wow. Amazing. I don't have my laptop handy (and I'm at work ), so I can't try this out, right now, but I can't wait to sit down and get back to work.
Thank you very much for your help, Shadow! I'll let you know how it works out! |
#7 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Hey, ShadowChemosh. Thanks, again, for the help. I'm attaching the version of Ephemeral Echo that I finally developed. The one thing I'm not as happy about is the way the stat block output works. Setting up the race so that the slam attacks are only present when the monster is corporeal means that when the Corporeal Form ability is not active, the slam attack isn't included in the stat block; and conversely, when the ability is active, the incorporeal touch is left out. So, the monster works great within the program, but isn't complete when printed out for use elsewhere. I'd almost rather just have the slam attacks always show up, but always use the character's Charisma bonus as the damage bonus on the attack. Other than that, this ended up working perfectly.
Now, looking further into the module, there's a piece of magical equipment that modifies a character based on its corporeality. I think I can figure out how to modify the item's behavior based on the presence or absence of the incorporeal subtype. But I'm unclear on how to implement the actual modifications. 1) If the character is corporeal, it applies a special property to "her natural attacks and weapons she wields (even thrown weapons and projectiles)." I can figure out how to assign the special property in question to a single item, but I'm not sure what I would use to apply it to every type of attack a corporeal creature would have. 2) If the character is incorporeal, "it can interact with [its] surroundings. Any item in its possession becomes incorporeal." Similarly, for incorporeal creatures, I would effectively have to have the item make the weight of each carried item equal to 0 and give all items the ghost touch special ability. Is there a single field or tag that encompasses every piece of gear that a character possesses? |
#8 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Back again. So, I've managed to get the basics of the amulet working. When equipped, the amulet applies the ghost touch property to everything the creature is carrying. My problem is that I only want it to reduce the equipment's weight to zero when the wearer is incorporeal. I'm having problems with the requirement in the if/then statement. What I have so far is as follows:
Code:
if (field[gIsEquip].value <> 0) then foreach pick in hero from MyGear perform eachpick.assign[Ability.iGhostTch] nexteach if (#hasability[raIncorpor] <> 0) then foreach pick in hero from MyGear eachpick.field[gWeight].value = 0 nexteach endif endif Thoughts? Thanks! |
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
So timing I would need to look up from my Spellbooks equipment addon. The other thing is be careful with adding foreach loops they are CPU intensive. Code:
~ If not equipped get out now! doneif (field[gIsEquip].value = 0) ~ Only process if we are incorporeal doneif (#hasability[raIncorpor] = 1) ~ Find all gear items and set weight to zero foreach pick in hero from MyGear ~ Apply Ghost Touch tag to all weapons if (eachpick.tagis[component.BaseWep] = 1) then perform eachpick.assign[Ability.iGhostTch] endif ~ Set the item weight to zero eachpick.field[gWeight].value = 0 eachpick.field[gearWeight].value = 0 nexteach The only last thing I would change is to look for the Incorporeal Subtype on the hero instead of a Racial Special. But I am not near HL and don't remember the unique id for that subtype. 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. |
||
#10 |
|
|