Double up

For builders to discuss and ask building questions.
Post Reply
Layem
Sword Bumbler
Sword Bumbler
Posts: 16
Joined: Wed Jun 08, 2005 5:23 am
Location: Waterdeep
Contact:

Double up

Post by Layem » Sat Aug 27, 2005 1:55 am

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.
Sune: Like OMIGAWWWWD.
User avatar
Ellian
Sword Master
Sword Master
Posts: 180
Joined: Mon Jan 05, 2004 4:31 am
Location: Waterdeep - Temple of Beauty
Contact:

Post by Ellian » Sat Aug 27, 2005 5:48 am

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.

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
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
Post Reply