mob
weapon
verb
Sword_Slash1()
set category = "Fighting"
for(var/mob/G in oview(1))
var/damage = round(usr.attack/1.5)
damage+=rand(damage/2,damage/1.5)
damage+=usr.swordD
damage -= G.defence / 2
usr.health += damage
G.health -= damage
if(usr.health >= usr.mhealth)
usr.health = usr.mhealth
if(damage <= 1)
damage = 1
if(G.enemy)
usr.hollowprotection = 1
view(usr,8) << "<b><font color = red>[usr] slashed [G] for [damage] damage!"
G.Death(usr)
but when i press this verb and stand face to the enemy its not attack i just want to create a attack calld sword slash and that will do the same work as normal attack
its a verb form BSOC rip
i am new at this so i am still working with rips till i will be good enough to create a street RPG or cool RPG game
here is the real verb
mob
yumichika
verb
Cyclone_Slash()
set category = "Fighting"
if(!usr.firing)
usr.firing = 1
new/obj/hurricane(locate(usr.x-1,usr.y,usr.z))
new/obj/hurricane(locate(usr.x+1,usr.y,usr.z))
new/obj/hurricane(locate(usr.x+1,usr.y-1,usr.z))
new/obj/hurricane(locate(usr.x-1,usr.y-1,usr.z))
new/obj/hurricane(locate(usr.x,usr.y-1,usr.z))
new/obj/hurricane(locate(usr.x+1,usr.y+1,usr.z))
new/obj/hurricane(locate(usr.x-1,usr.y+1,usr.z))
new/obj/hurricane(locate(usr.x,usr.y+1,usr.z))
for(var/mob/G in oview(1))
var/damage = round(usr.attack/1.5)
damage+=rand(damage/2,damage/1.5)
damage+=usr.swordD
damage -= G.defence / 2
usr.health += damage
G.health -= damage
if(usr.health >= usr.mhealth)
usr.health = usr.mhealth
if(damage <= 1)
damage = 1
if(G.enemy)
usr.hollowprotection = 1
view(usr,8) << "<b><font color = red>[usr] slashed [G] for [damage] damage!"
G.Death(usr)
sleep(65)
usr.firing = 0
now i have maked a sword slash state so when i use this verbr its should move the sword to the state
but when i press the verb its not attacking and its not show the state :S please help
i know its hard to understand what i am saying but please try