Fight()
set hidden=1
var/i=1
var/list/monster_list=(typesof(/mob/monsters)-/mob/monsters)
winshow(usr,"Fight",1)
winset(src,"Fight.Mon","cells=0x0")
src<<output("<b>Choose Monster!</b>","Fight.Mon:1,1")
for(var/A in monster_list)
var/newpath = text2path("[A]")
var/mob/monsters/o = new newpath
src<<output(o.name,"Fight.Mon:1,[++i]")
src<<output(o.Level,"Fight.Mon:2,[i]")
I am using the following to display monsters in the typepath mob/monsters/. I am wanting to be able to click the monster to start a battle with it. What would be the simplest way to to do this, i have tried just adding a Click() on the monster but i get nothing.
My GetClick() library would also be a good alternative.