This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Inconsistency]: No 'remove table' function for GSLeagueTable, unlike GSStoryPage and GSGoal #11097
Labels
component: AI/Game script (squirrel)
This issue is related to Squirrel (Scripting language)
enhancement
Issue would be a good enhancement; we accept Pull Requests!
good first issue
Good for newcomers
Version of OpenTTD
Since #10001
Expected result
There should be a function
GSLeagueTable.Remove(table_id)
which takes in the ID of a custom League Table and removes that table if it exists.Use case: A cleanup script should also be able to remove league tables, along with goals and story pages, allowing for a clean slate when swapping or removing game scripts.
Actual result
No such function or command exists; league tables are permanent once created.
This may have been overlooked during the review phase of #10001 before the PR was merged.
Steps to reproduce
Try to remove a League Table using GS, only to notice there's no such function.
The text was updated successfully, but these errors were encountered: