I'm trying to make Death pop up above your character but i'm getting this runtime error.
runtime error: Cannot modify null.loc.
proc name: Send Out Death (/mob/GM/verb/Send_Out_Death)
source file: GM.dm,341
usr: LittleKid15 (/mob/PC)
src: LittleKid15 (/mob/PC)
call stack:
LittleKid15 (/mob/PC): Send Out Death(Reaper (/mob/NPC/Reaper))
heres my code.
mob
GM
Send_Out_Death(mob/M in world)
set category = "GM"
new /mob/NPC/Reaper()
var/mob/NPC/Reaper/R
R.loc = locate(M.x,M.y+1,M.z)
M.Move(null)
M << "Death appears in front of you!"
sleep(10)
M << "Now you.....'DIE!!!!!"
del(M)
Please help to fix this.
ID:178186
Jun 11 2002, 12:19 pm
|
|
In response to Spuzzum
|
|
you could make it an obj..... I think just by making one like this....
obj/reaper icon = 'reaper.dmi' then after that you could just add it when the obj goes above your head ^_~ ~Aleis~ |
In other words, you're creating a reaper nowhere. Then, you're creating an empty variable.
What you should be doing is
var/mob/NPC/Reaper/R = new /mob/NPC/Reaper()