• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Samurai feat for Two Swords as One

Illvatar

Active member
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
 
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
 
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
 
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
 
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
 
Back
Top