mob/proc/key2()
var/choice = input(usr,"2 times 3?","Question") in list("2","4","6","I don't know.")
if(choice == "6")
usr << "Correct."
usr:MakeGold()
usr:GiveExp()
var/answer = 1 /* unused var, trying to set something up for a verb to check for in an /if/else setup basically asking the verb to identify a correct responce to allow the verb action to take place. */
else if(choice == "I don't know.")
usr << "Study study study."
else
usr << "Incorrect."
mob/verb/pop_quiz()
Question()
mob/proc/Question()
var/number = rand(1,10)
if(number == 1)
usr:key1()
if(number == 2)
usr:key2()
if(number == 3)
usr:Question()
if(number == 4)
usr:Question()
if(number == 5)
usr:Question()
if(number == 6)
usr:Question()
if(number == 7)
usr:Question()
if(number == 8)
usr:Question()
if(number == 9)
usr:Question()
verb
attack(mob/M as mob in oview(1))
set category = "Combat" //attack a mob within 1 tile of you
pop_quiz()
if(answer == 1)
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M:HP -= damage //take away the damage from M
M:DeathCheck() //check for death with a proc
else usr << "Nothing happens."
Problem description: