erb
Slash()
set category = "Fighting"
usr.verbs+=/mob/person/verb/Slash
if
usr.verbs-=/mob/person/verb/Slash
flick("slash",usr)
if(!attacking)
usr<<"[usr]: Energy blast"
var/obj/T = new/obj/turd(usr.loc)
attacking = 1
spawn(10)
attacking = 0
walk(T,usr.dir)
This is my code to have my sword do an energy blast, and im trying to have it were you can only use said energy blast only if you have the sword equipped but I ran into trouble, how do i fix it?
Copyright © 2024 BYOND Software.
All rights reserved.
Please keep in mind that this is a VERY general code, and is only meant to guide you in the correct direction..
You should probably have your attack verb standardized to something like:
Again, this is very generalized code that is only meant to guide you toward the correct path. You are advised to not copy and paste, as this can be much more efficient.