Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old February 28th, 2012, 10:46 AM
Hey, sorry for bothering again, is just I don't know where to find all the scripts so I can look for them by myself, so I have to ask for some scripts...

There is any script like field[gIsEquip].value <> 0 but that only works for the off-hand?

like for make a weapon to increase the enhancement bonus just if the hero holds the weapon on the off-hand?

Thank you by the way
FaeruN is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 28th, 2012, 11:07 AM
Here is a good trick that might help in the future. Go to Develop -> Enable Data file debugging. Now add a weapon to your character, right click the weapon and pick Show debug tags, Now you have a list of the tags on that weapon. Equip it in the main hand, what tags were added? Now equip it in the off hand, which tags are added?

Now you should have enough information to write your script looking for the off hand tag.

Does the weapon get a bonus when wielded in 2 hands? If so then you only need to check for the off hand. If not then you need to check and make sure the main hand tag is not also present.
Aaron is offline   #2 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old February 29th, 2012, 05:58 AM
the thing is that I've created a sword (that I will call here customsword) that is just a +2 longsword when wielded, BUT if the custom sword is wielded in the main hand, you get another customsword and wield it in the off-hand, so you have 2 customswords, one in each hand simultaneously, then both swords turn from +2 to +5 holy speed, the weapons are the same so I need just a way that the same weapon hads to be wielded in main and off hand as two weapons.
FaeruN is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old February 29th, 2012, 10:53 AM
It seems to me that the important thing here is that 2 customswords are equipped, it's not necessary to know which is equipped in which hand, since they both get the same power in either hand. You can create a custom tag to track how many are equipped, for this example I will refer to this new tag as "Custom.SuperSword".

To add a new Custom tag, scroll down to the bottom of any tab in the editor and hit the User Tags button, and choose New Tag at the top.

I'd recommend you have 2 eval scripts.
1) In First have it check if the weapon is equipped, if so assign Custom.SuperSword to the hero.

2) Later, use hero.tagcount to count the Custom.SuperSword tags on the hero, if there are at least 2 then do whatever (modify the enhancement bonus and names, most likely)

Capisch?
Aaron is offline   #4 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 5th, 2012, 04:51 AM
Quote:
Originally Posted by Aaron View Post
It seems to me that the important thing here is that 2 customswords are equipped, it's not necessary to know which is equipped in which hand, since they both get the same power in either hand. You can create a custom tag to track how many are equipped, for this example I will refer to this new tag as "Custom.SuperSword".

To add a new Custom tag, scroll down to the bottom of any tab in the editor and hit the User Tags button, and choose New Tag at the top.

I'd recommend you have 2 eval scripts.
1) In First have it check if the weapon is equipped, if so assign Custom.SuperSword to the hero.

2) Later, use hero.tagcount to count the Custom.SuperSword tags on the hero, if there are at least 2 then do whatever (modify the enhancement bonus and names, most likely)

Capisch?
I've got it but, the problem is that, when I equip the "SuperSword" in the main hand, the field[gIsEquip] works perfectly, but on the off hand, this field doesn't fills and I look for a tag that should appear or change when I equip an off hand weapon, but I just can't find it

Last edited by FaeruN; March 5th, 2012 at 05:03 AM.
FaeruN is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 5th, 2012, 04:11 PM
When a weapon is equipped in the main hand, it has the Hero.MainHand tag, and when it is equipped in the off hand it has the Hero.OffHand tag.
Aaron is offline   #6 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 5th, 2012, 06:26 PM
and how do I use that? I've tried if the tag is on use, or to tagcount looking for that tag and it stills doesn't work... I don't have any more ideas for this...
FaeruN is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old March 6th, 2012, 11:55 AM
if (tagis[Hero.MainHand] <> 0) then
DO WHATEVER
endif

if (tagis[Hero.OffHand] <> 0) then
DO WHATEVER
endif
Aaron is offline   #8 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 6th, 2012, 03:24 PM
nothing, still not working :/
FaeruN is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 6th, 2012, 03:48 PM
Maybe its just me but I am wondering if you both are on the same page. My advice would be for FaeruN to post your full code that your having problems with including the timing you are using.

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   #10 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 06:57 PM.


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