I was wondering if it's currently possible or would be possible in the future to have code that doubles up armor and weapons.
For example, knuckle spiked gauntlets that are armor but also give the wearer a piercing attack as well. Another instance would be a dagger shield, obviously doubles up as a piercing attack and a shield.
Double up
Double up
Sune: Like OMIGAWWWWD.
- Ellian
- Sword Master
- Posts: 180
- Joined: Mon Jan 05, 2004 4:31 am
- Location: Waterdeep - Temple of Beauty
- Contact:
I don't think you'd need to classify something as both weapon and armour. Items such as spiked gauntlets or shields could maintain their ITEM_TYPE_ARMOR, and have a random prog.
You could add in additional checks against $f's ($f being whoever $n is fighting) AC, resistances... any of that cool stuff.
Also, a disclaimer - I have a sneaky suspicion that I'm misusing the objisworn check. Maybe someone could check this to see if it would even work? I'm just curious.
Jayson
Code: Select all
>rand_prog 20ish~
if position($n) == 8
if objisworn($o) == $n
mpechoat $n You backhand your opponent with one spiked gauntlet.
mpechoaround $n $N backhands $F with one spiked gauntlet.
mpmadd $f currhp -10ish
endif
endif
Also, a disclaimer - I have a sneaky suspicion that I'm misusing the objisworn check. Maybe someone could check this to see if it would even work? I'm just curious.
Jayson