Im helping make a paintball game. I just need to know the answer to this question. Theres an object called a Nitro Tank which powers paintballs and is required to be supplied in order to fire a projectile. In this case. The object Nitro supplies "air".
mob/var/air = 0
How would i write a code that gives 100 air points when a nitro tank is equipped?
ID:176613
Dec 27 2002, 9:28 pm
|
|
Dec 27 2002, 11:50 pm
|
|
<code>obj/nitro/verb/equip() set src in usr usr.air+=100</code>
|
RainZero wrote:
Im helping make a paintball game. I just need to know the answer to this question. Theres an object called a Nitro Tank which powers paintballs and is required to be supplied in order to fire a projectile. In this case. The object Nitro supplies "air". I'd recommend something similar to Crispy's example, but slightly more complete. Instead of using equip/unequip, I'll make a leap here and assume that you just want to use the tank automatically if you have it in your inventory. obj/item/nitro Lummox JR |
In response to Lummox JR
|
|
Or you could have lots of different sized tanks.
|
In response to Hazman
|
|
I think that's what he meant... :-)
|