Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,728

Old March 6th, 2012, 04:50 PM
Quote:
Originally Posted by FaeruN View Post
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
There is an offhand field that gets set to 1 when its equipped in the off-hand. Or at least I remember there being one. Look at the fields on the weapon and then check the off-hand box off/on and see what field is getting set to a 1/0 value.

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 online now   #11 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 7th, 2012, 12:09 PM
I am using these

Quote:
Phase: Post Levels Priority: 5000 Index: 1


if (tagis[hero.EquipWep] = 2) then
if (tagis[hero.EquipMain] <> 0) then
if (tagis[hero.EquipOff] <> 0) then
perform hero.assign[Custom.TwiceEquip]
endif
endif
endif
Quote:
Phase: Final Phase Priority: 10000 Index: 2


if (hero.tagcount[Custom.TwiceEquip] <> 0) then
field[BonEnhance].value = 5
endif
and it sends me an error that says Group -> "Hero" not defined
FaeruN is offline   #12 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,870

Old March 7th, 2012, 12:14 PM
Capitalization matters - tagis[Hero, not tagis[hero
Mathias is offline   #13 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 7th, 2012, 01:12 PM
Quote:
Originally Posted by Mathias View Post
Capitalization matters - tagis[Hero, not tagis[hero
hahahaha thanks for that dude it is a good advice, I didn't noticed that... but it stills not working, this is how I am using it now:

Quote:
Phase: Final Phase Priority: 10000 Index: 1

if (hero.tagcount[Hero.EquipWep] = 2) then
if (tagis[Hero.EquipMain] <> 0) then
if (tagis[Hero.EquipOff] <> 0) then
field[BonEnhance].value = 5
endif
endif
endif
FaeruN is offline   #14 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,870

Old March 7th, 2012, 01:24 PM
Final's too late. Try post-levels
Mathias is offline   #15 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 7th, 2012, 01:45 PM
Quote:
Originally Posted by Mathias View Post
Final's too late. Try post-levels
still nothing, even changed the priority to 3000, 5000 and then 10000 (all on post-levels) and nothing
FaeruN is offline   #16 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,870

Old March 7th, 2012, 01:55 PM
This is why I like indenting if statements - it lets you see how they flow.

This is what you have:

Code:
 
if (hero.tagcount[Hero.EquipWep] = 2) then
  if (tagis[Hero.EquipMain] <> 0) then
    if (tagis[Hero.EquipOff] <> 0) then
      field[BonEnhance].value = 5
      endif
    endif
  endif
Is that the set of tests you want to use? See how it flows - making the next test only if the previous one is passed?
Mathias is offline   #17 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 7th, 2012, 02:28 PM
not necessarily, the thing is that the 3 conditions must be met for the bonus to apply, no matter the way really

To both weapons to be wielded at the same time
To wield one of them on the main hand
To wield the other weapon on the off hand (obviusly)

if there is another way to evaluate the conditions that makes it easier and that could work, go ahead, because I think that the logical of the conditions it is correct and you all understand the idea of the weapon
FaeruN is offline   #18 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 12,870

Old March 7th, 2012, 02:35 PM
Re-read Aaron's posts #4 and #8 in this thread.
Mathias is offline   #19 Reply With Quote
FaeruN
Member
 
Join Date: Feb 2012
Posts: 30

Old March 7th, 2012, 02:50 PM
hell yeah it is finally working!! thank you Aaron, ShadowChemosh and Mathias

here is a copy of the eval script if someone else needs to do some thing like this

Quote:
Phase: Post-Levels Priority: 5000 Index: 1

if (tagis[Hero.MainHand] <> 0) then
perform hero.assign[Custom.TwiceEquip]
endif

if (tagis[Hero.OffHand] <> 0) then
perform hero.assign[Custom.TwiceEquip]
endif
Quote:
Phase: Post-Levels Priority: 5001 Index: 2

if (hero.tagcount[Custom.TwiceEquip] = 2) then
field[BonEnhance].value = 5
endif
FaeruN is offline   #20 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 11:08 AM.


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