Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   There is any script for... (http://forums.wolflair.com/showthread.php?t=19783)

FaeruN February 28th, 2012 10:46 AM

There is any script for...
 
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 :)

Aaron 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.

FaeruN 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.

Aaron 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?

FaeruN March 5th, 2012 04:51 AM

Quote:

Originally Posted by Aaron (Post 77438)
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

Aaron 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.

FaeruN 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...

Aaron March 6th, 2012 11:55 AM

if (tagis[Hero.MainHand] <> 0) then
DO WHATEVER
endif

if (tagis[Hero.OffHand] <> 0) then
DO WHATEVER
endif

FaeruN March 6th, 2012 03:24 PM

nothing, still not working :/

ShadowChemosh 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.


All times are GMT -8. The time now is 09:21 AM.

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