I need the code that makes it so you can only have 1 sword at a time 1 shield at a time 1 plate and 1 helm if you could help me it would be greatly appreciated.
O and the code so you can drop equiped items
ID:175798
![]() Mar 9 2003, 12:59 pm
|
|
Vegeta54367 wrote:
I need the code that makes it so you can only have 1 sword at a time 1 shield at a time 1 plate and 1 helm if you could help me it would be greatly appreciated. The Code |
No, no, NO! You're ALWAYS supposed to not have a space between "the" and "code." It loses all meaning then! And besides, I posted it first.
|
Sorry, nobody is going to give you a fully-working equipment system. You'll have to make it yourself.
|
i got the system how to equip <font color=red>[stuff]</font> and unequip get and all that i jsut dont know the var to stop me form equipping 21 diffrent swords
|
<code>var right_hand left_hand head body</code>
Then when you equip something, either let the player choose where to equip it, or give the item a variable that determines to which variable it must be equipped. Then point that variable to the equipped object, and set the object to equipped with yet another variable.
<code>var/obj/sword/sword = new() right_hand = sword</code>
If you want to unequip it when its dropped, just have the drop action check to see if its equipped, and unequip it if it is.