• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Is something bad with this script?

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,852
I ask this because this doesn't make a compile error but previously corrupted my map 2 times and I'm not sure why. Maybe is for the length of a line, can you tell me pls?
vJASS:
globals
    constant integer MAX_STRING = 280
endglobals

function Trig_Configurar_cadenas_ENG_Actions takes nothing returns nothing
    //Datos de Inicio
    set udg_CADENAS_ENG[1] = "Dungeon"
    set udg_CADENAS_ENG[2] = "Shops (Dungeon)"
    set udg_CADENAS_ENG[3] = "Pavilion"
    set udg_CADENAS_ENG[4] = "Main Hall (Entry)"
    set udg_CADENAS_ENG[5] = "Cave"
    set udg_CADENAS_ENG[6] = "Main Hall"
    //Quien seleccional el modo
    set udg_CADENAS_ENG[7] = "Wait "
    set udg_CADENAS_ENG[8] = " select the modes."
    //Seleccion de modo
    set udg_CADENAS_ENG[9] = "|cffff0000You can not longer repick.|r"
    set udg_CADENAS_ENG[10] = "|cff32cd32HELP:|r Go to the light blue teleporters to the Dungeon."
    set udg_CADENAS_ENG[11] = "|cffff0000Not valid mode (Too much characters)|r"
    set udg_CADENAS_ENG[12] = "|cffff0000Not valid mode|r"
    set udg_CADENAS_ENG[13] = "One timer for each mission (31 minutes max.)."
    set udg_CADENAS_ENG[14] = "One timer for each mission (41 minutes max.)."
    set udg_CADENAS_ENG[15] = "One timer for each mission (51 minutes max.)."
    set udg_CADENAS_ENG[16] = "One timer for each mission (61 minutes max.)."
    set udg_CADENAS_ENG[17] = "One timer for the match (25 minutes)."
    set udg_CADENAS_ENG[18] = "One timer for the match (30 minutes)."
    set udg_CADENAS_ENG[19] = "One timer for the match (35 minutes)."
    set udg_CADENAS_ENG[20] = "One timer for the match (40 minutes)."
    set udg_CADENAS_ENG[21] = "One timer for the match (45 minutes)."
    set udg_CADENAS_ENG[22] = "One timer for the match (50 minutes)."
    set udg_CADENAS_ENG[23] = "One timer for the match (55 minutes)."
    set udg_CADENAS_ENG[24] = "Watch for the missions (push is useless)."
    set udg_CADENAS_ENG[25] = "Normal."
    set udg_CADENAS_ENG[26] = "No Neutrals."
    set udg_CADENAS_ENG[27] = "Watch for the missions."
    set udg_CADENAS_ENG[28] = "No |cffff0000Draenei|r and |cff32cd32Demons|r."
    set udg_CADENAS_ENG[29] = "No Creeps."
    set udg_CADENAS_ENG[30] = "Normal."
    set udg_CADENAS_ENG[31] = "Only consummibles."
    set udg_CADENAS_ENG[32] = "As there are only consummibles items, you can only get wood by buying to balance the costs."
    set udg_CADENAS_ENG[33] = "No recipes."
    set udg_CADENAS_ENG[34] = "Normal."
    set udg_CADENAS_ENG[35] = "Traitor (All pick)."
    set udg_CADENAS_ENG[36] = "You can only repick until 2 minutes."
    set udg_CADENAS_ENG[37] = "There are defensive towers, the demolisher is good for destroy them."
    set udg_CADENAS_ENG[38] = "You can heal your heros in the base."
    set udg_CADENAS_ENG[39] = "Hero (Leveling up)."
    set udg_CADENAS_ENG[40] = "There are special heros for destroy towers."
    set udg_CADENAS_ENG[41] = "If you are low of health, you can use -repick to have all life and mana."
    set udg_CADENAS_ENG[42] = "Classic (Not leveling up)."
    set udg_CADENAS_ENG[43] = "|cff7777aaGAMEMODES:|r"
    set udg_CADENAS_ENG[44] = "|cffffcc00Timers:|r "
    set udg_CADENAS_ENG[45] = "|cffffcc00Creeps:|r "
    set udg_CADENAS_ENG[46] = "|cffffcc00Shops:|r "
    set udg_CADENAS_ENG[47] = "|cffffcc00Selection:|r "
    set udg_CADENAS_ENG[48] = "|cffffcc00Heros:|r  "
    set udg_CADENAS_ENG[49] = "To select a mode you must chat '-' followed the characters of a specific mode (In order), if you don't specific a mode (not type the characters) the game automatically select the default modes."
    set udg_CADENAS_ENG[50] = "The Selection ends in: "
    set udg_CADENAS_ENG[51] = "|cffff40001. Timers|r"
    set udg_CADENAS_ENG[52] = "  |cff0080ff-v|r: One for each mission."
    set udg_CADENAS_ENG[53] = "    |cff00ff80-s|r: 60% (max. 31 minutes)."
    set udg_CADENAS_ENG[54] = "    |cff00ff80-m|r: 80% (max. 41 minutes)."
    set udg_CADENAS_ENG[55] = "    |cff00ff80-l|r: 100% (max. 51 minutes)."
    set udg_CADENAS_ENG[56] = "    |cff00ff80-h|r: 120% (max. 61 minutes)."
    set udg_CADENAS_ENG[57] = "  |cff0080ff-u|r: One for the match."
    set udg_CADENAS_ENG[58] = "    |cff00ff80-i|r: 25 minutes."
    set udg_CADENAS_ENG[59] = "    |cff00ff80-t|r: 30 minutes."
    set udg_CADENAS_ENG[60] = "    |cff00ff80-s|r: 35 minutes."
    set udg_CADENAS_ENG[61] = "    |cff00ff80-m|r: 40 minutes."
    set udg_CADENAS_ENG[62] = "    |cff00ff80-l|r: 45 minutes."
    set udg_CADENAS_ENG[63] = "    |cff00ff80-h|r: 50 minutes."
    set udg_CADENAS_ENG[64] = "    |cff00ff80-e|r: 55 minutes."
    set udg_CADENAS_ENG[65] = "|cffff40002. Creeps|r"
    set udg_CADENAS_ENG[66] = "  |cff0080ff-ca|r: Yes. (Def)"
    set udg_CADENAS_ENG[67] = "  |cff0080ff-n|r: No."
    set udg_CADENAS_ENG[68] = "    |cff00ff80-n|r: Neutral."
    set udg_CADENAS_ENG[69] = "    |cff00ff80-p|r: |cffff0000Draenei|r and |cff32cd32Demons|r."
    set udg_CADENAS_ENG[70] = "    |cff00ff80-c|r: Both."
    set udg_CADENAS_ENG[71] = "|cffff40003. Shops|r"
    set udg_CADENAS_ENG[72] = "  |cff0080ff-ns|r: Normal. (Def)"
    set udg_CADENAS_ENG[73] = "  |cff0080ff-oc|r: Only consumibles."
    set udg_CADENAS_ENG[74] = "  |cff0080ff-nr|r: No Recipes."
    set udg_CADENAS_ENG[75] = "|cffff40004. Selection|r"
    set udg_CADENAS_ENG[76] = "  |cff0080ff-ds|r: Normal. (Def)"
    set udg_CADENAS_ENG[77] = "  |cff0080ff-ap|r: Traitor (All pick)."
    set udg_CADENAS_ENG[78] = "|cffff40005. Heros|r"
    set udg_CADENAS_ENG[79] = "  |cff0080ff-lu|r: Hero (Leveling up). (Def)"
    set udg_CADENAS_ENG[80] = "  |cff0080ff-nl|r: Classic (Not levelling up)."
    //Primera persona
    set udg_CADENAS_ENG[81] = " has picked the 1st person mode."
    set udg_CADENAS_ENG[82] = "To get help type -fhelp (I recommend do it after the gamemodes are selected)."
    //Ayuda
    set udg_CADENAS_ENG[83] = "|cff7777aaFirst person mode:|r"+/*
                              */"\n-The camera is locked to the unit you have selected (only if you can control it) and you have a hero selected."+/*
                              */"\n-Use the right/left arrows to rotate the camera."+/*
                              */"\n-Press up arrow to set the camera angle to where your unit is seeing."+/*
                              */"\n-Press down arrow to set the camera angle to where is your unit."
    //Revivir
    set udg_CADENAS_ENG[84] = "You revive in:"
    //Mision1 Parte 2
    set udg_CADENAS_ENG[85] = "|cffffcc00Mision 1:|r The door"
    //Mision2 Parte 3
    set udg_CADENAS_ENG[86] = "Your team has advanced\n"
    //Mision2 Parte 4
    set udg_CADENAS_ENG[87] = "|cffffcc00Mision 2:|r The wall"
    //Mision2 Parte 5
    set udg_CADENAS_ENG[88] = "|cffffce33The telepoter to the entry of the Main Hall has been unlocked.|r"
    set udg_CADENAS_ENG[89] = "|cff32cd32HELP:|r The dungeon was taken, better go to the blue teleporter that goes to the Pavilion."
    //Mision2 Parte 6
    set udg_CADENAS_ENG[90] = "|cff32cd32HELP:|r If you use repick when you have the barrel, it will be deleted."
    //Mision3 Parte 3
    set udg_CADENAS_ENG[91] = "Your team has been stopped\n"
    //Mision3 Parte 4
    set udg_CADENAS_ENG[92] = "|cffffcc00Mision 3:|r The habitat"
    //Mision4 Parte 3
    set udg_CADENAS_ENG[93] = "|cffffcc00Mision 4:|r The generators"
    //Mision4 Parte 4
    set udg_CADENAS_ENG[94] = "|cffffce33All the telepoters have been unlocked.|r"
    //Mision5 Parte 3
    set udg_CADENAS_ENG[95] = "|cffffcc00Mision 5:|r The exit"
    //Tabla
    set udg_CADENAS_ENG[96] = "Statistics"
    set udg_CADENAS_ENG[97] = "|cffff0000Drae|r"
    set udg_CADENAS_ENG[98] = "|cffff0000 nei|r"
    set udg_CADENAS_ENG[99] = "Player"
    set udg_CADENAS_ENG[100] = "Kills"
    set udg_CADENAS_ENG[101] = "Deaths"
    set udg_CADENAS_ENG[102] = "Assists"
    //Jugadores Orden
    set udg_CADENAS_ENG[103] = "|cff32cd32Dem|r"
    set udg_CADENAS_ENG[104] = "|cff32cd32 ons|r"
    //Mover Muro
    set udg_CADENAS_ENG[105] = "The tunnel in the construction zone have been |cff93ff00unlocked|r"
    set udg_CADENAS_ENG[106] = "The tunnel in the construction zone have been |cffff2d00locked|r"
    //Colocar barril
    set udg_CADENAS_ENG[107] = "\nThe first barrel has been placed"
    set udg_CADENAS_ENG[108] = "\nThe second barrel has been placed"
    set udg_CADENAS_ENG[109] = "\nThe third barrel has been placed\nThe wall will be destroyed\n"
    //Barril
    set udg_CADENAS_ENG[110] = "Hey, you have one in your hand, wait for leaving it."
    set udg_CADENAS_ENG[111] = "You cannot have more than one at a time."
    set udg_CADENAS_ENG[112] = "\nSomeone got a barrel."
    set udg_CADENAS_ENG[113] = "Why do you need this?"
    //Muy gracioso
    set udg_CADENAS_ENG[114] = "Ha Ha, it's too funny destroy the barrels, but it isn't funny to me when I have to replace them."
    //Bah
    set udg_CADENAS_ENG[115] = "Bah!"
    //Ahora quieren
    set udg_CADENAS_ENG[116] = "I hope that you give it a better uses than only break it."
    set udg_CADENAS_ENG[117] = "Why do you want a barrel? For breaking it with no reason?"
    //Destruir Generador
    set udg_CADENAS_ENG[118] = "The batery was destroyed, the force field will be disabled."
    //Primer Generador
    set udg_CADENAS_ENG[119] = "A generator was destroyed."
    //Segundo Generador
    set udg_CADENAS_ENG[120] = "The second generator was destroyed.\n\nThe defenses will be deactivated.\n"
    //Puerta
    set udg_CADENAS_ENG[121] = "|cffc0b6a4The waygates in the main hall were activated|r"
    //Palanca
    set udg_CADENAS_ENG[122] = "The elevator near the generator was activated"
    //Entrar3
    set udg_CADENAS_ENG[123] = "The elevator is deactivated, to activate it you have to operate the lever that is to the north."
    //Para el secreto 1
    set udg_CADENAS_ENG[124] = "The secret route in the dungeon has been open."
    //Seria mas facil si tuvieses blink
    set udg_CADENAS_ENG[125] = "I wonder what this will do."
    set udg_CADENAS_ENG[126] = "Yes, better leave it at that."
    set udg_CADENAS_ENG[127] = "Oh no, that doesn't look good."
    //Tienda Secreta Parte 1
    set udg_CADENAS_ENG[128] = "|cff9b00ffThe Secret Shop was unlocked.|r"
    //Seria malo permitirlo
    set udg_CADENAS_ENG[129] = "To prevent injustice, the buff of invunerability will be remove on 2 seconds."
    //Para no hacer trampas
    set udg_CADENAS_ENG[130] = "That would be very easy"
    //Se supone que es secreto
    set udg_CADENAS_ENG[131] = "|cff9b00ffHey, get out of here! This is supposed to be a secret for now.|r"
    //A ellos no me los toques
    set udg_CADENAS_ENG[132] = "Stop attacking him, its not worth."
    //No robes
    set udg_CADENAS_ENG[133] = "|cffff0000You can't pick a object that it isn't yours.|r"
    //No puedes volver
    set udg_CADENAS_ENG[134] = "Sorry, but you can't go back there."
    //Total Freeze
    set udg_CADENAS_ENG[135] = "|cffae0000The Dark Wizard will cast Total Freeze|r"
    //Spell Steal
    set udg_CADENAS_ENG[136] = "Wait, Why?"
    //Si mueres Heroe
    set udg_CADENAS_ENG[137] = "You revive in: "
    //Te mato
    set udg_CADENAS_ENG[138] = " was killed by The Monster"
    set udg_CADENAS_ENG[139] = " was killed by the Neutral Creeps"
    set udg_CADENAS_ENG[140] = " has ended the spree of |cffffcc00"
    set udg_CADENAS_ENG[141] = " of "
    set udg_CADENAS_ENG[142] = " killed "
    set udg_CADENAS_ENG[143] = "Assists: "
    set udg_CADENAS_ENG[144] = " has a spree of "
    set udg_CADENAS_ENG[145] = " just got a |cff00ffffDouble kill|r!"
    set udg_CADENAS_ENG[146] = " just got a |cff00ffffTriple kill|r!"
    set udg_CADENAS_ENG[147] = " just got a |cff00ffffUltra kill|r!"
    set udg_CADENAS_ENG[148] = " is on a |cff00ffffRampage|r!"
    //Me mato un aliado
    set udg_CADENAS_ENG[149] = " has killed himself."
    set udg_CADENAS_ENG[150] = " was killed for insubordination."
    set udg_CADENAS_ENG[151] = " killed his teammate "
    //Select Reviving Hero
    set udg_CADENAS_ENG[152] = "|cff61dbffYour hero has resurrected|r"
    //Courrier
    set udg_CADENAS_ENG[153] = "\nThe items of your courrier are in your circle."
    set udg_CADENAS_ENG[154] = "The "
    set udg_CADENAS_ENG[155] = "'s courrier has been killed."
    //Inicio misiones
    set udg_CADENAS_ENG[156] = "The door"
    set udg_CADENAS_ENG[157] = "The only way to escape is through the door and the draenei will have to go through it."
    set udg_CADENAS_ENG[158] = "|cffff0000Draenei:|r Destroy the door of the dungeon."
    set udg_CADENAS_ENG[159] = "|cff32cd32Demons:|r Don't let draenei destroy the door of the dungeon."
    set udg_CADENAS_ENG[160] = "The wall"
    set udg_CADENAS_ENG[161] = "The road to the main exit is very protected, it would be better to open a gap in the dragon's habitat to take a shortcut to defenses and be able to deactivate it."
    set udg_CADENAS_ENG[162] = "|cffff0000Draenei:|r Place 3 barrels in the fragile part of the wall."
    set udg_CADENAS_ENG[163] = "|cff32cd32Demons:|r Don't let them put those barrels."
    set udg_CADENAS_ENG[164] = "The habitat"
    set udg_CADENAS_ENG[165] = "Now it's time to go through the dragons to get to the main entrance."
    set udg_CADENAS_ENG[166] = "|cffff0000Draenei:|r Make your way through the habitat of the dragons."
    set udg_CADENAS_ENG[167] = "|cff32cd32Demons:|r Don't let them go through the habitat of the dragons."
    set udg_CADENAS_ENG[168] = "The generators"
    set udg_CADENAS_ENG[169] = "To disable the defenses you have to destroy the generators, and the rest of the forces may pass."
    set udg_CADENAS_ENG[170] = "|cffff0000Draenei:|r They must destroy the 2 generators."
    set udg_CADENAS_ENG[171] = "|cff32cd32Demons:|r Don't let them destroy the generators."
    set udg_CADENAS_ENG[172] = "The exit"
    set udg_CADENAS_ENG[173] = "Now only remains to destroy the main entrance to escape."
    set udg_CADENAS_ENG[174] = "|cffff0000Draenei:|r Destroy the door of the main entrance."
    set udg_CADENAS_ENG[175] = "|cff32cd32Demons:|r Don't let them destroy the main entrance door."
    set udg_CADENAS_ENG[176] = "Help"
    set udg_CADENAS_ENG[177] = "Ask me whatever you want here: https:/"+"/www.hiveworkshop.com/members/herlysqr.286960/\n\n"+/*
                             */"The circles can pick and drop items.\n\n"+/*
                             */"The pings of the minimap indicates where do you have to go (Seriously, many people didn't get it in the first).\n"+/*
                             */"You get between 1 and 2 lumber for killing heros, 0 and 1 for assisting or buying it.\n"+/*
                             */"You lost between 10% and 15% of your gold if an enemy kills you.\n"+/*
                             */"The creeps spawn every 60 seconds (if there isn't units in their spawn).\n"+/*
                             */"You can't hurt an ally unit (Unless it has less than 30% of life).\n\n"+/*
                             */"See the main quests for more details\n\n"+/*
                             */"See the comands for more help."
    set udg_CADENAS_ENG[178] = "|cffff0000Draenei:|r Have to scape."
    set udg_CADENAS_ENG[179] = "|cff32cd32Demons:|r Have to stop the draenei."
    set udg_CADENAS_ENG[180] = "Commands"
    set udg_CADENAS_ENG[181] = "Press ESC To clear the text messages.\n"+/*
                             */"\"-defcam\" To set the camera zoom to default.\n"+/*
                             */"\"-repick\" To change hero.\n"+/*
                             */"\"-notip\" To disable the tips.\n"+/*
                             */"\"-yestip\" To enable the tips.\n"+/*
                             */"\"-switch\" To change with a player from the other team.\n"+/*
                             */"\"-modes\" To see the selected modes.\n"+/*
                             */"\"-surrender\" To lose fast.\n"+/*
                             */"\"-gg <Amount>\" To give gold to the owner of the unit you have selected (You have to pay 50% extra).\n"+/*
                             */"\"-gl <Amount>\" To give lumber to the owner of the unit you have selected (You have to pay 50% extra)."
    set udg_CADENAS_ENG[182] = "Opcional Missions"
    set udg_CADENAS_ENG[183] = "If you use -repick, you won't lost the missions (yes the encommenders are phyquics), but if is a mission for an especific group, it will be lost if you used -switch."
    set udg_CADENAS_ENG[184] = "There is some acient void traveller, maybe he wanna some help."
    set udg_CADENAS_ENG[185] = "Somewhere, a reader hides in a place that only few people can enter."
    set udg_CADENAS_ENG[186] = "The fountain looks too awful, maybe someone can help (Only Draenei Seer)."
    set udg_CADENAS_ENG[187] = "A draenei prisioner have some money for someone who can prove himself (Only Draenei)."
    set udg_CADENAS_ENG[188] = "The Lord of Fire wants more efficience, he thinks give some money for that (Only Demons)."
    set udg_CADENAS_ENG[189] = "And old man will give a bounty for someone who kills a big Monster and gives him its head."
    set udg_CADENAS_ENG[190] = "There are 3 powerful gems and it is said that if you return them to their obelisks, they will grant you their powers."
    set udg_CADENAS_ENG[191] = "Gamemodes"
    set udg_CADENAS_ENG[192] = "|cff7777aa1. Timers|r\n\n"+/*
                             */"|cff0080ff-v|r Every time you the draenei complete a mission a new timer will start, each with their own duration (Mission 1: 10 minutes, Mission 2: 13 minutes, Mission 3: 9 minutes, Mission 4: 10 minutes, Mission 5: 9 minutes) each mode let you to select a percentage to that times.\n"+/*
                             */"|cff00ff80-s|r: 60% (max. 31 minutes), |cff00ff80-m|r: 80% (max. 41 minutes), |cff00ff80-l|r: 100% (max. 51 minutes), |cff00ff80-h|r: 120% (max. 61 minutes).\n"+/*
                             */"|cff0080ff-u|r During all the match will be a unique timer that will run even if the draenei complete a mission, each mode is to select the duration of that timer.\n"+/*
                             */"|cff00ff80-i|r: 25 minutes, |cff00ff80-t|r: 30 minutes, |cff00ff80-s|r: 35 minutes, |cff00ff80-m|r: 40 minutes, |cff00ff80-l|r: 45 minutes, |cff00ff80-h|r: 50 minutes, |cff00ff80-e|r: 55 minutes.\n\n"+/*
                             */"|cff7777aa2. Creeps|r\n\n"+/*
                             */"|cff0080ff-ca|r: Normal creeps, |cff00ff80-nn|r: No neutral creeps, |cff00ff80-np|r: No creeps of |cffff0000Draenei|r or |cff32cd32Demons|r, |cff00ff80-nc|r: No creeps of any type.\n\n"+/*
                             */"|cff7777aa3. Shops|r\n\n"+/*
                             */"|cff0080ff-ns|r: Normal items, |cff0080ff-oc|r: There are only consumibles, |cff0080ff-nr|r: There are no recipes.\n\n"+/*
                             */"|cff7777aa4. Selection|r\n\n"+/*
                             */"|cff0080ff-ds|r: You can only select a hero of your class, |cff0080ff-ap|r: You can select all heros.\n\n"+/*
                             */"|cff7777aa5. Heros|r\n\n"+/*
                             */"|cff0080ff-lu|r: The heros level up like normally, |cff0080ff-nl|r: The heros don't level up, they have the abilities by default with no need of learn them, they only can get their ultimate power and increase their abilities obtaining a Power Booster.\n\n"+/*
                             */"|cff7777aa-firstperson|r An extra gamemode."
    set udg_CADENAS_ENG[193] = "Joke Sounds"
    set udg_CADENAS_ENG[194] = "\"-killingspree\", \"-dominating\", \"-megakill\", \"-unstoppable\", \"-wickedsick\", \"-monsterkill\", \"-godlike\", \"-doublekill\", \"-triplekill\", \"-ultrakill\", \"-rampage\", \"-ownage\"\n\n"+/*
                             */"\"-noo\", \"-lion\", \"-wtf\", \"-wasted\", \"-help\", \"-miau\", \"-doh\", \"-XD\""
    set udg_CADENAS_ENG[195] = "Credits"
    set udg_CADENAS_ENG[196] = "Map created by HerlySQR\n\n"+/*
                             */"|cff999999I want to thank all people who gaves me some help me, but I don't remember every name. Check in https:/"+"/www.hiveworkshop.com|r\n\n"+/*
                             */"|cff7777aaImported Files:|r\n\n"+/*
                             */"-Main Image: “Then and Now”, Jessica Aumaitre https:/"+"/www.pinterest.com/pin/170925748342097069/\n"+/*
                             */"-Damage Engine 3.8.0.0, Unit Indexer, Unit Moving, Table and SpellEffectEvent by Bribe.\n"+/*
                             */"-Jump System [Paladon] by Paladon.\n"+/*
                             */"-MoveSpeedX for GUI v1.1.0.0 and ReviveUnit by PurgeandFire.\n"+/*
                             */"-TimerUtils by Vexorian.\n"+/*
                             */"-TimedHandles v1.0.5 by TriggerHappy.\n"+/*
                             */"-RegisterNativeEvent v1.1.1.3 and RegisterPlayerUnitEvent v1.0.3.2 by Bannar.\n"+/*
                             */"-ErrorMessage by ¿?.\n"+/*
                             */"-WorldBounds by ¿?.\n"+/*
                             */"-UNIT RECYCLER v1.4.1 by AGD.\n"+/*
                             */"-SelectionCircle by Aniki.\n"+/*
                             */"-Alloc by Nestharus.\n"+/*
                             */"-Relativistic Missiles by chopinski.\n"+/*
                             */"-BountyController, Transmission by me.\n\n"+/*
                             */"-Orb of Dragons by General Frank.\n"+/*
                             */"-AntiMagicShell, SoulArmor, VampiricAuraTarget, BlinkTarget, WispExplode, BladeStorm, PoisonStingTarget by JetFangInferno.\n"+/*
                             */"-gem by SantoRayo[iP].\n"+/*
                             */"-Blink Purple Target, Holy Light, Valiant Charge, Void Teleport, Shots Vol. II, Fire Missiles by Mythic.\n"+/*
                             */"-LavaEarthquakeTarget by SharSash."
    set udg_CADENAS_ENG[197] = "Credits 2"
    set udg_CADENAS_ENG[198] = "-Black Hole by Fingolfin.\n"+/*
                             */"-Deathknight by PROXY.\n"+/*
                             */"-DraeneiAnchorite by Sellenisko.\n"+/*
                             */"-NewSparksEX by WILL THE ALMIGHTY.\n"+/*
                             */"-Lightnings Multiple, Holy Light by Tranquil.\n"+/*
                             */"-Quest Marking Aura by stan0033.\n"+/*
                             */"-Death Grip by Azsure.\n"+/*
                             */"-Attack Aura by s4nji.\n"+/*
                             */"-Helmet by -Grendel.\n"+/*
                             */"-ProphetVelen by Sellenisko.\n"+/*
                             */"-ShadowDancerLostOneV1.05, VindicatorLostOneV1.02 by Ujimasa Hojo.\n"+/*
                             */"-Draenei by Murlocologist.\n"+/*
                             */"-Retribution by Kuhneghetz.\n"+/*
                             */"-Aura of Shock by levigeorge1617.\n"+/*
                             */"-TNTBarrel (thanks Hermit).\n"+/*
                             */"-BTNNetherPotion by JesusHipster, Tiodor.\n"+/*
                             */"-BTNPlateOfPlaneswalker by JollyD.\n"+/*
                             */"-BTNArcaneField by Eldin HawkWing.\n"+/*
                             */"-BTNSword by Static.\n"+/*
                             */"-BTNCRZOOMOUT, BTNCRZOOMIN by CRAZYRUSSIAN.\n"+/*
                             */"-BTNExplBarrel by Darky29.\n"+/*
                             */"-BTNA7XBloodDiamond, BTNA7XMoonDiamond, BTNA7XPoisonDiamond by a7xpwns3.\n"+/*
                             */"-BTNDranaiHide by Blizzard Entertainment, Starblind.\n"+/*
                             */"-BTNSpell_Holy_Purify,BTNSpell_Fire_FireBolt02 by Blizzard Entertainment.\n"+/*
                             */"-BTNDraeneiFemaleHuntress by FrIkY.\n"+/*
                             */"-BTNLightningboltcontest by kola.\n"+/*
                             */"-BTNMagicExplosion by The Panda.\n"+/*
                             */"-BTNTimeEclipse3 by San.\n"+/*
                             */"-BTNdancingLightningGS by GooS.\n"+/*
                             */"-BTNWindsBoots, BTNHolyLance by Mc !.\n"+/*
                             */"-BTNBloodElvenImprovedHides by Zephyrius2412.\n"+/*
                             */"-BTNElderBlood by morbent.\n"+/*
                             */"-BTNNFHelmet03 by NFWar.\n"+/*
                             */"-BTNANAHolyEnergy by Anachron.\n"+/*
                             */"-BTNAnkhOfRebirthy Palaslayer.\n"+/*
                             */"-BTNStrands by Kershbob.\n"+/*
                             */"-BTNDraeneiDestroyer2 by Null.\n"+/*
                             */"-BTNThunderStorm, BTNSparkle by The Panda.\n"+/*
                             */"-BTNHammerCrush by zbc.\n"+/*
                             */"-BTNCharge by KelThuzad.\n"+/*
                             */"-BTNStormSphere by Darkfang.\n"+/*
                             */"-BTNFlamingWhirlwind by ¿?.\n"+/*
                             */"-BTNFireImpact by FrIkY.\n"+/*
                             */"-BTNGromHellscreamsAxe, BTNThrowingAxe by -Berz-.\n"+/*
                             */"-BTNHellscreamBerserk by Chen.\n"+/*
                             */"-BTNBreathOfFireNew by ChevronSeven.\n"+/*
                             */"-BTNRainOfFire by Blizzard Entertainment, Darkfang.\n"+/*
                             */"-BTNHellfirePossession, BTNWispMissile by ~Nightmare.\n"+/*
                             */"-BTNAxeOfAshes by Hellx-Magnus.\n"+/*
                             */"-BTNradar by malfy.\n"+/*
                             */"-BTNWBurstv3 by Heinvers.\n"+/*
                             */"-BTNCameraLeft, BTNCameraRight by darkdeathknight"
    //Salida de la prision
    set udg_CADENAS_ENG[199] = "|cffffcc00THE DOOR OF THE DUNGEON WAS DESTROYED|r"
    //Salida de la cueva
    set udg_CADENAS_ENG[200] = "|cffffcc00MISSION COMPLETED|r\n"+/*
                             */"They managed to get out of the cave.\n"
    set udg_CADENAS_ENG[201] = "|cffffcc00MISSION FAILED|r\n"+/*
                             */"They managed to get out of the cave.\n"
    //Si estan en la mision 4
    set udg_CADENAS_ENG[202] = "|cff00ffd8There is no longer any risk of evading missions, so you can have Teleport instead of Speed increase.|r"
    //Fin
    set udg_CADENAS_ENG[203] = "|cffffcc00THE MAIN ENTRY WAS DESTROYED|r\n"+/*
                             */"Draenei have won"
    set udg_CADENAS_ENG[204] = "|cffffcc00THE DEMONS SURRENDERED|r\n"+/*
                             */"Draenei have won"
    //Se acabo el tiempo
    set udg_CADENAS_ENG[205] = "|cffffcc00TIME IS OVER|r\n"+/*
                             */"Demons have won"
    set udg_CADENAS_ENG[206] = "|cffffcc00THE DRAENEI SURRENDERED|r\n"+/*
                             */"Demons have won"
    //Correr texto
    set udg_CADENAS_ENG[207] = "The match has finished wait 10 seconds to start again."
    //Menus
    set udg_CADENAS_ENG[208] = "The demons will win in:"
    set udg_CADENAS_ENG[209] = "Accept the mission?"
    set udg_CADENAS_ENG[210] = "Yes"
    set udg_CADENAS_ENG[211] = "No"
    //Si no estas en mision
    set udg_CADENAS_ENG[212] = "No time to read, besides boring."
    set udg_CADENAS_ENG[213] = "Better leave that, it doesn't seem important."
    set udg_CADENAS_ENG[214] = "Why I should do that?"
    //Funciones para las misiones
    set udg_CADENAS_ENG[215] = "|cff32cd32HELP:|r He can see your soul."
    set udg_CADENAS_ENG[216] = "|cff32cd32HELP:|r Maybe she learnt something about voodoo in her books."
    set udg_CADENAS_ENG[217] = ""
    set udg_CADENAS_ENG[218] = "|cff32cd32HELP:|r Don't worry, maybe much time in the prision get him crazy."
    set udg_CADENAS_ENG[219] = "|cff32cd32HELP:|r Ok, this man is so scary."
    //Dialogo Viajero del vacio
    set udg_CADENAS_ENG[220] = "Void Traveller"
    set udg_CADENAS_ENG[221] = "Hello, you again."
    set udg_CADENAS_ENG[222] = "Did you think in my deal?."
    set udg_CADENAS_ENG[223] = "Hello"
    set udg_CADENAS_ENG[224] = "Hello, visitor."
    set udg_CADENAS_ENG[225] = "If you wanna know what am i doing here, I'm just a traveller."
    set udg_CADENAS_ENG[226] = "In this moment I'm doing a potion, if you help me I'll give you 600 of gold."
    //Aceptar 1
    set udg_CADENAS_ENG[227] = "|cffffcc00VOID TRAVELLER|r\n\n"+/*
                             */"-Colect an egg of the dragons.\n"+/*
                             */"-Colect a skull.\n"+/*
                             */"-Colect a fire pictogram.\n"+/*
                             */"-Give this items to the Void Traveller.\n"
    set udg_CADENAS_ENG[228] = "Ok, you are busy, I understand."
    //Dialogo Viajero del vacio antes de cumplir la mision
    set udg_CADENAS_ENG[229] = "Hello visitor."
    set udg_CADENAS_ENG[230] = "I would offer you my special potion, but I don't have the ingredents, but don't worry someone is searching it for me."
    //Adquir objetos Viajero del vacio
    set udg_CADENAS_ENG[231] = "Mission Objective Completed"
    set udg_CADENAS_ENG[232] = "Wait, that dragon that you killed, was the mother????"
    set udg_CADENAS_ENG[233] = "Are you stealing an egg of a dragon of your own? You don't have soul."
    set udg_CADENAS_ENG[234] = "You must be very brave or very foolish to do that."
    set udg_CADENAS_ENG[235] = "You know that the skull is for someone of your own race, what a morbid."
    //Vuelves Viajero del vacio
    set udg_CADENAS_ENG[236] = "|cffffcc00MISSION COMPLETE|r\n"+/*
                             */"Void Traveller\n"
    set udg_CADENAS_ENG[237] = "Oh, you're back, and you have the items. Nice."
    set udg_CADENAS_ENG[238] = "Now I can prepare my poition."
    set udg_CADENAS_ENG[239] = "My potion it's done, thanks for help, I'll do my promise."
    set udg_CADENAS_ENG[240] = "Oh, you're back, but you don't have all the items, no problem, I can wait."
    //Dialogo Viajero del vacio despues de cumplir la mision
    set udg_CADENAS_ENG[241] = "|cff32cd32HELP:|r Nobody wants his potion."
    set udg_CADENAS_ENG[242] = "Oh you are back, do you wanna prove my potion?"
    set udg_CADENAS_ENG[243] = "Hello visitor, Do you wanna prove my potion?"
    //Para ser justos
    set udg_CADENAS_ENG[244] = "This mission is only avalaible in the 3rd stage (It's to be fair with the draenei."
    //Y aun asi vienes
    set udg_CADENAS_ENG[245] = "Hey! I said is only avalaible in the 3rd stage, this guys..."
    //Dialogo Lectora
    set udg_CADENAS_ENG[246] = "Reader"
    set udg_CADENAS_ENG[247] = "Ah, it's you again."
    set udg_CADENAS_ENG[248] = "Do you wanna do for me the favor?"
    set udg_CADENAS_ENG[249] = "Another one?"
    set udg_CADENAS_ENG[250] = "I have to reconsider moving somewhere else."
    set udg_CADENAS_ENG[251] = "Anyway, I offer you 5 of lumber if you find my lost book. Do you want?"
    set udg_CADENAS_ENG[252] = "What?, How can you...?"
    set udg_CADENAS_ENG[253] = "Even the animals come here"
    set udg_CADENAS_ENG[254] = "I just want a private place to ready and someone came here."
    set udg_CADENAS_ENG[255] = "But, thinking better, you can do a labor for me."
    set udg_CADENAS_ENG[256] = "But, thinking better, I need a favor."
    set udg_CADENAS_ENG[257] = "In the search of a place, I lost some of my books, and I don't know where is it, if you bring it me i will give you 5 of lumber."
    //Aceptar 2
    set udg_CADENAS_ENG[258] = "|cffffcc00THE READER|r\n"/*
                            */+"-Find the book of the reader.\n"/*
                            */+"-Give her the book.\n"
    set udg_CADENAS_ENG[259] = "So please, don't disturb me when I'm reading."
    //Vuelves La Lectora
    set udg_CADENAS_ENG[260] = "|cffffcc00MISSION COMPLETE|r\n"/*
                            */+"The reader\n"
    set udg_CADENAS_ENG[261] = "Oh my book thanks, now get your bounty."
    set udg_CADENAS_ENG[262] = "Now please, leave me alone."
    set udg_CADENAS_ENG[263] = "You"
    set udg_CADENAS_ENG[264] = "Uhmm."
    set udg_CADENAS_ENG[265] = "Oh it's you and you don't have my book, so what do you want here?"
    //Dialogo La Lectora antes de cumplir la mision
    set udg_CADENAS_ENG[266] = "The boss got angry, but, What did you do?!"
    set udg_CADENAS_ENG[267] = "What?, Another person?, I have to find a better place."
    //Dialogo La Lectora despues de cumplir la mision
    set udg_CADENAS_ENG[268] = "I gave you the bounty, what do you want?"
    set udg_CADENAS_ENG[269] = "And the boss got angry, but, What did you do?!"
    set udg_CADENAS_ENG[270] = "I hope you haven't told him where I am at least."
    set udg_CADENAS_ENG[271] = "By the way. What was that explosion?, it didn't come from the construction zone."
    set udg_CADENAS_ENG[272] = "I just hope none of those barrels are anywhere near here."
    set udg_CADENAS_ENG[273] = "Specially because they are fixed to the ground and there is no choice but to destroy them."
    //Dialogo La lectora si lo visita un infernal
    set udg_CADENAS_ENG[274] = "AN INFERNAL?! IS THIS FOR NOT DOING MY JOB?!!"
    //Dialogo fuente
    set udg_CADENAS_ENG[275] = "This fountain looks awful."
    set udg_CADENAS_ENG[276] = "Maybe I can do something."
    //Aceptar 3
    set udg_CADENAS_ENG[277] = "I remember someone in the prison who talk us of the water pictogram or something, maybe he can help me."
    set udg_CADENAS_ENG[278] = "|cffffcc00THE FOUNTAIN|r\n"+/*
                             */"-Talk with the draenei.\n"+/*
                             */"-Obtain the water pictogram.\n"+/*
                             */"-Bring the water pictogram to the fountain.\n"
    set udg_CADENAS_ENG[279] = "I remember that some of the prisoners stole the water pictogram, I will have to claim it."
    set udg_CADENAS_ENG[280] = "|cffffcc00THE FOUNTAIN|r\n"+/*
                             */"-Go with the draenei.\n"+/*
                             */"-Claim the water pictogram.\n"+/*
                             */"-Bring the water pictogram to the fountain.\n"
    //Dialogo para el pictograma
