ID:167015
 
Okay um..how do I make it so if a player has a range of, say, 2 can attack from 2 squares away, but a player with 4 can attack from 4 etc? =S

mob
Click()
set src in oview(range) //? no idea what i'm doing XD
combatstuffhere()

//or a quick check? this seems a lil too...bleh
mob/Click()
if(range == 1)
set src in oview(1)
combatstuffhere()
if(range == 2)
set src in oview(2)
combatstuffhere()
//etc


A little clueless. A forum search didn't help, and neither did looking for libraries/demos =(
if(src in oview(range))
In response to Mysame
thank you ^_^ (it always seems to be you who comes to my rescue!)
In response to JMT
That's because Mysame Sargaths the forum, knows a little bit about code, and is about as helpful as the F1 key you should have pressed before asking here.