ID:179781
 
so far i have the thing to chalenge the usr, now all i have to do is make it to where they can accept,
here is what i have so far:

challenge(mob/M as mob)
set src in oview(1) src << "You have insulted my honer! I challenge you to a Duel!"

this is one of the last things i need to do before i can go on with making my game
Pillsverry wrote:
so far i have the thing to chalenge the usr, now all i have to do is make it to where they can accept,
here is what i have so far:

challenge(mob/M as mob)
set src in oview(1) src << "You have insulted my honer! I challenge you to a Duel!"

this is one of the last things i need to do before i can go on with making my game


The easy way of doing this is using the alert proc

Example:

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")
..()


I was bored so I gave you a freebie.