[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-133489-en":3,"doc-seo-133489-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},133489,2336475104362,"Mali","https://ap-avatar.wpscdn.com/avatar/22000c4c46a41b752dd?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786595829695023868",6,"Technology","World Builder Basic Scripting Tutorial - Mission Scripting Guide","World Builder Basic Scripting Tutorial provides practical, mission-focused guidance for implementing scripting in The Battle for Middle-earth 2. It explains how to prepare a map layout, set up required units with correct names and teams, and organize mission structure through map.ini and map.str. The tutorial then details common scripting usage, including cutscene intro Cine setup, objective win/loss logic, and per-unit script assignments for Elves and Goblins. It also covers authoring waypoints, area triggers, and waypoint paths, plus configuring player teams to support ambushes, transfers, and patrol behaviors.","World Builder Basic Scripting Tutorial  \nTable of Contents _______________________________________________________ 2  \nIntroduction ___________________________________________________________ 3  \nMap Layout ___________________________________________________________ 4  \nTeam Building _________________________________________________________ 6  \nMap.str & Map.ini _____________________________________________________ 12  \nScripting _____________________________________________________________ 14  \nIntro Cine ________________________________________________________________ 22  \nObjectives ________________________________________________________________ 24  \nMission Win & Loss________________________________________________________ 25  \nPlyrElves Scripts __________________________________________________________ 25  \nPlyrCivilian Scripts ________________________________________________________ 26  \nGoblin Base_______________________________________________________________ 26  \nGoblin Patrols_____________________________________________________________ 28  \nPlyrWild Scripts___________________________________________________________ 30  \nWelcome to the Basic Scripting Tutorial for World Builder. While this tutorial will serve to familiarize you with the scripting tool used in World Builder, it won‟t teach what every script action and condition is. This tutorial will cover the most commonly used scripts that the designers use for The Battle for Middle-earth 2. This tutorial also will assume that you‟ve read up on how to create a map; adjusting the height of the terrain, texturing, placing units, etc. This tutorial will also list every single script needed to recreate this level. Below is a picture of the map that‟s going to be referenced for this tutorial.  \nSo first lay out the map above in World Builder. Here‟s a quick list of the units on the map:  \n- (L)– Legolas  \n- (EW)– Elven Warrior Horde  \n- (EA)– Elven Archer Horde  \n- (EP)– Elven Pike Horde  \n- (EB)– Elven Barracks  \n- (GW)– Goblin Warrior Horde  \n- (GM)– Goblin Mine Shaft  \n- (GC)– Goblin Cave  \nIn this mission the Player starts with two Elven Warrior Hordes, two Elven Archer Hordes, and Legolas. The player is instructed to clear out all the Goblins in the region. Before you start scripting however, we have to make sure to get all the units named and on their appropriate teams. Also, we‟ll have to setup a “map.ini” file and a “map.str” file. First, let‟s go over all the named units and teams you need to have on the map.  \nReferencing the map above, the names and teams they are on are as follows:  \n- (GW)1- “Goblin Retreater”  \n- (GW)2-No Name  \n- (GW)3-No Name  \n- (GW)4-No Name  \n- (GW)5-No Name  \n- (GW)6-No Name  \n- (GW)7-No Name  \n- (GW)8-No Name  \n- (GM)‟s-No Name  \n- (GC)‟s-No Name  \n- (EP)1- “Elf Reinforcement 01”  \n- (EP)2- “Elf Reinforcement 02”  \n- (EB) - “Elf Barracks”  \nTeam-PlyrCivilian/teamPlyrCivilian  \nTeam-PlyrWild/Ambush Team  \nTeam-PlyrWild/Ambush Team  \nTeam-PlyrWild/Ambush Team  \nTeam-PlyrWild/Goblin Patrol Team 01  \nTeam-PlyrWild/Goblin Patrol Team 02  \nTeam-PlyrWild/Goblin Patrol Team 03  \nTeam-PlyrWild/Goblin Patrol Team 04 Team-PlyrWild/teamPlryWild  \nTeam-PlyrWild/teamPlryWild  \nTeam-PlyrCivilian/teamPlyrCivilian  \nTeam-PlyrCivilian/teamPlyrCivilian  \nTeam-PlyrCivilian/teamPlyrCivilian  \nThe next thing you‟ll want to do is lay down any waypoints, area triggers, and waypoint paths you‟ll need. Here‟s a quick list of the names, and locations for all these parameters:  \n- Waypoint:  \no Location: Right behind Legolas  \no Name: InitialCameraPosition  \n- Waypoint:  \no Location: Underneath (GW)1  \no Name: WP-Look At Goblin Retreater  \n- Waypoint:  \no Location: Center of small square to left of (GW)3  \no Name: WP-Goblin Retreater Run Here  \n- Area Trigger:  \no Location: Right corner of the screen; Large, triangular  \no Name: AT-Ambush Team Attack  \n- Area Trigger:  \no Location: Inside large triangular Area Trigger on bottom right; Small, square  \no Name: A","cbCaicmndKXBSbZH","https://ap.wps.com/l/cbCaicmndKXBSbZH","pdf",955516,1,31,"English","en",105,"# Introduction\n# Map Layout\n# Team Building\n# Map.str & Map.ini\n# Scripting\n# Intro Cine\n# Objectives\n# Mission Win & Loss\n# Unit Script Overview\n# Waypoints, Area Triggers, and Waypoint Paths\n# Team Setup Workflow","[{\"question\":\"What does the tutorial cover for World Builder scripting?\",\"answer\":\"It introduces the scripting tool used in World Builder and focuses on the most commonly used script actions and conditions used by designers for The Battle for Middle-earth 2. It also lists scripts needed to recreate a referenced level.\"},{\"question\":\"What files must be set up before scripting begins?\",\"answer\":\"The tutorial instructs setting up both a “map.ini” file and a “map.str” file. It also emphasizes ensuring all units are named and assigned to the appropriate teams first.\"},{\"question\":\"Which mission elements are defined besides scripts?\",\"answer\":\"It covers creating waypoints, area triggers, and waypoint paths, including specific named locations for camera positioning, goblin interactions, ambush attack, transfers, and patrol paths. It also includes the steps to configure the required teams in the Team Builder window.\"}]","World Builder Basic Scripting Tutorial - Mission Scripting Guide | PDF",1787220694,78,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"world-builder-basic-scripting-tutorial-mission-scripting-guide","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/technology/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/world-builder-basic-scripting-tutorial-mission-scripting-guide/133489/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-24","2026-08-20",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"What does the tutorial cover for World Builder scripting?","Question",{"text":76,"@type":77},"It introduces the scripting tool used in World Builder and focuses on the most commonly used script actions and conditions used by designers for The Battle for Middle-earth 2. It also lists scripts needed to recreate a referenced level.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"What files must be set up before scripting begins?",{"text":81,"@type":77},"The tutorial instructs setting up both a “map.ini” file and a “map.str” file. It also emphasizes ensuring all units are named and assigned to the appropriate teams first.",{"name":83,"@type":74,"acceptedAnswer":84},"Which mission elements are defined besides scripts?",{"text":85,"@type":77},"It covers creating waypoints, area triggers, and waypoint paths, including specific named locations for camera positioning, goblin interactions, ambush attack, transfers, and patrol paths. It also includes the steps to configure the required teams in the Team Builder window.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":93},[94,98,102,106,111,114,119,124,129,132,136],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":107,"doc_module":4,"doc_module_name":46,"category_name":108,"show_sort_weight":109,"slug":110},5,"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":112,"slug":113},50,"technology",{"id":115,"doc_module":4,"doc_module_name":46,"category_name":116,"show_sort_weight":117,"slug":118},7,"Healthcare",40,"healthcare",{"id":120,"doc_module":4,"doc_module_name":46,"category_name":121,"show_sort_weight":122,"slug":123},8,"Research & Report",30,"research-report",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":126,"show_sort_weight":127,"slug":128},9,"Religion & Spirituality",20,"religion-spirituality",{"id":127,"doc_module":4,"doc_module_name":46,"category_name":130,"show_sort_weight":127,"slug":131},"World Cup","world-cup",{"id":133,"doc_module":4,"doc_module_name":46,"category_name":134,"show_sort_weight":133,"slug":135},10,"Lifestyle","lifestyle",{"id":137,"doc_module":4,"doc_module_name":46,"category_name":138,"show_sort_weight":107,"slug":139},19,"General","general"]