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: