ID:266619
 
I want a challege verb,so you challange a person and if somebodys already fighting in the arena,the persons not allowed to fight and they can't Accept the usr's challenge unless they usr challenge's the M.How would I do that?Thanks for reading.

-Kappa the Imp
mob/verb/Challenge(mob/M in oview(2))
switch(alert("Are you sure about challenging [M]?",,"Yes","No"))
if("Yes")
switch(alert(M,"[usr] has challenged you! shall you beat him down?",,"Yes","No way!"))
if("Yes")
//challenge stuff
if("No way!")
..()
if("No")
..()

In response to Sariat
I really don't want to be a brat here,but I need a full code of what I said on my first post.Thanks!

-Kappa the Imp
In response to Kappa the Imp
Kappa the Imp wrote:
I really don't want to be a brat here,but I need a full code of what I said on my first post.Thanks!

-Kappa the Imp

"How would I do that?"--Your first post.

First of all, you didn't ask for the full code, you asked how to do it. Secondly, do not expect to be able to come to these forums and have people just give you code. There may be a few morons who do it, but you will never learn that way.
In response to Sariat
var
inarena=0
mob/verb/Challenge(mob/M in oview(2))
switch(alert("Are you sure about challenging [M]?",,"Yes","No"))
if("Yes")
switch(alert(M,"[usr] has challenged you! shall you beat him down?",,"Yes","No way!"))
if("Yes")
usr.loc=locate(arenaloc)
M.loc=locate(arenaloc)
inarena=1
if("No way!")
..()
if("No")
..()