Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Lonewolf147
Senior Member
 
Join Date: Feb 2013
Posts: 137

Old September 16th, 2014, 04:25 PM
Thanks to some help in a recent thread discussing item slot changes, I had looked into the scripting for the Hand of Glory. (http://forums.wolflair.com/showthread.php?t=48452)

The Hand is supposed to give you one extra ring slot. When I had looked at it for the Pathfinder version, it worked correctly and gave me 3 slots. But I became confused when I saw the script in the d20 version.

Code:
      ~ If we're equipped, and the hero is wearing one or more rings, delete
      ~ one of the 'I have a ring equipped' tags.
      if (field[gIsEquip].value <> 0) then
        if (hero.tagis[Hero.EqpRing] <> 0) then
          var result as number
          result = hero.delete[Hero.EqpRing]
          endif
        endif
This seems overly complicated, plus, it doesn't actually give you an extra slot. It just deletes the EqpRing tag. Which then lets you equip as many rings as you want, regardless of how many slots.

Was this intentional, or should it be changed to add a slot?

Code:
      ~ If we're equipped, add a tag that allows an extra ring slot.
      doneif (field[gIsEquip].value = 0)

      perform hero.assign[ExtraSlot.EqpRing]
Lonewolf147 is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old September 16th, 2014, 06:49 PM
I have already fixed the script to use the ExtraSlot.? Tag for the upcoming release. I noticed that d20 was using outdated logic so now it looks pretty much like Pathfinder.

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   #2 Reply With Quote
Lonewolf147
Senior Member
 
Join Date: Feb 2013
Posts: 137

Old September 17th, 2014, 03:19 PM
Excellent
Lonewolf147 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 04:32 AM.


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