skill //object data
parent_type = /atom/movable
var
level
kidou
TigerCannon
name = "tiger_cannon"
var
image/tiger_cannon
damage = 0
New()
.=..()
tiger_cannon = image(icon = 'spells/TigerCannon/TigerCannon.dmi')
tiger_cannon.overlays = list(
image(icon = 'spells/TigerCannon/TigerCannon.dmi',pixel_x = 32, pixel_y = -64, layer=FLY_LAYER),
)
///////////////////////
mob/player
verb
zz()
set category = "Keys"
set hidden = TRUE
world << output("triggered","output")
var/skill/kidou/TigerCannon/t = new(src) //object creation?
t.loc = src.loc
Problem description:
The object was created. Now I'm trying to use it. Verb works, image is not showing. Maybe the operation is not as simple as I thought and something is missing?
Secondly, image objects don't appear to a player unless you specifically output the image to them. The exception to this would be images in overlays, but you never actually output the tiger_cannon image to any players so it's totally invisible overlays and all.