From 6f67a65855f4b2ce0c8aab7bb9c1c945a7f1c801 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sat, 29 Oct 2016 17:28:51 +0200 Subject: [PATCH] Added documentation for item links in mes (#1616) Fixes #1614 --- doc/script_commands.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index bc1b328103..87dee29729 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1094,6 +1094,27 @@ to alberta (98,154) when clicked. See also 'navigateto', which can be used for certain NPC events. +Items +----- +You can refer to items by using HTML-like links to certain items: + + Display NameItem ID + +Where is the name that will be displayed for your link and + being the ID of the item you want to link to when clicked. + +In 2015 the tag name was changed to resulting in the following syntax: + + Display NameItem ID + +The following sample will open a preview window for Red Potion: + + mes "Did you ever consume a Red Potion501?"; + // Or in 2015: + mes "Did you ever consume a Red Potion501?"; + +NOTE: Be aware that item links are rendered incorrectly in 2015+ clients at the moment. + URLs ---- Similarly, you can create links to websites that launch in a new window: