Results 1 to 15 of 15

Thread: Adding new temple

Threaded View

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

    Default Re: Adding new temple

    Need help.

    I have been trying to add a new temple to ALL factions.
    It is called following_of_yehovah

    I would like to make a new category of buildings, it'll be called a "following" rather than a temple.
    And there will only be one type, following_of_yehovah

    I copied the code from another temple code, so the spacings and the brackets should have no problems at all. The only things I changed are the names at different levels, and the bonuses.

    Code:
    building following_of_yehovah
    {
        levels following_of_yehovah1 
                following_of_yehovah2
                following_of_yehovah3
                following_of_yehovah4
                following_of_yehovah5
        {
            following_of_yehovah1 requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 2
                    law_bonus bonus 1
                }
                construction  1 
                cost  400 
                settlement_min town
                upgrades
                {
                    following_of_yehovah2
                }
            }
            following_of_yehovah2 requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 3
                    law_bonus bonus 2
                }
                construction  2 
                cost  800 
                settlement_min large_town
                upgrades
                {
                    following_of_yehovah3
                }
            }
            following_of_yehovah3 requires factions {barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 4
                    law_bonus bonus 4
                }
                construction  3 
                cost  1600 
                settlement_min city
                upgrades
                {
                    following_of_yehovah4
                }
            }
            following_of_yehovah4 requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 5
                    law_bonus bonus 5
                }
                construction  5 
                cost  3200 
                settlement_min large_city
                upgrades
                {
                    following_of_yehovah5
                }
            }
            following_of_yehovah5 requires factions {barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } 
            {
                capability
                {
                    happiness_bonus bonus 8
                    law_bonus bonus 8
                }
                construction  6 
                cost  6400 
                settlement_min huge_city
                upgrades
                {
                }
            }
        }
        plugins 
        {
        }
    }
    ----------------------------------------
    Then in export_buildings, I add:

    {following_of_yehovah1} "title"
    {following_of_yehovah1_desc} "..."
    {following_of_yehovah1_desc_short} "..."
    {... and so on until level 5 ... }

    and also, for the entire category:
    {following_of_yehovah_name} The following of Yehovah, the LORD God

    ----------------------------
    Since this is a brand-new building, is there any other files that I need to edit (other than the ones mentioned above)?
    Especially, do I need to add some lines in building_battle.txt ?

    Am I supposed to add
    {following_of_yehovah1} Shrine
    {following_of_yehovah2} Temple
    {following_of_yehovah3} Temple
    {following_of_yehovah4} Temple
    {following_of_yehovah5} Temple


    I would like to be able to build this temple of Yehovah as any faction, Julii, Scipii, Brutii, Gauls... whatever. But each city can only have one temple building. If I create a totally new category of building called "following", how will the campaign AI know that it is a temple building, and once it is built, exclude the other temples from being built?

    Or is the game hardcoded to only consider the buildings with names starting with the word "temple" to be in the temple category?

    This is for modding the vanilla RTW.
    Last edited by ThePianist; 11-21-2009 at 01:55.
    Finished EB campaigns:
    Sweboz 1.0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO