Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Of course the bigger issue is why even put the monster in HL if you are not going to use HL during the game? Cause you could just print the statblock already from the Paizo PDF. So confused on why code and "script" the abilities to work if not going to use HL during the game? 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. |
|
#11 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Thanks.
I'll try that setup. One thing I should point out, though, is that, while the Ghost Touch Weapon Item power is only supposed to be used on magic weapons, applying it to any other item allows an incorporeal creature to use it without triggering a validation error. Frumple's Adjustments from the Community GM Pack showed me that, and it actually works. Using my script, when the amulet is not equipped an item like a headband has a validation error, but when you equip it, the error goes away. I can still use the BaseWep approach for how the amulet functions if the character is corporeal. As for the subtype, what you're looking for would be Code:
doneif (#hassubtype[stIncorpor] = 1) |
#12 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Quote:
The fact that I want the script/code to do all this stuff is my OCD-like need to make it "work right." And besides...I may decide to use it at some point and I do use HL when I GM. |
|
#13 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Pre-Attributes/10000 Code:
~ If not equipped get out now! doneif (field[gIsEquip].value = 0) ~ Only process if we are incorporeal doneif (#hassubtype[stIncorpor] = 0) ~ Set our Encubrance Strength to be our Charisma herofield[tEncumSTR].value += 10 + hero.child[aCHA].field[aStartMod].value ~ Find all gear items and give the Ghost Touch ability ~ so that these items can be worn without errors. foreach pick in hero from MyGear perform eachpick.assign[Ability.iGhostTch] nexteach 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. |
|
#14 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
So the second part of the amulet is if you are corporeal then all your weapons become ghost touch. This script will do that:
Render/9999999 Code:
~ If not equipped get out now! doneif (field[gIsEquip].value = 0) ~ Only process if we are corporeal doneif (#hassubtype[stIncorpor] = 1) ~ Find all weapons and give the Ghost Touch ability foreach pick in hero from BaseWep perform eachpick.assign[Ability.iGhostTch] perform eachpick.assign[HasAbility.iGhostTch] ~ If custom/magic weapon then build full name including other ~ abilities. if (eachpick.isgizmo = 1) then eachpick.field[livename].text = signed(eachpick.field[BonEnhance].value) & " " & lowercase(eachpick.tagnames[Ability.?," "]) & " " & lowercase(eachpick.tagnames[IsWeapon.?]) ~.. not a custom/magic weapon so just add ghost touch else eachpick.field[livename].text = lowercase(eachpick.tagnames[Ability.?," "]) & " " & lowercase(eachpick.field[name].text) endif nexteach 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. |
#15 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Quote:
I think there is also a problem with the #hasability or #hassubtype macros. They don't appear to be working. Is it possible that these scripts are being executed too early? I'm not sure when the subtype and incorporeal abilities show up, but the scripts seem to be applying the changes whether the creature is corporeal or not. |
|
#16 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Quote:
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. |
||
#17 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Here are all three scripts: Code:
<eval phase="PostLevel" priority="10050" index="1"><![CDATA[ ~ If not equipped get out now! doneif (field[gIsEquip].value = 0) ~ Only process if we are incorporeal doneif (hero.tagis[Ability.raIncorpor] = 0) ~ Remove the Ingore Encubrance tag that incorporeal applies perform hero.delete[Hero.IgnoreEnc] ~ Find all gear items and give the Ghost Touch ability ~ so that these items can be worn without errors. foreach pick in hero from MyGear perform eachpick.assign[Ability.iGhostTch] nexteach ]]></eval> <eval phase="PostAttr" priority="1" index="2"><![CDATA[ ~ If not equipped get out now! doneif (field[gIsEquip].value = 0) ~ Only process if we are incorporeal doneif (hero.tagis[Ability.raIncorpor] = 0) ~ Set our Encubrance Strength to be our Charisma herofield[tEncumSTR].value += hero.child[aCHA].field[aFinalVal].value ]]></eval> <eval phase="Render" priority="9999999" index="3"><![CDATA[ ~ If not equipped get out now! doneif (field[gIsEquip].value = 0) ~ Only process if we are corporeal doneif (hero.tagis[Ability.raIncorpor] = 1) ~ Find all weapons and give the Ghost Touch ability foreach pick in hero from BaseWep perform eachpick.assign[Ability.iGhostTch] perform eachpick.assign[HasAbility.iGhostTch] ~ If custom/magic weapon then build full name including other ~ abilities. if (eachpick.isgizmo = 1) then eachpick.field[livename].text = signed(eachpick.field[BonEnhance].value) & " " & lowercase(eachpick.tagnames[Ability.?," "]) & " " & lowercase(eachpick.tagnames[IsWeapon.?]) ~.. not a custom/magic weapon so just add ghost touch else eachpick.field[livename].text = lowercase(eachpick.tagnames[Ability.?," "]) & " " & lowercase(eachpick.field[name].text) endif nexteach ]]></eval> 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. |
|
#18 |
Senior Member
Join Date: Jul 2010
Posts: 178
|
Have you had a chance to use these, yet, Shadow?
The changes to Strength for encumbrance aren't having any effect. I can see in the fields window that the strength is set to the proper score, but the actual weights for the different encumbrance values are all set to 0. There must be some other effect from the Incorporeal subtype that affects those values. I'm also seeing a problem with the Corporeal Form ability. I can get the ability to modify the strength score based on the final Charisma score (after spells, items, etc., have been applied, but that score isn't being used to do any real calculations. I can see that the Base Melee attack bonus changes, but that isn't applied to any of the weapons, like the slam attacks. |
#19 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Use these? No. I have tested them some while building. But I have a few minutes here and there to work on this. So its been very quick tests.
Quote:
Image3.jpg Quote:
Image4.jpg Shrug attached are the latest files I am working with. 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. Last edited by ShadowChemosh; March 14th, 2015 at 10:59 AM. |
||
#20 |
|
|