| 
 
 
 
	
	
		
			|   | Page 1 of 1 
 | [ 4 posts ] |  |  
        
        
            | Author | Message |  
			| Dex98 
					Joined: Thu Jan 05, 2012 8:18 am
 Posts: 76
 Location: In a Sauna, roasting to death
   |   Custom SkirmishI 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?
 
 
 |  
			| Sun May 13, 2012 10:00 am | 
					
					   |  
		|  |  
			| Asklar Data Realms Elite 
					Joined: Fri Jan 07, 2011 8:01 am
 Posts: 6211
 Location: In your office, earning your salary.
   |   Re: Custom SkirmishIt'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.
 
 |  
			| Sun May 13, 2012 11:15 pm | 
					
					   |  
		|  |  
			| Dex98 
					Joined: Thu Jan 05, 2012 8:18 am
 Posts: 76
 Location: In a Sauna, roasting to death
   |   Re: Custom SkirmishAsklar 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 = {};
 
 
 |  
			| Mon May 14, 2012 8:31 pm | 
					
					   |  
		|  |  
			| Asklar Data Realms Elite 
					Joined: Fri Jan 07, 2011 8:01 am
 Posts: 6211
 Location: In your office, earning your salary.
   |   Re: Custom SkirmishWell, 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.
 
 |  
			| Mon May 14, 2012 10:33 pm | 
					
					   |  
		|  |  
		|  |  
	
		
			|   | Page 1 of 1 
 | [ 4 posts ] |  |  
 
	
		| Who is online |  
		| Users browsing this forum: No registered users |  
 
	|  | You cannot post new topics in this forum You cannot reply to topics in this forum
 You cannot edit your posts in this forum
 You cannot delete your posts in this forum
 You cannot post attachments in this forum
 
 |  
 |