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

Old March 12th, 2015, 07:44 PM
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.
ShadowChemosh is offline   #15 Reply With Quote