ID:145274
 
Code:
mob/shinobi
icon = 'enemy.dmi'
icon_state = "shinobi"
name = "Rouge Shinobi"
hp = 100
def = 16
str = 25
lck = 3

Click()
usr.attack(src)
proc/move()
for(var/mob/M in oview())
if(get_step_away(src,M,3))
if(!M.client)
continue
else
walk_to(src,M,1,4)
else
continue
spawn(20) move()

proc/attackplayer()
for(var/mob/M in oview(1))
if(get_step_away(src,M,3))
if(!M.client)
continue
else
src.attack(M)
else
return..()
spawn(20) attackplayer()

New()
attackplayer()
move()


Problem description:
how can i make a verb that contains Attack under category SKILLS? coz the one above, if you attack the monster your using "Click".... please help me......... thanks....
Code:
mob/shinobi
icon = 'enemy.dmi'
icon_state = "shinobi"
name = "Rouge Shinobi"
hp = 100
def = 16
str = 25
lck = 3

proc/move()
for(var/mob/M in oview())
if(get_step_away(src,M,3))
if(!M.client)
continue
else
walk_to(src,M,1,4)
else
continue
spawn(20) move()

proc/attackplayer()
for(var/mob/M in oview(1))
if(get_step_away(src,M,3))
if(!M.client)
continue
else
src.attack(M)
else
return..()
spawn(20) attackplayer()

New()
attackplayer()
move()


mob/verb/Attack(M in oview(1))
set category = "Skills"
var/dmg=usr.str-M.def
M.hp-=usr.str-M.def
oview()<<"[usr] attack [M] for [dmg]"

In response to Ripiz
mob
verb
attack()
set category = "skills"
src<<"j00 attack voo doo hur!"