
These commands can be looked up in Petroglyph's Story Scripting Tutorial that comes with the The Event Type and Reward Type tags contain commands that determine the general behavior of Now that we are done with that we can talk about the story events we are going to add.Ī basic story event consists of an Event Type, Event Parameters, a Reward Type and Reward Only the three main factions can use plot files, since there are only the three tags mentionedįourth faction you cannot use plot files and therefore no story events with it.įirst step: Let's create our story file "Story_Example.XML" and set up the basic XML structures: To link your plot file to one of the three main factions simply put the name of the plot file in the
#Star wars empire at war guide code
The GC code (found in Campaigns_Underworld_GC.xml if you aren't using a custom GC file) with Now we still need to create the link between the GC and your plot file. Requires you to add the file extension ".XML". Moreover, you must NOT add the file extension ".lua" in the tag. It is important that the Lua_Script tag is always ABOVE the Active_Plot tag, otherwise the game Lua_Script and Active_Plot hold the names of the Lua script or story files. Now open the XML file and add the following the code: So, let's create a XML file and call it "Story_Plot_Example.XML". The first step to start a story campaign (or even a simple GC if you want to spawn heroes) is to Moreover, LUA allows more control over the game, since it is not entirely limited by premadeĢ.1 GC implementation and Plot file structure So, LUA files contain LUA scripts that can support story events in GCs or during missions. LUA is a scripting language that is often used as a support language in games. Story files are XML files that contain story events.

Plot files are XML files that create the links between the GC, the story files and LUA files.

(for example spawning a unit, changing planet control etc.)ġ.3 Plot files, Story files and LUA files Story events that are triggered troughout the course of the GC.Ī story event is a piece of XML code that triggers when certain conditions are met and then performs a specified action The difference between a normal GC and a story campaign are However, I am assuming that you have good knowledge of all of EaW's XML structures, so if you are still struggling with adding units, or creatingĬustom Galactic Conquests this guide is not for you, yet.Ī story campaign is basically a simple galactic conquest(GC). Moreover, if you have completely understood everything I'm going to teach you here you will be able to add your own unique gameplay features to Empire at War. This guide is supposed to give you all the information you need to create your own story campaign. I felt like it was time to redo my old event scripting tutorials and add some more context.
