diff options
author | Haru <haru@dotalux.com> | 2019-05-05 20:40:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-05 20:40:00 +0200 |
commit | 892ed5f372f995786facfa8ce833711936754795 (patch) | |
tree | d6c3c5d6af0fd19331f4955f276272330605faa7 /doc | |
parent | 4afb21ec8299e0e3dd79adc1b7b7a73870b93cdc (diff) | |
parent | 7b48fee4ffd90913e2beac51e0bed958129dd3e7 (diff) | |
download | hercules-892ed5f372f995786facfa8ce833711936754795.tar.gz hercules-892ed5f372f995786facfa8ce833711936754795.tar.bz2 hercules-892ed5f372f995786facfa8ce833711936754795.tar.xz hercules-892ed5f372f995786facfa8ce833711936754795.zip |
Merge pull request #2068 from AnnieRuru/37-F_MesItemInfo
Add F_MesItemInfo function to show item name with description link
Diffstat (limited to 'doc')
-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 4cfb821a3..13deb97f8 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1231,7 +1231,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 @@ -1255,6 +1255,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>{, ...}}}) |