View Single Post
Old 07-27-2002, 12:04 PM   #2
Robbert
Member
 
Join Date: Apr 2002
Location: #### Paso, Tx
Posts: 89
Robbert is on a distinguished road
Send a message via ICQ to Robbert Send a message via AIM to Robbert
Do you want specifically the damage noun of pierce, or all weapons which do piercing damage? ROM is set up to allow for different words to describe the same damage type.

For only pierce by itself, take a look at attack_table in const.c and find what number in the list "pierce" is. Remember to start counting with 0. Then simply compare that value to obj->value[3]. If they match, then the weapon has the verb of "pierce'.

If you want to allow for all piercing verbs, you need to do a check for each one of the types, just as outlined above. I dont recommend this, in retrospect, because ROM considers biting attacks as piercing, and scratch attacks. You may want to check for "stab" as well as "pierce" though.
Robbert is offline   Reply With Quote