mob
Quest
icon = 'man.dmi'
verb/Talk()
set src in oview(2)
set category = "Commands"
if(usr.quest == 0)
switch(input("Would You Like A Quest?","Quest Guy",text) in list ("Yes","No"))
if("Yes")
given = 1
foundsword = 0
if("No") alert("Fine.")
if(usr.foundsword == 1) // this shows that you found the sword
usr << "Thanks for the sword!"
sleep(22)
obj
Sword
icon = 'sword.dmi'
name = "Flaming Sword"
verb
Get()
set src in oview(2)
set category = "Commands"
if (usr.given == 1)
usr.foundsword = 1
src << "you got the sword"
else if (usr.given == 0)
alert(usr,"Maybe You Should Get A Quest First."); return
mob
var
foundsword = 0
quest = 0
given = 0
Problem description:
I've tried and tried and tried but i cant make it so the mob cant get the sword till he gets a quest. When i use the code above though even when i get a quest it still wont let me get the sword.
Also,