ID:139690
 
Code:
obj
guard
icon='ICONS.dmi'
icon_state="Guard"
name="Guard"
density=1
verb/Talk()
set src in range(1)
if(usr.martinquest==0)
if(usr.martined==0)
usr<<"The guard looks at you with fear on his face."
sleep(30)
var/obj/Z=input("Guard: We need help! The goblins are coming to raid us very soon, and we are not ready! Look, me and my men will handle the goblins. I just need you to guard that statue over there. If it's burned down, then the people will riot, I'm sure of it!(Please note, this should be the last quest you do in this village.)")in list("Accept","Decline")
if(Z=="Accept")
usr<<"As you tell the guard you'll do it, a loud horn blow echoes around you. 'They're coming!' the guard yells. When he says this, more guards come pouring out of tents as goblins become visible, marching down the path."
usr.martinquest=1
sleep(30)
var/obj/X=input("(This is a very important decision, so don't take it lightly!) What will you do?")in list("Defend the Statue","Help the Goblins by Burning it Down")
if(X=="Defend the Statue")
usr<<"You decide to defend the statue, and ready for combat!"
usr.good=1
usr.standing="Good"
sleep(30)
usr<<"Your only goal should be to kill the Torch Bearers. If they're left alone long enough, they'll easily burn the statue to the ground."
var/obj/AA=new/obj/instancegoblinguard
var/obj/BB=new/obj/instancegoblinguard
var/obj/CC=new/obj/instancegoblinguard
var/obj/DD=new/obj/instancegoblinguard
var/obj/EE=new/obj/instancegoblintorch
var/obj/FF=new/obj/instancegoblintorch
var/obj/GG=new/obj/instancegoblintorch
var/obj/HH=new/obj/instancegoblintorch
var/obj/II=new/obj/instancegoblintorch
var/obj/JJ=new/obj/instanceguard
var/obj/KK=new/obj/instanceguard
var/obj/LL=new/obj/instanceguard
AA.loc=locate(18,53,4)
BB.loc=locate(18,52,4)
CC.loc=locate(18,51,4)
DD.loc=locate(18,50,4)
EE.loc=locate(18,49,4)
FF.loc=locate(18,48,4)
GG.loc=locate(18,47,4)
HH.loc=locate(17,53,4)
II.loc=locate(19,53,4)
JJ.loc=locate(17,60,4)
KK.loc=locate(19,60,4)
LL.loc=locate(18,61,4)
sleep(100)
if(!locate(/obj/instancegoblinguard)in view())
if(!locate(/obj/instancegoblintorch)in view())
usr<<"You've successfully repelled the goblin forces!"
view()<<"The goblin raid has failed."
for(var/mob/O as mob in view())
if(O.name=="Guard")
del(O)
usr.martined=1
for(var/obj/L as obj in world)
if(L.name=="Wooden Statue")
L.hp=L.maxhp
else
for(var/obj/L as obj in world)
if(L.name=="Wooden Statue")
L.hp-=50
usr<<"When the goblins see you burn the statue to the ground, they all make a sound in unison. It sounds like a maniacal screaming.One of them runs up to you, and hits you across the head. Everything goes black."
view()<<"<font color = blue>[usr.name] burns the statue to the ground! A goblin hits them across the head and grabs them! The goblin slings them over its shoulder, and runs away, along with all the other goblins."
usr.martined=1
usr.evil=1
usr.standing="Evil"
usr.sight|=BLIND
usr.frozen=1
usr.loc=locate(1,1,4)
sleep(50)
usr.frozen=0
usr.sight&=~BLIND
usr<<"You wake up in a strange, dark jail cell, with no one in sight."
else
usr<<"The guard stares at you with an annoyed expression."
if(usr.martinquest==1)
if(usr.martined==1)
view()<<"The guard says: 'Thank you, thank you so much! We would've failed if it weren't for you! Please, take these coins for your help!'"
sleep(30)
usr.gold+=50
usr.xp+=75


Problem description: Whenever it gets to the spawning part, nothing appears. new/obj/instancegoblinguard never worked. Can anyone help?