mob/var/tmp/quest1obtained = 0
mob/var/tmp/quest1killcount = 0
mob
proc
quest1killcheck()
if(quest1obtained==1)
if(istype(src, /mob/Fishman))
usr.quest1killcount++
else
return
else
return
mob
proc
quest1completecheck()
if(quest1killcount>=5)
usr << alert("Thank you so much!")
usr.exp+=1000
usr.Level_Up()
usr.quest1obtained++
else
usr << alert("You haven't killed 5 fishmen...")
mob
NPC
tutorialman
name = "Tutorial Man"
icon='alexbase.dmi'
Health = 1.#INF
Max_Health = 1.#INF
Click()
if(src in view(1,usr))
if(usr.quest1obtained==0)
switch(alert("Kill some Fishmen for me?",,"Yes","No"))
if("Yes")
usr.quest1obtained=1
usr << (alert("That's great!"))
return
if("No")
usr << (alert("That's too bad..."))
return
if(usr.quest1obtained==1)
usr.quest1completecheck()
Problem description:Whenever checking with the NPC, he'll always say you don't have enough kills. There's something wrong with the counter.quest1killcount() proc is called in the deathcheck. Please don't criticize it, that's not what I'm posting this for, I know it's bad, it's my first quest. I just need help fixing it.
Also in this line:
if(quest1killcount>=5)
Shouldn't it be this?:
if(src.quest1killcount>=5)