Junior Member
Join Date: Mar 2010
Posts: 4
|
Im trying to code a new flaw, Elven Pride of Arms.
You only consider those weapons designed specifically for use by the noblest of elves to be fit to wield. Using any other object as a weapon is beneath your dignity. Prerequisite: Elven blood. Effect: You suffer a -4 penalty on attack rolls when using a weapon other than a longsword, rapier, or bow (long, short, or composite). Attacks made while fighting unarmed, touch attacks (including ranged touch attacks), or attacks made with natural weaponry also incur this penalty. Suggested Class/Race: Elf Source: Dragon Magazine #328 (Nobody’s Perfect – New Flaws for Nonhumans) Im really at a loss on how to proceed and any help would be appreciated. |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
I ran this at Post-attributes/12000:
Code:
foreach pick in hero from BaseWep where "!IsWeapon.wRapier & !IsWeapon.wLongsword & !IsWeapon.wLongbow & !IsWeapon.wShortbow" eachpick.field[wAttBonus].value -= 4 nexteach Code:
foreach pick in hero from BaseWep Note: To see flags on a weapon, you can right-click on them in the portfolio and select "Show Debug Tags for XXX" Code:
where "!IsWeapon.wRapier & !IsWeapon.wLongsword & !IsWeapon.wLongbow & !IsWeapon.wShortbow" Code:
eachpick.field[wAttBonus].value -= 4 Code:
nexteach A couple of things to note. After I created this in the editor and added it to a portfolio it gave me a weird error about timing. The message suggests reloading the code, which I did and it seems to be fine now. Also, in regards to the weapon tags that I chose, these should also cover any composite bows, and any weapons that count the same as a rapier or a longsword for the purposes of proficiency (assuming they've been properly tagged). |
#2 |
Senior Member
Join Date: Nov 2013
Location: Andover, Ma
Posts: 632
|
I like this, I hope you consider adding and any other content you have made to the Community Files.
|
#3 |
|
|