I'm working on a Tactics Engine which i've come across some problems with, heres the link to the source of this as I explain some problems.
http://developer.byond.com/hub/LilTrunks/TacticsEngine
Problems:
I want to make an attack that only targets people that are standing within say 4 spaces only in North,South,East,West directions.
I'm also thinking of a NPC AI Enemy system but if you want to take a crack at it go ahead.
Any help is thanked with credits in the game which this engine will be used for. If you have an addition to this demo send me the updated source to my e-mail: [email protected] or contact me on AIM: MaJiN LiLtRuNkS.
Again thanks.
ID:147738
Jan 2 2004, 7:56 pm
|
|
In response to LilTrunks
|
|
LilTrunks wrote:
var/D = get_dir(M,src) Directions arent text strings. You can use: NORTH,SOUTH,EAST,WEST,NORTHEAST,NORTHWEST,SOUTHEAST,SOUTHWES T. Instead of "North", etc... |
In response to Evil Incarnate Inc
|
|
thanks, i'll start on the ai myself.
|
if(usr.walking == 0 && usr.attacking == 0)
usr.attacking = 1
for(var/mob/M in view(8))
var/D = get_dir(M,src)
if(D == "North"||D == "South"||D == "West"||D == "East")
M.underlays += /obj/overlay/attack
M.target= 1
else
return
else
return
You click shoot and nothing happens, it sets your attacking var then nothing happens.