endfunction

//=========================================================================== 
function InitTrig_Configurar_cadenas_ENG takes nothing returns nothing
    set gg_trg_Configurar_cadenas_ENG = CreateTrigger()
    call TriggerAddAction(gg_trg_Configurar_cadenas_ENG, function Trig_Configurar_cadenas_ENG_Actions)
endfunction
What I try is add an option to change the language of my map, so I stored every string that is printed (is not complete yet).
 
The game has multilanguage features. Hardly used, because creating a map in one language is already much work, the features are quite unknown and bad supported (in World Editor).

If you mod Warcraft 3 V1.31 or higher you could instead use StringList a Feature of fdf/toc to create custom localized Strings. That would seperate the string content from your map script into a imported file and in your map script you would get the content using
GetLocalizedString(string key).
Togehter with the modern path for language-Files one could let the game handle the language picking. You would have the default version of the File and one File for each supported language.

In older versions one could fill the wts-file and give a map multiple copies of it with an lcid addition. Kinda bad to use because wts is filled with object Editor and GUI strings and I think driven by indexes instead of keys
(though I never tested if one could write a wts string with a String Key).
war3map#<lcid>.wts (lcid in hex) for example war3map#407.wts (german) and war3map.wts (default).
 
Status
Not open for further replies.
Top