Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Illvatar
Junior Member
 
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26

Old July 28th, 2008, 06:23 AM
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 is offline   #1 Reply With Quote
Illvatar
Junior Member
 
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26

Old 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
Illvatar is offline   #2 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,718

Old August 6th, 2008, 03:49 PM
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
Colen is offline   #3 Reply With Quote
Illvatar
Junior Member
 
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26

Old 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
Illvatar is offline   #4 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,718

Old August 22nd, 2008, 12:44 PM
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
Colen is offline   #5 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 08:47 AM.


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