|
Junior Member
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26
|
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 |
#1 |
Junior Member
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26
|
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 |
#2 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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 |
#3 |
Junior Member
Join Date: Oct 2007
Location: New Hampshire, USA
Posts: 26
|
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 |
#4 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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 |
#5 |
|
|