Events: on_chart_tag_created, on_chart_tag_deleted

Post Reply
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Events: on_chart_tag_created, on_chart_tag_deleted

Post 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.

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: Events: on_chart_tag_created, on_chart_tag_deleted

Post 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

User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Re: Events: on_chart_tag_created, on_chart_tag_deleted

Post by Mylon »

Many thanks, Boodals.

Post Reply

Return to “Implemented mod requests”