Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Samurai feat for Two Swords as One (http://forums.wolflair.com/showthread.php?t=7795)

Illvatar July 28th, 2008 06:23 AM

Samurai feat for Two Swords as One
 
I am trying to add this feat to my character whenever he is using a masterwork bastard sword and a masterwork shortsword. I think I know how to check for those, but I'm not certain. Also, how do I add the feat (or its effect, if that is the only way) through the script? Lastly, what phase would be the best?

Thanks,
Illvatar

Illvatar July 29th, 2008 06:16 PM

From what I can see I need to check if the hero has Two Weapon Fighting already. If not, then I need to add the feat when he hits 2nd level. I need to tag it somehow. Then in a later phase I need to check to see if the hero has a bastard sword with at least a +1 bonus in his primary hand, then check to see if the hero has a shortsword with at least a +1 bonus in his secondary hand. If any of these are not true and if the tag is there showing I added Two Weapon Fighting, then I need to remove it.

What I'm not certain of is just how to tag the feat and which phase would be best to check for removing it. Also, can I do this through the editor or do I need to go directly into the XML?

Any suggestions would be welcome.
Illvatar

Colen August 6th, 2008 03:49 PM

Samurai feat for Two Swords as One
 
Illvatar wrote:
>
>
> I am trying to add this feat to my character whenever he is using a
> masterwork bastard sword and a masterwork shortsword. I think I know how
> to check for those, but I'm not certain. Also, how do I add the feat (or
> its effect, if that is the only way) through the script? Lastly, what
> phase would be the best?


Sorry, I'm not familiar with the exact effects of this feat. Can you
describe what it does?


--
Colen McAlister, colen@wolflair.com
Chief Engineer, Lone Wolf Development

Illvatar August 8th, 2008 06:48 PM

The feat gives Two Weapon Fighting if the character is using both a Katana (masterwork bastard sword) in the primary hand and a Wakisashi (masterwork shortsword) in the secondary hand. (The combination is known as the Daisho.) I was hoping that, for in-play purposes, I could show the proper to-hit bonuses if the appropriate weapons were equipped. At present, I just show a message with the ability that informs the player that they have the bonuses. The actual class is from CW and the ability is described on Pg 9.

Thanks,
Illvatar

Colen August 22nd, 2008 12:44 PM

Samurai feat for Two Swords as One
 
Illvatar wrote:
>
>
> The feat gives Two Weapon Fighting if the character is using both a
> Katana (masterwork bastard sword) in the primary hand and a Wakisashi
> (masterwork shortsword) in the secondary hand. (The combination is known
> as the Daisho.) I was hoping that, for in-play purposes, I could show
> the proper to-hit bonuses if the appropriate weapons were equipped. At
> present, I just show a message with the ability that informs the player
> that they have the bonuses. The actual class is from CW and the ability
> is described on Pg 9.


The following script, run in the First phase, should do it. I used the
Longsword and Shortsword, but you can just change the unique ids to the
ones of the weapons you want.


~ Find a longsword equipped in the primary hand - if we don't find it,
~ get out now.
var isfound as number
foreach pick in hero where "thingid.wLongsword"
if (each.field[gIsEquip].value <> 0) then
isfound = 1
endif
nexteach
if (isfound = 0) then
done
endif

~ Now find a shortsword in the secondary hand - if we find it,
~ we can add the 'two weapon fighting' tag to the hero, then
~ get out.
foreach pick in hero where "thingid.wShortswd"
if (each.field[wIs2nd].value <> 0) then
perform hero.assign[Hero.TwoWep]
done
endif
nexteach



Hope this helps!

--
Colen McAlister, colen@wolflair.com


All times are GMT -8. The time now is 06:59 AM.

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