Results 1 to 6 of 6

Thread: some questions about EDB

Hybrid View

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

    Default some questions about EDB

    i ve looked in docudeamon (if the name is right) but unfortunatly i did not noticed any informations with the following questions :

    1) is it possible to make a building producing for exemple +1000 florins per turn? how?

    2) i ve seen trade bonus from buildings, but is it possible to make a building making for exemple +10% tax? how?

    3) one last question, i know how to give exp bonus to units recruited with a specific building, but what is the coding sentence i should write in order to make a bonus being "global"?


    +rep to the helpers!

    thx!!!

    "With Hate, all things are possible." Malus Darkblade

  2. #2
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: some questions about EDB

    1) is it possible to make a building producing for exemple +1000 florins per turn? how?
    put this script on campaign_scripts.txt (replace "market" by the building you want)

    Code:
    monitor_event SettlementTurnStart FactionIsLocal
        SettlementBuildingExists > market
    
    
        console_command add_money 1000
    
    end_monitor
    2) i ve seen trade bonus from buildings, but is it possible to make a building making for exemple +10% tax? how?
    just add trade bonus to "law" buildings and you're good.

    3) one last question, i know how to give exp bonus to units recruited with a specific building, but what is the coding sentence i should write in order to make a bonus being "global"?
    you can increase morale but not experience. results are quite similar though (will only work for AI)

    put this on export_descr_buildings

    Code:
    recruits_morale_bonus bonus 2 requires event_counter is_the_ai 1
    something like:

    Spoiler Alert, click show to read: 

    Code:
    building core_building
    {
        convert_to core_castle_building
        levels wooden_pallisade wooden_wall stone_wall large_stone_wall huge_stone_wall 
        {
            wooden_pallisade city requires factions { northern_european, mesoamerican, middle_eastern, eastern_european, greek, southern_european, } 
            {
                convert_to 1
                capability
                {
                    wall_level 0
                    tower_level 1
                    free_upkeep bonus 1
                    recruitment_slots 1
            recruits_morale_bonus bonus 2 requires event_counter bonus 1
                }
                material wooden
                construction  2 
                cost  600 
                settlement_min village
                upgrades
                {
                    wooden_wall
                }
            }


    and this on campaign_script

    Code:
    declare_counter bonus
    
    monitor_event PreFactionTurnStart not FactionType slave
        and FactionBuildingExists > BUILDING NAME HERE
        set_event_counter bonus 0
    end_monitor
    Last edited by Swagger; June 09, 2011 at 11:16 AM.
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  3. #3

    Default Re: some questions about EDB

    thank you! + rep

    about the +1000 florins a turn trick, will this be written on the building description screen in game? (when you right click the icon) i hope so

    Concerning the tax bonus question, i ve seen someone adding : taxable_income_bonus 10 (for 10%)
    do you confirm it working or do you think it is a mistake? in that case i ll do your trick but since you have more experience with coding i need your opinion mate.

    thank you a lot for your help!!

    "With Hate, all things are possible." Malus Darkblade

  4. #4
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: some questions about EDB

    about the +1000 florins a turn trick, will this be written on the building description screen in game? (when you right click the icon) i hope so
    you've to write it in the text files, export_buildings

    find the description of the building and write it up

    Concerning the tax bonus question, i ve seen someone adding : taxable_income_bonus 10 (for 10%)
    do you confirm it working or do you think it is a mistake? in that case i ll do your trick but since you have more experience with coding i need your opinion mate.
    might work, might not, i for one don't know it even exists.. it's just a matter of trying


    trade bonus won't work much different (as for +% of money revenue)
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  5. #5

    Default Re: some questions about EDB

    you might be right, better to use tricks if we are sure it works than expecting results from unproven formulas.

    just to be sure about the campaign_script modification, you said :

    monitor_event SettlementTurnStart FactionIsLocal
    SettlementBuildingExists > [NAME OF THE BUILDING]


    console_command add_money 1000

    end_monitor


    where should i put it? anywhere? i wanna be sure and don't mess anything, please simply take a look at the file attached.


    best regards

    "With Hate, all things are possible." Malus Darkblade

  6. #6
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: some questions about EDB

    put it a few lines below an "end_monitor" line
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


Posting Permissions

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