ID:139157
 
Code:
obj/Rety
density=1
name="Sam"
icon='people.dmi'
icon_state="man"
verb
Talk()
set src in oview(1)
switch(alert("So you want a quest, eh?","Alert Number #1", "Yes","No"))
if("Yes")
alert("Wazzup")
usr.Talked=1
if("No")
alert("Fine, suityourself, meanie!")
if(usr.Talked==1)
alert("I've spoken to you already!")



Problem description:
Alright, I'm trying to make a different alert proc to be called if you've already spoken to a specific mob, so far... Things haven't been working on. Any help is appreciated.
1. Your putting the check at a later date to the alert proc.
2. You should use boolean logic.

obj/Rety
density=1
name="Sam"
icon='people.dmi'
icon_state="man"
verb
Talk()
set src in oview(1)
if(usr.talked) //no need for == its slower then this. this checks to see if it has any value from 1-276326352432 id its 0 it goes to the else.
alert(usr, "Yohoho ive talked to you bucko whatcha tryin to pull mon") //ze alert mon
else //its an else clause ya
if(alert(usr,"Yo mon i heard ye be wanting them shinies in my trunk","Yes","Nay") == "Yes") //first we do ze alert mon, then we check for yes
alert(usr, "Daz dingo mon go find me some squishies and cook em up good i be wanting 5 of dem yum yums.") //then we tell dem dum dums whatcha be wanting.


Enjoy :D
In response to Midgetbuster
Thx! :D!
also

use input next time instead of alert after a switch verb.


switch(input("etc...")in list("etc","etc"))