mob
verb
Attack(mob/M in oview(1))
set category = "Action"
set desc = "Attack a player"
set hidden = 1
set src in oview(1)
var/random = (rand(1,4))
if(M in oview(1))
if(M.Attack==1)
usr<<"<font color = red>[M.name] is knocked you there for you can not attack him/her."
return
else
if(M.Strength>usr.Strength)
if(random==1)
usr<<"<font color=red>You attack [M.name] for [usr.Strength] damage."
M<<"<font color = red>[usr.name] attacks you for [usr.Strength] damage."
oview(3)<<"<font color = red>[usr.name] attacks [M.name] for [usr.Strength] damage."
M.Health-=usr.Strength
if(random==2)
usr<<"<font color==red>[M.name] dodge you."
if(random==3)
usr<<"<font color==red>[M.name] dodge you."
if(random==4)
usr<<"<font color==red>[M.name] dodge you."
if(M.Strength<usr.Strength)
if(random==1)
usr<<"<font color=red>You attack [M.name] for [usr.Strength] damage."
M<<"<font color = red>[usr.name] attacks you for [usr.Strength] damage."
oview(3)<<"<font color = red>[usr.name] attacks [M.name] for [usr.Strength] damage."
M.Health-=usr.Strength
if(random==2)
usr<<"<font color=red>You attack [M.name] for [usr.Strength] damage."
M<<"<font color = red>[usr.name] attacks you for [usr.Strength] damage."
oview(3)<<"<font color = red>[usr.name] attacks [M.name] for [usr.Strength] damage."
M.Health-=usr.Strength
if(random==3)
usr<<"<font color=red>You attack [M.name] for [usr.Strength] damage."
M<<"<font color = red>[usr.name] attacks you for [usr.Strength] damage."
oview(3)<<"<font color = red>[usr.name] attacks [M.name] for [usr.Strength] damage."
M.Health-=usr.Strength
if(random==4)
usr<<"<font color==red>[M.name] dodge you."
if(M.Health<=0)
M<<"<font color = red>You have been knocked out by [usr.name] for 1 minute."
usr<<"<font color = red>You knocked out [M.name]."
M.Frozen=1
M.Attack = 1
if(M.Strength<usr.Strength)
usr.Strength+=2
else
usr.Strength+=5
sleep(100)
M<<"You have awoken."
M.Attack=0
M.Frozen=0
M.Health=M.maxHealth
else
usr<<"No one is within 1 foot of you."
return
Problem description:
When ever I go and press center for attack right by a player it says No one is within 1 foot of you even if I am.
->Calus CoRPS<-
PS; look up get_step.