var/shot = NORTH
icon = 'player.dmi'
world << "[usr] has entered Drawl."
icon_state = input("Choose your color","Color") in list("Red","Green","Blue","Purple","Gold","Gray","Cyan")
new /obj/fire1(usr) //give player a spell to cast
castnorth() //using directional casting verbs so it doesn't have to be usr.dir
shot = NORTH
shot = SOUTH
shot = WEST
shot = EAST
var/obj/P = new S(usr.loc) //problem here
var/turf/T = P.loc
for(var/mob/M as mob in T)
M.health -= P.spelldamage
icon = 'fire1.dmi'
spelldamage = 3
If you didn't notice this is supposed to shoot a projectile :D
The problem here is that in the game when you use one of the cast verbs, the proc crashes saying that an object of type /obj/fire1 cant be created. I originally thought there was a problem with assigning S from arglist(usr.contents), but it seems to be referencing it fine...any ideas?
NOTE: The reason for getting the projectile from usr.contents is that I'm going to use usr inventory to switch spells