hi. i need help. i'm trying to make a skill that when the user uses the skill, the skill icon is on top of the player.
i tried using this.
obj
Skills
SBombC
icon = 'Skills.dmi'
icon_state = "Spirit Bomb Charge"
screen_loc = usr.x,usr.y+15,usr.z
layer = FLY_LAYER
and this is the part of the proc of the skill that is used
usr.SKILL = "true"
usr.MOVABLE = "false"
usr.icon_state = "SBomb"
usr.overlays += /obj/Skills/SBombC
sleep(50)
view() << "You shoot an S-Bomb.!"
usr.overlays -= /obj/Skills/SBombC
usr.icon_state = ""
usr.HP = 0
usr.SKILL = "false"
usr.MOVABLE = "true"
return ..()
the skill is working but the skill image is on the player's x and y position.
ID:147854
![]() Oct 28 2003, 2:42 pm
|
|
But if you're correct in saying that's a proc that all that usr crap is in, then you've got more problems; usr usually doesn't belong in procs. It may work if it's only ever called by Click() or something, but just that single piece of the proc isn't nearly enough to diagnose a problem.
Lummox JR