challenge problem in Developer Help
|
|
Code:
mob/verb/challenge(mob/M) if(src.ingame == 0) if(M.ingame == 0) M << "<b>Info</b>:<i>[src] has challenged you to a duel</i>." sleep(10) var/response input(M,"Do you accept","[src] has challenged you to a duel",response) in list("Yes","No") if(response == "No") src << "<b>Info</b>:<i>[M] has Declined the challenge.</i>" return if(response == "Yes") src << "<b>Info</b>:<i>[M] has Accepted the challenge. You have 30seconds to equip before the fight.</i>" M << "<b>Info</b>:<i>You has Accepted the challenge. You have 30seconds to equip before the fight.</i>" sleep(200) src <<"<b>Info</b>:<i>10 seconds left...</i>" M <<"<b>Info</b>:<i>10 seconds left...</i>" sleep(100) battle(src,M)
|
Problem description:
doesnt do anything neither shows any messages
itss meant to let you challenge someone and then if u accept or not it will continue.
|