Death Regions

1. In ZE go into Region Edit Mode and click on New Region.

2. Then place it and scale it to the size you want.

3. Then click on Select Region and click on the region you just placed.

4. You can leave the Region ID name the default name if you want.

The Class Properties name is the one that gets loaded from the LUA, names are arbitrary and you can name it whatever you want, i'll just use "ace" for this example.

Save and close ZE.

5. Open your LUA (e.g. ABCc_con.lua) and add this line:

AddDeathRegion("ace")

then save, munge and play!

Notes:

In the LUA i've always loaded them from the bottom of function ScriptPostLoad() right before end and they always worked, like this:

conquest:Start()

   
    EnableSPHeroRules()
   
    AddDeathRegion("ace")
       
 end

but you could load them in function ScriptInit() if you want, i've seen a couple of shipped lua scripts with them added that way too, for example kam1c_con.lua.

You can add as many deathregions as you want and place them in any layer, the important thing is the name that you gave your region in the Class Properties input field.

You'll need an AddDeathRegion line in your LUA for each deathregion you place in ZE.

Death regions are very efficient, they will kill you instantly when you enter them, even if you drive or fly a vehicle into them.