polserver/pol-core/support/scripts/unicode.em

37 lines
1.6 KiB
Text
Raw Permalink Normal View History

2016-02-12 00:06:07 +01:00
////////////////////////////////////////////////////////////////
//
// CONSTANTS
//
////////////////////////////////////////////////////////////////
//
// Constants for PrintTextAbove*
//
const JOURNAL_UC_PRINT_NAME := 0x00; // Implicit. Print's the object's description / npc's name in the journal.
const JOURNAL_UC_PRINT_YOU_SEE := 0x01; // Will print "You see:" in the journal.
// Don't use these outside this file, use FONT_* from client.inc
const _DEFAULT_UCFONT := 3;
const _DEFAULT_UCCOLOR := 0x3B2;
const _DEFAULT_UCTEXT_REQUIREDCMD := 0;
2016-02-12 00:06:07 +01:00
////////////////////////////////////////////////////////////////
//
// FUNCTIONS
//
////////////////////////////////////////////////////////////////
// 'uc_text' is a String, or for backward compatibility an Array of 2-byte integers,
2016-02-12 00:06:07 +01:00
// where each integer is a Unicode character!
//
// 'langcode' is a 3-character "Originating Language" code
// e.g. ENG, ENU, CHT, DEU, FRA, JPN, RUS, KOR (etc??)
BroadcastUC(uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, required_cmdlevel := _DEFAULT_UCTEXT_REQUIREDCMD );
2016-02-12 00:06:07 +01:00
PrintTextAbovePrivateUC(above_object, uc_text, langcode, character, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME);
PrintTextAboveUC(above_object, uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR, journal_print := JOURNAL_UC_PRINT_NAME);
RequestInputUC(character, item, uc_prompt, langcode); // item is a placeholder, pass anything
SendSysMessageUC(character, uc_text, langcode, font:=_DEFAULT_UCFONT, color:=_DEFAULT_UCCOLOR);