Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old August 18th, 2013, 02:56 PM
Okay i've got a Bastard Sword that i'm entering into the editor which is causing me a problem.

{i}+2 keen flaming bastard sword{/i} is made from a solid piece of jagged black stone.

Easy right? Bootstrap the Keen, Flaming, and Stone to the Bastard Sword add the correct numbers and its good to go.

However,

{B}The sword is very evil, and any good character that wields it gains two negative levels.{/b}

Ahh, I thought, i'll copy the code from the Unholy Power and change the number to 2 that should work..

Code:
~ If the hero is Good, and we're equipped, add 2 negative levels
      doneif (hero.tagis[Alignment.Good] = 0)

      if (parent.tagis[component.BaseWep] <> 0) then
        doneif (parent.field[gIsEquip].value + parent.field[wIs2nd].value = 0)
      else
        doneif (parent.field[gIsEquip].value = 0)
        endif

      herofield[tNegLevel].value += 2
HTML Code:
Attempt to access non-existent parent pick for a top-level container from script
- - -
Attempt to access non-existent parent pick for a top-level container from script
Whats going wrong?? I presume it's the Parent.field which is causing the problem.

How do I transition to the weapon if the parent.field isn't the correct method?

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
bodrin is offline   #1 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old August 18th, 2013, 03:29 PM
Never mind Scepter of Heaven script works

Code:
~ Assign negative levels based on alignment
      doneif (field[gIsEquip].value + field[wIs2nd].value = 0)

      if (hero.tagis[Alignment.Good] <> 0) then
        herofield[tNegLevel].value += 2
        endif

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
bodrin is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 18th, 2013, 05:39 PM
Quote:
Originally Posted by bodrin View Post
Whats going wrong?? I presume it's the Parent.field which is causing the problem.

How do I transition to the weapon if the parent.field isn't the correct method?
As your a specific magic weapon you don't have a "parent.container" as their is no "Gizmo" involved. When its a Power it has to transition from itself up to the parent and then the container which is the Gizmo.

So you notice how in your fixed script field[gIsEquip].value does NOT contain the parent.container. As your just checking yourself...

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   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 12:23 PM.


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