Room List
-
- Posts: 9
- Joined: Sat Oct 25, 2014 4:49 am
Room List
I would like to know how to display what enemies are all in the room with me. I see the data in gmcp.Char as a list i'm just not sure how to go about it. Anyone have any examples i can work off?
Re: Room List
You just want to loop through the table and echo it somewhere. Something like this
and gmcp.char.permaff would be your table of enemies
where demonnic.chat.windows["Me"] is where it echos
and gmcp.char.permaff would be your table of enemies
Mapper of Bedlam
-
- Posts: 9
- Joined: Sat Oct 25, 2014 4:49 am
Re: Room List
This is what I'm using currently but it doesn't stay up to date.
Re: Room List
What do you have calling the function? You would need to call it whenever it changed, if you wanted it to stay up to date. So there would need to be a trigger or an event that called your function to refresh it when the list changed.
-
- Posts: 9
- Joined: Sat Oct 25, 2014 4:49 am
Re: Room List
Which trigger(s) are required to keep the list up to date?
Re: Room List
Do you have the function hooked up to an event handler for gmcp.Char.Items?
Re: Room List
Yeah. You basically just need to write handler functions for gmcp.Char.Items.Add as well as for .Remove and .Update (The latter being the most troublesome).