ID:141950
 
Code:
The object appearing on screen is called here.
mob/proc
Engage(mob/M)
for(var/obj/O in M.ally.enemies)
O = new()
O.screen_loc = "7,5"
src.client.screen += O
for(var/obj/Oo in usr.ally.allies)
Oo = new()
Oo.screen_loc = "1,2"
src.client.screen += Oo

Defined here
obj/Bulbasaur
icon = '001 Bulbasaur.dmi'
Enemy
TR
icon_state = "2"
pixel_y = 32
pixel_x = 32

TL
icon_state = "1"
pixel_y = 32

BR
icon_state = "4"

pixel_x = 32
BL
icon_state = "3"

Ally
screen_loc = "5,5"
TR
icon_state = "A2"
pixel_y = 32
pixel_x = 32

TL
icon_state = "A1"
pixel_y = 32
///pixel_x = -32
BR
icon_state = "A4"


pixel_x = 32
BL

pixel_x = -32
icon_state = "A3"


Problem description:
runtime error: Cannot read /mob/Squirtle (/mob/Squirtle ).enemies
proc name: Engage (/mob/proc/Engage)
usr: Choka (/mob)
src: Choka (/mob)
call stack:
Choka (/mob): Engage(Proffessor Blitz (/mob/Rowen))
Choka (/mob): Test(Proffessor Blitz (/mob/Rowen))


It says that the mob's Pokemon overlays are unreadable. Why?
It seems to be trying to read a list of a type, not a mob, and obviously crashing. Make sure the argument you're passing to Engage is a mob and not a type.
In response to Devourer Of Souls
So how am supposed I to make it use a mob instead of a type?
In response to Choka
Wait how am I make the mob a type?

EDIT: Okay It isn't being called as a type any longer but the icon doesn't show up.

mob/proc
Engage(mob/M)
for(var/obj/O in M.enemies)
O = new()
O.screen_loc = "7,5"
src.owner.client.screen += O
for(var/obj/Oo in src.allies)
Oo = new()
Oo.screen_loc = "1,2"
src.owner.client.screen += Oo