- Joined
- Apr 18, 2012
- Messages
- 121
- Reaction score
- 7
- First Language
- English
- Primarily Uses
Greetings,
In my project, I'd like to add more realism to weapon wielding. I'd like to use tags in the noteboxes of weapons and shields to give bonuses and penalties for wielding equipment with only one or two hands, depending on each item.
For example, John likes swords.
Wielding a Longsword alone, with no shield in his 2nd hand (as if he was wielding the sword with two hands) give him an Attack rating of 45.
However, I'd like to reduce that rating by 10 whenever he wields a shield (or anything else in his 2nd hand).
Some weapons don't have that penalty, like in the case of Rapiers, which are meant to be used with a Buckler.
That's why I can't just give all shield a -10 attack rating. (also some weapons might take a lesser or bigger penalty from being wielded with just one hand).
But there is more! John also likes crossbows.
Should he wield one at the same time as a shield, like a Pavise (which is meant to be used with a crossbow), I'd like to give him a -5% penalty to accuracy, since shields are heavy, and wielding one makes him less focused, but doesn't reduce his Attack.
Basically, I need a script that lets me add bonuses / penalties to either Attack or Accuracy (hit rate) to weapons whenever the character is wielding something else in his 2nd hand.
(if the 2nd equip slot is empty, he doesn't take penalties from whatever weapon in his main hand).
Thank you very much for your help! It is highly appreciated.
In my project, I'd like to add more realism to weapon wielding. I'd like to use tags in the noteboxes of weapons and shields to give bonuses and penalties for wielding equipment with only one or two hands, depending on each item.
For example, John likes swords.
Wielding a Longsword alone, with no shield in his 2nd hand (as if he was wielding the sword with two hands) give him an Attack rating of 45.
However, I'd like to reduce that rating by 10 whenever he wields a shield (or anything else in his 2nd hand).
Some weapons don't have that penalty, like in the case of Rapiers, which are meant to be used with a Buckler.
That's why I can't just give all shield a -10 attack rating. (also some weapons might take a lesser or bigger penalty from being wielded with just one hand).
But there is more! John also likes crossbows.
Should he wield one at the same time as a shield, like a Pavise (which is meant to be used with a crossbow), I'd like to give him a -5% penalty to accuracy, since shields are heavy, and wielding one makes him less focused, but doesn't reduce his Attack.
Basically, I need a script that lets me add bonuses / penalties to either Attack or Accuracy (hit rate) to weapons whenever the character is wielding something else in his 2nd hand.
(if the 2nd equip slot is empty, he doesn't take penalties from whatever weapon in his main hand).
Thank you very much for your help! It is highly appreciated.
