ID:155692
 
Hi all. I just want to find out how I would show the contents of an AI mob in a seperate stat panel. Iv tried all night but cant get it to work.
The mob should be referenced by anyone using the statpanel. when calling Stat() just make sure to show the stats of the referenced mob by using the variable assigned to it.

ex:

mob/var
mob/Target //let's call the reference variable "Target"

mob/Stat()
statpanel("Target")
stat("Health: [Target.health]") //do this for any other variables you'd like to show up in the statpanel
stat("Defense: [Target.def] Speed: [Target.spd]") //you can mix and match since it's only a text string.
In response to Bravo1
Thank you