Data Realms Fan Forums
http://forums.datarealms.com/

Custom Skirmish
http://forums.datarealms.com/viewtopic.php?f=8&t=30988
Page 1 of 1

Author:  Dex98 [ Sun May 13, 2012 10:00 am ]
Post subject:  Custom Skirmish

I Thought it was time for me to begin learning basic scene making, so i thought i'd make a custom skirmish mission.
How do you modify a skirmish to only spawn unarmed zombies/skeletons?

Author:  Asklar [ Sun May 13, 2012 11:15 pm ]
Post subject:  Re: Custom Skirmish

It's easy.

In base.rte, inside the activities folder, there is a lua file called "SkirmishDefense".
Open it, and you will find a block which looks like this:

Code:
    self.factionA = "Coalition.rte";
    self.factionAActorList = {"Soldier Light", "Soldier Heavy"};
    self.factionACrabList = {"Gatling Drone"};
    self.factionAPrimaryWeaponList = {"Compact Assault Rifle", "Assault Rifle", "Shotgun", "Auto Shotgun", "Breaker-GL", "Gatling Gun", "Sniper Rifle", "Heavy Sniper Rifle", "Flamer", "Auto Cannon", "Revolver Cannon", "Flak Cannon"};
    self.factionASecondaryWeaponList = {"Pistol", "Auto Pistol", "Heavy Pistol"};

    self.factionB = "Dummy.rte";
    self.factionBActorList = {"Dummy"};
    self.factionBCrabList = {"Dreadnought"};
    self.factionBPrimaryWeaponList = {"Blaster", "Nailer Cannon", "Scouting Rifle", "Impulse Cannon", "Repeater", "Destroyer Cannon", "Annihiliator"};
    self.factionBSecondaryWeaponList = {"Nailgun", "Rail Pistol"};

    self.factionC = "Ronin.rte";
    self.factionCActorList = {"Dafred", "Mia", "Dimitri", "Brutus", "Sandra", "Gordon"};
    self.factionCCrabList = {};
    self.factionCPrimaryWeaponList = {"AK-47", "M16", "Shortgun", "Pumpgun", "Spas 12", "Kar98", "M1 Garand", "M60", "Thumper", "RPG-7"};
    self.factionCSecondaryWeaponList = {"Glock", "Desert Eagle", "Peacemaker", "Uzi"};


Well, in that part you script what you want to appear in the skirmish. Also, note that this is the lua way to do skirmishes, because back then activities were made with ini. You can take a look at the activities of older mods, like AAL, it has activities coded in ini.


Now, this is the simplest way to create your own skirmish; there are many other ways to customize it a lot.

Author:  Dex98 [ Mon May 14, 2012 8:31 pm ]
Post subject:  Re: Custom Skirmish

Asklar wrote:
It's easy.

In base.rte, inside the activities folder, there is a lua file called "SkirmishDefense".
Open it, and you will find a block which looks like this:

Code:
    self.factionA = "Coalition.rte";
    self.factionAActorList = {"Soldier Light", "Soldier Heavy"};
    self.factionACrabList = {"Gatling Drone"};
    self.factionAPrimaryWeaponList = {"Compact Assault Rifle", "Assault Rifle", "Shotgun", "Auto Shotgun", "Breaker-GL", "Gatling Gun", "Sniper Rifle", "Heavy Sniper Rifle", "Flamer", "Auto Cannon", "Revolver Cannon", "Flak Cannon"};
    self.factionASecondaryWeaponList = {"Pistol", "Auto Pistol", "Heavy Pistol"};

    self.factionB = "Dummy.rte";
    self.factionBActorList = {"Dummy"};
    self.factionBCrabList = {"Dreadnought"};
    self.factionBPrimaryWeaponList = {"Blaster", "Nailer Cannon", "Scouting Rifle", "Impulse Cannon", "Repeater", "Destroyer Cannon", "Annihiliator"};
    self.factionBSecondaryWeaponList = {"Nailgun", "Rail Pistol"};

    self.factionC = "Ronin.rte";
    self.factionCActorList = {"Dafred", "Mia", "Dimitri", "Brutus", "Sandra", "Gordon"};
    self.factionCCrabList = {};
    self.factionCPrimaryWeaponList = {"AK-47", "M16", "Shortgun", "Pumpgun", "Spas 12", "Kar98", "M1 Garand", "M60", "Thumper", "RPG-7"};
    self.factionCSecondaryWeaponList = {"Glock", "Desert Eagle", "Peacemaker", "Uzi"}; self.factionA = "Undead.rte";


Well, in that part you script what you want to appear in the skirmish. Also, note that this is the lua way to do skirmishes, because back then activities were made with ini. You can take a look at the activities of older mods, like AAL, it has activities coded in ini.


Now, this is the simplest way to create your own skirmish; there are many other ways to customize it a lot.



So, if i'd want to do a zombie apocalypse skirmish, i'd only need to do this?

Code:
    self.factionA = "Undead.rte"
    self.factionAActorList = {"Zombie Thin", "Zombie Medium", "Zombie Fat", "Skeleton"};
    self.factionACrabList = {};
    self.factionAPrimaryWeaponList = {};
    self.factionASecondaryWeaponList = {};

Author:  Asklar [ Mon May 14, 2012 10:33 pm ]
Post subject:  Re: Custom Skirmish

Well, if you look a bit further in the code, you will see:
Code:
    self.moduleList = {self.factionA, self.factionB, self.factionC};
    self.actorList = {self.factionAActorList, self.factionBActorList, self.factionCActorList};
    self.crabList = {self.factionACrabList, self.factionBCrabList, self.factionCCrabList};
    self.primaryWeaponList = {self.factionAPrimaryWeaponList, self.factionBPrimaryWeaponList, self.factionCPrimaryWeaponList};
    self.secondaryWeaponList = {self.factionASecondaryWeaponList, self.factionBSecondaryWeaponList, self.factionCSecondaryWeaponList};


You'd have to delete all the other factions you aren't using, and so, the list would be:

Code:
    self.moduleList = {self.factionA};
    self.actorList = {self.factionAActorList};
    self.crabList = {self.factionACrabList};
    self.primaryWeaponList = {self.factionAPrimaryWeaponList};
    self.secondaryWeaponList = {self.factionASecondaryWeaponList};



Alternatively, you could create your own skirmish completely from scratch.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/