ID:266574
 
mob/verb/Attack(mob/M in oview(1))
set category="Attacks"
var/damage=usr.str-M.def+1
if(usr.spar==1)
if(M.spar==1)
var/punchkick=rand(1,2)
if(punchkick==1)
usr<<"You hit [M] with a light punch for [damage] damage"
else
usr<<"You Hit [M] with a light kick for [damage] danage"
else
usr<<"You Tap [M] on the soulder and asks if he wants to spar"
M.switch(input("Would you like to spar with [usr]?","spar?")in list ("Yes","No"))
if("Yes")
M.spar=1
else
if(usr.friend1 || friend2 || friend3 || friend4 || friend5 || bfriend==M)
usr<<"You Can't attack your friends"


ok i wanted to make it so a Switch thing comes up on the M's Screen is this at all possible
switch(input(M,"Would you like to spar with [usr]?","spar?")in list ("Yes","No"))
if("Yes")
M.spar=1



Regards,
BlackDeath