ID:161547
 
Ive been trying to come up with a technique that strikes another mob from a distance, but i kinduv have a problom with havin stuff hit ranged.

this is my code so far:

mob
verb
Raiton_Strike()
icon = 'thunder.dmi'

i dont get how to strike some mob from a distance plz help


And also i would like to create like a teleport technique that u just click, but i dont no how to make a click() verb, heres wat i got,

mob
verb
Shunshin()
src.loc = locate(14,35,1)

this just tele's me to 1 spot, plz help
Deathnite5000 wrote:
Ive been trying to come up with a technique that strikes another mob from a distance, but i kinduv have a problom with havin stuff hit ranged.

this is my code so far:

mob
verb
Raiton_Strike()
icon = 'thunder.dmi'

i dont get how to strike some mob from a distance plz help

It doesn't even looked like you've tried. Nobody knows what you mean by strike or how it's supposed to work.

http://www.byond.com/docs/ref/info.html#/atom/proc/Click
http://www.byond.com/members/ DreamMakers?command=view_post&post=40355
In response to Nickr5
mob
Spells
verb
Magic_Blast(mob/M as mob in oview(8))
set category = "Dark Magic"
desc = "Damage: 10<br>Cost: 20 Mana<br>Basic Magical Attack. A Simple blast of pure Mana."
var/damage = rand(10,25)
var/cost = 20
if(src.pp<3)
usr << "You begin to generic the power needed for your attack."
sleep(8)
usr << "Charge Done!"
sleep(2)
usr << "You deal [damage+magic] damage!"
view() << "[src] casts simple magic on [M]!"
M.HP -= damage+magic / M.spp
src.MP -= cost
M.Death()
src.Check()
if(src.pp>3)
usr << "You deal [damage+magic] damage!"
view() << "[src] casts simple magic on [M]"
M.HP -= damage / M.spp
src.MP -= cost
M.Death()
src.Check()

return


There's an excerp from a Game I am currently making.