obj
beam
icon = 'Alphabet.dmi'
icon_state = "B"
layer = 100
density = 0
Bump(A)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
Move()
for(var/mob/M in src.loc)
var/damage = src.Str
M.HP -= damage
if(M.HP <= 0)
world << "[M] has been slain"
del(M)
else
world <<"[M] got hit for [damage] damage!"
var/K = new/obj/Tail(src.loc)
K:dir = src.dir
..()
I am just starting to learn and would appreciate the help, the var/damage with a digit is fine, works perfect but im trying to get the damage to be the strength of the player. var/damage = 20 works but var/damage = src.Str does not. Can anybody help me please I think it is an easy fix but I dont understand enough yet maybe somebody could explain. Thank you
Hope that helps any.
EDIT :
Which library are you using ? It shouldnt be using : sign. instead it should be a dot. It might give an error since K doesnt have a defined type.