Results 1 to 3 of 3

Thread: Noob DB Building Recruitment

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Noob DB Building Recruitment

    Okay, total noob with nothing but the file pack manager, here.

    I would like to build a simple mod that makes building-->recruitment progressions for certain factions (*cough* *barbarians* *cough*) more sequential. For example, X building level 1 gives me a level 1 spearmen, level two gives a level two spearman, level 3 building level 3 spearman, lv.4 lvl 3 spearman +1 exp, etc.

    Which database do I go to to modify unit output from buildings, and how should I go about changing it without breaking stuff?

    Thanks.

  2. #2
    Inevitability won
    Patrician Citizen

    Join Date
    Mar 2010
    Posts
    9,594

    Default Re: Noob DB Building Recruitment

    You want the "building_units_allowed" table, I'd explain in much greater detail but you'll be able to tell what it does instantly. Here's a quick run down.

    For each record you have a building ID, a unit ID and an XP amount. (There are more fields but they are not important here)

    So if as you put it building X to recruit spear units, your table would look like:

    building ID, unit ID, experience
    building_X_1, spearUnit_lvl1, 0
    building_X_2, spearUnit_lvl2, 0
    building_X_3, spearUnit_lvl3, 0
    building_X_4, spearUnit_lvl3, 1

  3. #3

    Default Re: Noob DB Building Recruitment

    Thanks! Where do I go to change public order penalties?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •