• 0
SimonJ110

CfgBuilding loot table call

Question

Hi Guys,

In CfgBuildings, Can I have more than one table?

	class Building
	{
	    //original
	    table = "CivillianLowerClass";
	    
	    //posible change to
		table[] = ["CivillianLowerClass","additionaltable"];
		
		
		positions[] = {{0.482422, 0.65625, -0.867858}, {3.08984, -1.2832, -0.867858}};
	};


CHEERS FELLAS!
 

Share this post


Link to post
Share on other sites

7 answers to this question

  • 1

You can. You must define the class before referencing it like that though. Somehow I've lost where I put the loot compiler, but it would have to be defined in there before you run the loot compiler. If the loot compiler doesn't run, then simply add your items with your desired loot chances to another table, run the compiler, then copy that block to your custom table; viola.

1 person likes this

Share this post


Link to post
Share on other sites
  • 1

It may be easier to just set all the loot how you want it (without your mods) run the loot compiler, save that file. Then go back into the loottable.h and take everything out of civlowerclass, replace it with your mod items, re run compiler, pull out that block from the compiled loot table rename the class for civlowerclass to something like moditems or whatever, copy it into your first file and should be good to pbo, mind you your cfgbuildingloot block in config.cpp of exile_server_config will need to be changed to reflect what ever new class you added.

Share this post


Link to post
Share on other sites
Advertisement
  • 0

You could just add the additional items you want to spawn in CivilianLowerClass. Theres a loot configuration tool somewhere around here that you can use to modify the loot table to add/remove items and set rarity of spawn.

Share this post


Link to post
Share on other sites
  • 0

You could just add the additional items you want to spawn in CivilianLowerClass. Theres a loot configuration tool somewhere around here that you can use to modify the loot table to add/remove items and set rarity of spawn.

Was planning on keeping all the different addons separate and adding them in their own table so I knew where they are.

Cheers for all your answers guys!! It is appreciated!

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.