Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==================================================================================================
- //
- // Generated Map Script
- //
- // Name: Just Another StarCraft II Map
- //
- //==================================================================================================
- include "TriggerLibs/NativeLib"
- //--------------------------------------------------------------------------------------------------
- // Library Initialization
- //--------------------------------------------------------------------------------------------------
- void InitLibs () {
- libNtve_InitLib();
- }
- //--------------------------------------------------------------------------------------------------
- // Global Variables
- //--------------------------------------------------------------------------------------------------
- bank[16] gv_bank;
- int[46] gv_cKCode;
- void InitGlobals () {
- }
- //--------------------------------------------------------------------------------------------------
- // Global Function Declarations
- //--------------------------------------------------------------------------------------------------
- int gf_FindLatestVBIDatafromPlayers (playergroup lp_pPlayerGroup, string lp_pKey, string lp_pSection);
- void gf_StoreVBIDataCCLtoBank (bank lp_pBank, string lp_pKey, string lp_pSection, string lp_pString, int lp_pRevision, int lp_pDay, int lp_pMonth, int lp_pYear);
- string gf_RetrieveVBIDataCLLforPlayerfromBank (int lp_pPlayer, bank lp_pBank, string lp_pKey, string lp_pSection);
- string gf_ExtractSourceofString (string lp_pString);
- int gf_ExtractDateofString (string lp_pString);
- int gf_FindDateOffsetfromString (string lp_pString);
- bool gf_CheckDateofString (string lp_pString);
- string gf_PublishString (string lp_pString, int lp_pRevision, int lp_pDay, int lp_pMonth, int lp_pYear);
- int gf_ConvertDatetoString (int lp_pRevision, int lp_pDay, int lp_pMonth, int lp_pYear);
- string gf_UnlockString (string lp_pString);
- int gf_FindChecksumOffsetfromString (string lp_pString);
- bool gf_VerifyString (string lp_pString);
- string gf_LockString (string lp_pString);
- int gf_GenerateChecksum (string lp_pString);
- int gf_GetCharacterPositionCodeModifer (int lp_positionValue);
- int gf_GetCharacterCaseCodeModifier (string lp_character);
- int gf_GetCharacterCodeDefined (string lp_character);
- int gf_GetCharacterCodeGenerator (string lp_character);
- void gf_CharacterCodeGenerator (int lp_pSeed, int lp_pCharacterKeyAmount, int lp_pMinValue, int lp_pMaxValue);
- //--------------------------------------------------------------------------------------------------
- // Trigger Variables
- //--------------------------------------------------------------------------------------------------
- trigger gt_QuickDemo;
- trigger gt_SampleVerification;
- trigger gt_SampleEncoding;
- trigger gt_UsingCharacterCodeGenerator;
- //--------------------------------------------------------------------------------------------------
- // Global Functions
- //--------------------------------------------------------------------------------------------------
- int gf_FindLatestVBIDatafromPlayers (playergroup lp_pPlayerGroup, string lp_pKey, string lp_pSection) {
- playergroup autoFE700F9E_g;
- int autoFE700F9E_p;
- // Variable Declarations
- int lv_playerloop;
- int[16] lv_vbidate;
- int lv_latestvbidate;
- int lv_latestplayer;
- bank[16] lv_playerbank;
- // Variable Initialization
- // Implementation
- autoFE700F9E_g = PlayerGroupAll();
- autoFE700F9E_p = 1;
- for ( ; autoFE700F9E_p <= PlayerGroupCount(autoFE700F9E_g) ; autoFE700F9E_p += BoolToInt(lv_playerloop == PlayerGroupPlayer(autoFE700F9E_g, autoFE700F9E_p)) ) {
- lv_playerloop = PlayerGroupPlayer(autoFE700F9E_g, autoFE700F9E_p);
- lv_playerbank[lv_playerloop] = gv_bank[lv_playerloop];
- lv_vbidate[lv_playerloop] = gf_ExtractDateofString(gf_UnlockString(BankValueGetAsString(lv_playerbank[lv_playerloop], lp_pSection, lp_pKey)));
- if ((lv_latestvbidate < lv_vbidate[lv_playerloop])) {
- lv_latestvbidate = lv_vbidate[lv_playerloop];
- lv_latestplayer = lv_playerloop;
- }
- else {
- }
- }
- return lv_latestplayer;
- }
- void gf_StoreVBIDataCCLtoBank (bank lp_pBank, string lp_pKey, string lp_pSection, string lp_pString, int lp_pRevision, int lp_pDay, int lp_pMonth, int lp_pYear) {
- // Implementation
- BankValueSetFromString(lp_pBank, lp_pSection, lp_pKey, gf_LockString(gf_PublishString(lp_pString, lp_pRevision, lp_pDay, lp_pMonth, lp_pYear)));
- }
- string gf_RetrieveVBIDataCLLforPlayerfromBank (int lp_pPlayer, bank lp_pBank, string lp_pKey, string lp_pSection) {
- // Implementation
- return gf_UnlockString(BankValueGetAsString(lp_pBank, lp_pSection, lp_pKey));
- }
- string gf_ExtractSourceofString (string lp_pString) {
- // Implementation
- if ((gf_CheckDateofString(lp_pString) == true)) {
- return StringSub(lp_pString, (gf_FindDateOffsetfromString(lp_pString) + 1), StringLength(lp_pString));
- }
- else {
- return lp_pString;
- }
- }
- int gf_ExtractDateofString (string lp_pString) {
- // Implementation
- if ((gf_CheckDateofString(lp_pString) == true)) {
- return StringToInt(StringSub(lp_pString, 1, (gf_FindDateOffsetfromString(lp_pString) - 1)));
- }
- else {
- return 0;
- }
- }
- int gf_FindDateOffsetfromString (string lp_pString) {
- // Variable Declarations
- int lv_x;
- // Variable Initialization
- // Implementation
- if ((StringSub(lp_pString, 8, 8) == "@")) {
- return 8;
- }
- else {
- return 9;
- }
- }
- bool gf_CheckDateofString (string lp_pString) {
- // Implementation
- if (((StringSub(lp_pString, 9, 9) == "@") || (StringSub(lp_pString, 8, 8) == "@"))) {
- return true;
- }
- else {
- return false;
- }
- }
- string gf_PublishString (string lp_pString, int lp_pRevision, int lp_pDay, int lp_pMonth, int lp_pYear) {
- // Implementation
- return (IntToString(gf_ConvertDatetoString(lp_pRevision, lp_pDay, lp_pMonth, lp_pYear)) + "@" + lp_pString);
- }
- int gf_ConvertDatetoString (int lp_pRevision, int lp_pDay, int lp_pMonth, int lp_pYear) {
- // Implementation
- return ((lp_pRevision * 1) + (lp_pDay * 100) + (lp_pMonth * 10000) + (lp_pYear * 1000000));
- }
- string gf_UnlockString (string lp_pString) {
- // Implementation
- if ((gf_VerifyString(lp_pString) == true)) {
- return StringSub(lp_pString, 1, gf_FindChecksumOffsetfromString(lp_pString));
- }
- else {
- return "VERIFICATION FAILED!";
- }
- }
- int gf_FindChecksumOffsetfromString (string lp_pString) {
- // Variable Declarations
- int lv_x;
- // Variable Initialization
- lv_x = StringLength(lp_pString);
- // Implementation
- while ((StringSub(lp_pString, lv_x, lv_x) != "#") && (lv_x != 1)) {
- lv_x -= 1;
- }
- lv_x -= 1;
- return lv_x;
- }
- bool gf_VerifyString (string lp_pString) {
- // Variable Declarations
- int lv_x;
- // Variable Initialization
- lv_x = StringLength(lp_pString);
- // Implementation
- while ((StringSub(lp_pString, lv_x, lv_x) != "#") && (lv_x != 1)) {
- lv_x -= 1;
- }
- lv_x -= 1;
- if ((lv_x == 0)) {
- return false;
- }
- else {
- }
- if ((gf_GenerateChecksum(StringSub(lp_pString, 1, lv_x)) == StringToInt(StringSub(lp_pString, (lv_x + 2), StringLength(lp_pString))))) {
- return true;
- }
- else {
- return false;
- }
- }
- string gf_LockString (string lp_pString) {
- // Implementation
- return (lp_pString + "#" + IntToString(gf_GenerateChecksum(lp_pString)));
- }
- int gf_GenerateChecksum (string lp_pString) {
- // Variable Declarations
- int lv_checksum;
- // Variable Initialization
- // Implementation
- IntLoopBegin(1, StringLength(lp_pString));
- for ( ; !IntLoopDone() ; IntLoopStep() ) {
- lv_checksum += (gf_GetCharacterCodeGenerator(StringSub(lp_pString, IntLoopCurrent(), IntLoopCurrent())) * gf_GetCharacterCaseCodeModifier(StringSub(lp_pString, IntLoopCurrent(), IntLoopCurrent())));
- lv_checksum += gf_GetCharacterPositionCodeModifer(IntLoopCurrent());
- }
- IntLoopEnd();
- lv_checksum = AbsI(lv_checksum);
- return lv_checksum;
- }
- int gf_GetCharacterPositionCodeModifer (int lp_positionValue) {
- // Variable Declarations
- const int lv_divisor = 9;
- // Variable Initialization
- // Implementation
- if ((ModI(lp_positionValue, 2) == 1)) {
- return (ModI(lp_positionValue, lv_divisor) * 2);
- }
- else {
- return (ModI(lp_positionValue, lv_divisor) * -1);
- }
- }
- int gf_GetCharacterCaseCodeModifier (string lp_character) {
- // Implementation
- if ((StringCase(lp_character, true) == lp_character)) {
- return -1;
- }
- else {
- return 1;
- }
- }
- int gf_GetCharacterCodeDefined (string lp_character) {
- string autoB7CEDCC9_val;
- // Implementation
- autoB7CEDCC9_val = StringCase(lp_character, true);
- if (autoB7CEDCC9_val == ".") {
- return -15;
- }
- else if (autoB7CEDCC9_val == "?") {
- return -8;
- }
- else if (autoB7CEDCC9_val == "!") {
- return -5;
- }
- else if (autoB7CEDCC9_val == "0") {
- return -4;
- }
- else if (autoB7CEDCC9_val == "1") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "2") {
- return 5;
- }
- else if (autoB7CEDCC9_val == "3") {
- return 6;
- }
- else if (autoB7CEDCC9_val == "4") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "5") {
- return -2;
- }
- else if (autoB7CEDCC9_val == "6") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "7") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "8") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "9") {
- return -3;
- }
- else if (autoB7CEDCC9_val == "A") {
- return -2;
- }
- else if (autoB7CEDCC9_val == "B") {
- return -1;
- }
- else if (autoB7CEDCC9_val == "C") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "D") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "E") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "F") {
- return -1;
- }
- else if (autoB7CEDCC9_val == "G") {
- return -2;
- }
- else if (autoB7CEDCC9_val == "H") {
- return -3;
- }
- else if (autoB7CEDCC9_val == "I") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "J") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "K") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "L") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "M") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "N") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "O") {
- return -3;
- }
- else if (autoB7CEDCC9_val == "P") {
- return -2;
- }
- else if (autoB7CEDCC9_val == "L") {
- return -1;
- }
- else if (autoB7CEDCC9_val == "M") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "N") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "O") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "P") {
- return -1;
- }
- else if (autoB7CEDCC9_val == "Q") {
- return -2;
- }
- else if (autoB7CEDCC9_val == "R") {
- return -3;
- }
- else if (autoB7CEDCC9_val == "S") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "T") {
- return 2;
- }
- else if (autoB7CEDCC9_val == "U") {
- return 3;
- }
- else if (autoB7CEDCC9_val == "V") {
- return -1;
- }
- else if (autoB7CEDCC9_val == "W") {
- return -2;
- }
- else if (autoB7CEDCC9_val == "X") {
- return -3;
- }
- else if (autoB7CEDCC9_val == "Y") {
- return 1;
- }
- else if (autoB7CEDCC9_val == "Z") {
- return 2;
- }
- else {
- return -2;
- }
- }
- int gf_GetCharacterCodeGenerator (string lp_character) {
- string autoFFB3713E_val;
- // Implementation
- autoFFB3713E_val = StringCase(lp_character, true);
- if (autoFFB3713E_val == "0") {
- return gv_cKCode[1];
- }
- else if (autoFFB3713E_val == "1") {
- return gv_cKCode[2];
- }
- else if (autoFFB3713E_val == "2") {
- return gv_cKCode[3];
- }
- else if (autoFFB3713E_val == "3") {
- return gv_cKCode[4];
- }
- else if (autoFFB3713E_val == "4") {
- return gv_cKCode[5];
- }
- else if (autoFFB3713E_val == "5") {
- return gv_cKCode[6];
- }
- else if (autoFFB3713E_val == "6") {
- return gv_cKCode[7];
- }
- else if (autoFFB3713E_val == "7") {
- return gv_cKCode[8];
- }
- else if (autoFFB3713E_val == "8") {
- return gv_cKCode[9];
- }
- else if (autoFFB3713E_val == "9") {
- return gv_cKCode[10];
- }
- else if (autoFFB3713E_val == "A") {
- return gv_cKCode[11];
- }
- else if (autoFFB3713E_val == "B") {
- return gv_cKCode[12];
- }
- else if (autoFFB3713E_val == "C") {
- return gv_cKCode[13];
- }
- else if (autoFFB3713E_val == "D") {
- return gv_cKCode[14];
- }
- else if (autoFFB3713E_val == "E") {
- return gv_cKCode[15];
- }
- else if (autoFFB3713E_val == "F") {
- return gv_cKCode[16];
- }
- else if (autoFFB3713E_val == "G") {
- return gv_cKCode[17];
- }
- else if (autoFFB3713E_val == "H") {
- return gv_cKCode[18];
- }
- else if (autoFFB3713E_val == "I") {
- return gv_cKCode[19];
- }
- else if (autoFFB3713E_val == "J") {
- return gv_cKCode[20];
- }
- else if (autoFFB3713E_val == "K") {
- return gv_cKCode[21];
- }
- else if (autoFFB3713E_val == "L") {
- return gv_cKCode[22];
- }
- else if (autoFFB3713E_val == "M") {
- return gv_cKCode[23];
- }
- else if (autoFFB3713E_val == "N") {
- return gv_cKCode[24];
- }
- else if (autoFFB3713E_val == "O") {
- return gv_cKCode[25];
- }
- else if (autoFFB3713E_val == "P") {
- return gv_cKCode[26];
- }
- else if (autoFFB3713E_val == "L") {
- return gv_cKCode[27];
- }
- else if (autoFFB3713E_val == "M") {
- return gv_cKCode[28];
- }
- else if (autoFFB3713E_val == "N") {
- return gv_cKCode[29];
- }
- else if (autoFFB3713E_val == "O") {
- return gv_cKCode[30];
- }
- else if (autoFFB3713E_val == "P") {
- return gv_cKCode[31];
- }
- else if (autoFFB3713E_val == "Q") {
- return gv_cKCode[32];
- }
- else if (autoFFB3713E_val == "R") {
- return gv_cKCode[33];
- }
- else if (autoFFB3713E_val == "S") {
- return gv_cKCode[34];
- }
- else if (autoFFB3713E_val == "T") {
- return gv_cKCode[35];
- }
- else if (autoFFB3713E_val == "U") {
- return gv_cKCode[36];
- }
- else if (autoFFB3713E_val == "V") {
- return gv_cKCode[37];
- }
- else if (autoFFB3713E_val == "W") {
- return gv_cKCode[38];
- }
- else if (autoFFB3713E_val == "X") {
- return gv_cKCode[39];
- }
- else if (autoFFB3713E_val == "Y") {
- return gv_cKCode[40];
- }
- else if (autoFFB3713E_val == "Z") {
- return gv_cKCode[41];
- }
- else if (autoFFB3713E_val == ".") {
- return gv_cKCode[42];
- }
- else if (autoFFB3713E_val == "?") {
- return gv_cKCode[43];
- }
- else if (autoFFB3713E_val == "!") {
- return gv_cKCode[44];
- }
- else if (autoFFB3713E_val == " ") {
- return gv_cKCode[45];
- }
- else {
- return gv_cKCode[0];
- }
- }
- void gf_CharacterCodeGenerator (int lp_pSeed, int lp_pCharacterKeyAmount, int lp_pMinValue, int lp_pMaxValue) {
- // Implementation
- GameSetSeedLocked(true);
- GameSetSeed(lp_pSeed);
- IntLoopBegin(0, lp_pCharacterKeyAmount);
- for ( ; !IntLoopDone() ; IntLoopStep() ) {
- gv_cKCode[IntLoopCurrent()] = RandomInt(lp_pMinValue, lp_pMaxValue);
- }
- IntLoopEnd();
- GameSetSeedLocked(false);
- }
- //--------------------------------------------------------------------------------------------------
- // Trigger: Quick Demo
- //--------------------------------------------------------------------------------------------------
- bool gt_QuickDemo_Func (bool testConds, bool runActions) {
- // Actions
- if (!runActions) {
- return true;
- }
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("Pause the game (F10/Pause) if the text is progressing too fast."));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("ORIGINAL: " + "Hello world!")));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("PUBLISHED (Nov 5, 2013 rev 2): " + gf_PublishString("Hello world!", 2, 5, 11, 13))));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("LOCKED: " + gf_LockString(gf_PublishString("Hello world!", 2, 5, 11, 13)))));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("UNLOCKED: " + gf_UnlockString(gf_LockString(gf_PublishString("Hello world!", 2, 5, 11, 13))))));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("DATE EXTRACT: " + IntToString(gf_ExtractDateofString(gf_UnlockString(gf_LockString(gf_PublishString("Hello world!", 2, 5, 11, 13))))))));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("SOURCE EXTRACT: " + gf_ExtractSourceofString(gf_UnlockString(gf_LockString(gf_PublishString("Hello world!", 2, 5, 11, 13)))))));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("!EXAMPLE OF DATE COMPARISON!"));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(gf_PublishString("NEWER THAN THAT (Sept 20, 2013, rev 4)", 4, 20, 9, 13)));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(gf_PublishString("REALLY OLD (Feb 1, 2002, rev 33)", 33, 1, 2, 2)));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(gf_PublishString("NEWER THAN THIS (Sept 20, 2013, rev 3)", 3, 20, 9, 13)));
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("!NEWEST & OLDEST!"));
- Wait(2.0, c_timeReal);
- if ((gf_ExtractDateofString(gf_PublishString("NEWER THAN THAT (Sept 20, 2013, rev 4)", 4, 20, 9, 13)) > gf_ExtractDateofString(gf_PublishString("NEWER THAN THIS (Sept 20, 2013, rev 3)", 3, 20, 9, 13)))) {
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("NEWER THAN THAT is newest"));
- }
- else {
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("Something went wrong! Error."));
- }
- Wait(2.0, c_timeReal);
- if ((gf_ExtractDateofString(gf_PublishString("REALLY OLD (Feb 1, 2002, rev 33)", 33, 1, 2, 2)) > gf_ExtractDateofString(gf_PublishString("NEWER THAN THIS (Sept 20, 2013, rev 3)", 3, 20, 9, 13)))) {
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("Something went wrong! Error."));
- }
- else {
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText("REALLY OLD is oldest"));
- }
- Wait(2.0, c_timeReal);
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/0F4B5A02"));
- return true;
- }
- //--------------------------------------------------------------------------------------------------
- void gt_QuickDemo_Init () {
- gt_QuickDemo = TriggerCreate("gt_QuickDemo_Func");
- TriggerAddEventChatMessage(gt_QuickDemo, c_playerAny, "-demo", true);
- }
- //--------------------------------------------------------------------------------------------------
- // Trigger: Sample Verification
- //--------------------------------------------------------------------------------------------------
- bool gt_SampleVerification_Func (bool testConds, bool runActions) {
- // Conditions
- if (testConds) {
- if (!((EventChatMessage(false) != "-demo"))) {
- return false;
- }
- }
- // Actions
- if (!runActions) {
- return true;
- }
- if ((gf_VerifyString(EventChatMessage(false)) == true)) {
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/9E5F9E5B"));
- }
- else {
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/AA88D3BA"));
- }
- return true;
- }
- //--------------------------------------------------------------------------------------------------
- void gt_SampleVerification_Init () {
- gt_SampleVerification = TriggerCreate("gt_SampleVerification_Func");
- TriggerAddEventChatMessage(gt_SampleVerification, c_playerAny, "", false);
- }
- //--------------------------------------------------------------------------------------------------
- // Trigger: Sample Encoding
- //--------------------------------------------------------------------------------------------------
- bool gt_SampleEncoding_Func (bool testConds, bool runActions) {
- // Conditions
- if (testConds) {
- if (!((EventChatMessage(false) != "-demo"))) {
- return false;
- }
- }
- // Actions
- if (!runActions) {
- return true;
- }
- UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringToText(("ENCODER: " + gf_LockString(EventChatMessage(false)))));
- return true;
- }
- //--------------------------------------------------------------------------------------------------
- void gt_SampleEncoding_Init () {
- gt_SampleEncoding = TriggerCreate("gt_SampleEncoding_Func");
- TriggerAddEventChatMessage(gt_SampleEncoding, c_playerAny, "", false);
- }
- //--------------------------------------------------------------------------------------------------
- // Trigger: Using Character Code Generator
- //--------------------------------------------------------------------------------------------------
- bool gt_UsingCharacterCodeGenerator_Func (bool testConds, bool runActions) {
- // Actions
- if (!runActions) {
- return true;
- }
- gf_CharacterCodeGenerator(10293847, 45, -25, 25);
- return true;
- }
- //--------------------------------------------------------------------------------------------------
- void gt_UsingCharacterCodeGenerator_Init () {
- gt_UsingCharacterCodeGenerator = TriggerCreate("gt_UsingCharacterCodeGenerator_Func");
- TriggerAddEventMapInit(gt_UsingCharacterCodeGenerator);
- }
- //--------------------------------------------------------------------------------------------------
- // Trigger Initialization
- //--------------------------------------------------------------------------------------------------
- void InitTriggers () {
- gt_QuickDemo_Init();
- gt_SampleVerification_Init();
- gt_SampleEncoding_Init();
- gt_UsingCharacterCodeGenerator_Init();
- }
- //--------------------------------------------------------------------------------------------------
- // Map Initialization
- //--------------------------------------------------------------------------------------------------
- void InitMap () {
- InitLibs();
- InitGlobals();
- InitTriggers();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement