Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
willuwontu
Senior Member
 
Join Date: Sep 2014
Posts: 105

Old September 24th, 2014, 09:51 AM
Code:
Reduces the armor category of an armor by one step. (Heavy becomes medium, Medium becomes Light).

Code:
Phase: Pre-levels  Priority: 10000


        if (parent.tagis[ArmorClass.Medium] <> 0) then
          perform parent.delete[ArmorClass.Medium]
          perform parent.assign[ArmorClass.Light]
          perform parent.delete[ArmorCateg.Slows]

          ~adding this tag to the armor makes it count as one category worse for
          ~the purpose of proficiency, meaning it requires the same proficiency
          ~it used to.

          perform parent.assign[Helper.Prof1Step]
        elseif (parent.tagis[ArmorClass.Heavy] <> 0) then
          perform parent.delete[ArmorClass.Heavy]
          perform parent.assign[ArmorClass.Medium]

          ~adding this tag to the armor makes it count as one category worse for
          ~the purpose of proficiency, meaning it requires the same proficiency
          ~it used to.

          perform parent.assign[Helper.Prof1Step]
          endif

      ~ Add to our custom description if we're armor
      if (container.parent.tagis[component.BaseArmor] <> 0) then
        field[mtDesc].text &= " Decreased armor category and penalties."
endif

      container.parent.field[arArcFail].value -= 10
      container.parent.field[arMaxDex].value += 2
      container.parent.field[arArmorChk].value += 2

So I made essentially an item powers version of mithril (just copied the script over made a couple changes but that is it), when I select it though it says

Code:
Attempt to access field 'mtDesc' that does not exist for thing 'ipLighten'
- - -
Attempt to access field 'mtDesc' that does not exist for thing 'ipLighten'
Any Idea on what I coded wrong?
willuwontu is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 24th, 2014, 09:57 AM
Item Powers don't have a mtDesc field, that's only on materials I believe, so you'd have to change that part. I'd just put it in the Summary.
AndrewD2 is offline   #2 Reply With Quote
willuwontu
Senior Member
 
Join Date: Sep 2014
Posts: 105

Old September 24th, 2014, 10:08 AM
oh god, didn't even notice that line thank you.
willuwontu is offline   #3 Reply With Quote
Reply


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 08:13 PM.


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