ID:266793
![]() Jul 1 2002, 9:35 am
|
|
How can I get it so that you can have weapons and armor equipped at the same time but not 2 armors and no weapons and not 2 weapons and no armor?
|
Greater Ice Craymel wrote:
How can I get it so that you can have weapons and armor equipped at the same time but not 2 armors and no weapons and not 2 weapons and no armor? if(abs(weapon_count - armor_count) > 1) usr << "Sorry, charlie." Assuming I understand your question. It all depends, of course, on how you implement weapons and armor. |
Basically if this is done right it's not an issue; in fact it's easier than allowing for multiple weapons to be equipped.
The basic system you'd use would be something like this:
Each thing that can be equipped has a var. That var points to whatever the item is, or else it's null if nothing is equipped.
Lummox JR