diff options
author | AnnieRuru <jeankofannie2@gmail.com> | 2019-01-27 21:21:01 +0800 |
---|---|---|
committer | AnnieRuru <jeankofannie2@gmail.com> | 2019-01-27 21:21:01 +0800 |
commit | 7b48fee4ffd90913e2beac51e0bed958129dd3e7 (patch) | |
tree | 88238ce77d615e154f271091d738a57c659d7864 /doc/script_commands.txt | |
parent | 51483b4569a6018f79ae8ece69273e3611e98a89 (diff) | |
download | hercules-7b48fee4ffd90913e2beac51e0bed958129dd3e7.tar.gz hercules-7b48fee4ffd90913e2beac51e0bed958129dd3e7.tar.bz2 hercules-7b48fee4ffd90913e2beac51e0bed958129dd3e7.tar.xz hercules-7b48fee4ffd90913e2beac51e0bed958129dd3e7.zip |
Add F_MesItemInfo function to show item name with description link
also fix OldGlastHeim ITEMLINK display incorrectly
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 26a4fbfb8..0e3e89df8 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1228,7 +1228,7 @@ you have to set it back to black unless you want all the rest of the text be in that color: mes("This is ^FF0000 red ^000000 and this is ^00FF00 green, ^000000 so."); - mes(callfunc("F_MesColor", C_BLUE) +"This message is now in BLUE"); + mesf("%sThis message is now in BLUE.", F_MesColor(C_BLUE)); Notice that the text coloring is handled purely by the client. If you use non-English characters, the color codes might get screwed if they stick to @@ -1252,6 +1252,14 @@ This will allow you to visit 'Google' with the in-game browser using default dim Clicking 'Bing!' will open the in-game browser using the specified dimensions. (800x600) +If you're using client from 2013-01-30 onwards, you can also use <ITEMLINK> to show +the item's description. Gravity changed this into <ITEM> since 2015-07-29 onwards. + + mes("Bring me an <ITEM>Apple<INFO>512</INFO></ITEM>."); + mesf("Bring me an %s.", F_MesItemInfo(Apple)); + +This will show the item name and a clickable link for the item description. + --------------------------------------- *mesf("<format>"{, <param>{, <param>{, ...}}}) |