From d5542592dc9548b55028d6cc9ccd20593ae6259d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 13 Oct 2016 05:02:30 +0200 Subject: Add command to reveal all entries at once --- API.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index eb0b06a..3d98ccb 100644 --- a/API.md +++ b/API.md @@ -77,6 +77,7 @@ These functions are available: * `doc.entry_revealed`: Checks whether an entry is visible and normally accessible to a player * `doc.mark_entry_as_viewed`: Manually marks an entry as viewed/read by a player * `doc.mark_entry_as_revealed`: Make a hidden entry visible and accessible to a player +* `doc.mark_all_entries_as_revealed`: Make all hidden entries visible and accessible to a player * `doc.add_entry_alias`: Add an alternative name which can be used to access an entry * `doc.add_entry_aliases`: Add multiple alternative names which can be used to access an entry * `doc.get_category_count`: Returns the total number categories @@ -285,7 +286,7 @@ Always `nil`. Marks a particular entry as “revealed” to a player. If the entry is declared as hidden, it will become visible in the list of entries for this player and will always be accessible with `doc.show_entry`. This -change is permanently. +change is permanent. For entries which are not normally hidden, this function has no direct effect. @@ -298,6 +299,15 @@ effect. #### Returns Always `nil`. +### `doc.mark_entry_as_revealed(playername)` +Marks all entries as “revealed” to a player. This change is permanent. + +#### Parameters +* `playername`: Name of the player for whom to reveal the entries + +#### Returns +Always `nil`. + ### `doc.add_entry_alias(category_id, entry_id, alias)` Adds a single alias for an entry. When an entry has an alias, supplying the alias to a function which demands an `entry_id` will work as if the original -- cgit v1.2.3