Page 1 of 1

Events: on_chart_tag_created, on_chart_tag_deleted

Posted: Mon Oct 08, 2018 8:05 pm
by Mylon
Specifically when players create or remove tags. I would like to have some chart tags protected.

Alternatively:

LuaChartTag::protected. If true, require elevated permissions to edit.

Use case:

Gravestone markers. If a player dies, their corpse is marked on the map. This chart tag can only be removed when the corpse expires, or if the player mines their own corpse.

Re: Events: on_chart_tag_created, on_chart_tag_deleted

Posted: Mon Feb 04, 2019 9:31 pm
by Boodals
I have implemented this for 0.17 (I have access to the game's source code).
on_chart_tag_added - tag, force, player_index
on_chart_tag_modified - tag, force, player_index, old_text, old_icon, old_player
on_chart_tag_removed - tag, force, player_index

Re: Events: on_chart_tag_created, on_chart_tag_deleted

Posted: Tue Feb 12, 2019 4:18 pm
by Mylon
Many thanks, Boodals.