Events: on_chart_tag_created, on_chart_tag_deleted

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

Events: on_chart_tag_created, on_chart_tag_deleted

Post by Mylon » Mon Oct 08, 2018 8:05 pm

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: 120
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: Events: on_chart_tag_created, on_chart_tag_deleted

Post by Boodals » Mon Feb 04, 2019 9:31 pm

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

Mylon
Filter Inserter
Filter Inserter
Posts: 456
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Re: Events: on_chart_tag_created, on_chart_tag_deleted

Post by Mylon » Tue Feb 12, 2019 4:18 pm

Many thanks, Boodals.

Post Reply

Return to “Implemented mod requests”

Who is online

Users browsing this forum: No registered users