ID:270392
 
obj/Training_Poll
icon = 'obj.dmi'
icon_state = "Training Poll"
density = 1
var/Health = 500
verb
Hit()
src.Stamina -= 7
src.EXP+=10

what would i put to subtract health from the pole?
Dragon_Fire6564 wrote:
> obj/Training_Poll
> icon = 'obj.dmi'
> icon_state = "Training Poll"
> density = 1
> var/Health = 500
> verb
> Hit()
> src.Stamina -= 7
> src.EXP+=10
>
>

what would i put to subtract health from the pole?

In all honesty, that question makes me wonder where you got the code. =/

In the verb Hit(), I'm assuming you're wanting to subtract from the player's stamina and add to his/her EXP. If so, use usr.Stamina and usr.EXP. The src vars modify the object that the verb belongs to; in this case the src is /obj/Training_Poll. So you would subtract from src's Health var.

Hiead