From 7b48fee4ffd90913e2beac51e0bed958129dd3e7 Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Sun, 27 Jan 2019 21:21:01 +0800 Subject: Add F_MesItemInfo function to show item name with description link also fix OldGlastHeim ITEMLINK display incorrectly --- doc/script_commands.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') 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 to show +the item's description. Gravity changed this into since 2015-07-29 onwards. + + mes("Bring me an Apple512."); + mesf("Bring me an %s.", F_MesItemInfo(Apple)); + +This will show the item name and a clickable link for the item description. + --------------------------------------- *mesf(""{, {, {, ...}}}) -- cgit v1.2.3-60-g2f50