ID:167535
 
im trying to figure out a way to make a cage around my mob trapping what ever is around it for a combat type game. just curious how i would go around spawning all these objects around then getting rid of them all at the given time. im not too keen on how to work the loc cars kuz everytiem i try it just keeps saying undefined and stuff. could someone please show me how to do this properly? my aim and yim sn is dyingrelief if u are up for contacting me so i can go into more detail. lates

kel*
Bleach game. You've posted this before. I'll anwer the same here as I did back there. Look up for().
In response to Mysame
Mysame wrote:
Bleach game. You've posted this before. I'll anwer the same here as I did back there. Look up for().




its more complicated then that. what u sed was for only one part of it. now its something different. and im quite sure it wont work just around a for proc
In response to Kelanel
I'm PRETTY sure it is. Believe me.
mob/verb/Bankai()
if(usr.sword)//If usr has a sword
for(var/mob/M in oview(usr)) // For every mob in view of usr
if(M && M.client) // If he finds a mob AND it's a client
for(var/turf/T in oview(1,M)) // For every turf that around (1 tile) of M
var/obj/trap/a = new /obj/trap(T.loc)//Create a new trap on that turf
sleep(100) // Enter a sleep
del(a) // Delete the traps


No clue if it works, not infront of my regular comp, but damn if it doesn't.


In response to Mysame
Mysame wrote:
I'm PRETTY sure it is. Believe me.
> mob/verb/Bankai()
> if(usr.sword)//If usr has a sword
> for(var/mob/M in oview(usr)) // For every mob in view of usr
> if(M && M.client) // If he finds a mob AND it's a client
> for(var/turf/T in oview(1,M)) // For every turf that around (1 tile) of M
> var/obj/trap/a = new /obj/trap(T.loc)//Create a new trap on that turf
> sleep(100) // Enter a sleep
> del(a) // Delete the traps
>

No clue if it works, not infront of my regular comp, but damn if it doesn't.




im not on m regular comp either atm. looks good. cept one problem. the whole thing is supposed to be a sphere. so im using about 20or so icons for the edges which makes it a tad bit tougher. if u can figure that out. then i give u props >_>
In response to Kelanel
You create many new icons, like I created a trap. :|