Results 1 to 10 of 10

Thread: question for coders

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default question for coders

    i have a several questions about senate system in RTW.

    1, is senate system hardcoded only for RTW or is possible to add it in BI ? (senate - in BI another faction - as superfaction, several factions "under" superfaction as Romanīs families - in BI another factions.
    2, are misions from senate hardcoded only for senate ? or is possible to code misions for another "superfaction" ?

    some guys gived me some answers, but not exactly, so is here anybody who knows it ? thanks.
    sorry my english.

  2. #2

    Default Re: question for coders

    I know it is possible to put the senate into BI, but you will have to rename one faction romans_senate, and set up descr_sm_factions similar to RTW, (senate is like third from the top or something). AFAIK, missions will be given only by the superfaction named romans_senate, because of certain hardcodes. However, you don't have to make the senate or its subfactions Roman. the only downside to that is you won't have a senate tab then.

    If you check out my mod (link in signature), you can see much of this put into action.

    Expand your borders, a mod based on XGM 5.

  3. #3
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: question for coders

    thatīs great . thanks.
    some more questions, than:
    1, where are (in which file) misions defined ?
    2, is any system for giving misions by senate ? (which faction must capture any settlement, which faction must blokade any port, assassinate misions and so on) ?
    3, if i good understand, when i donīt add culture Romans, i will have not "senate - goverment, noblemen board" ? so memebers of factions "under superfaction" can not be in "senate - goverment, noblemen board...) ?
    4, and is possible to have "popularity" in BI for attacking "superfaction ?

    many questions, i know...

    btw. iīve look at your EC, nice idea but i can do something different.
    Last edited by Keyser Soze; May 18, 2009 at 12:20 PM.
    sorry my english.

  4. #4

    Default Re: question for coders

    1, where are (in which file) misions defined ?
    2, is any system for giving misions by senate ? (which faction must capture any settlement, which faction must blokade any port, assassinate misions and so on) ?
    1.I think the missions are hard-coded ?
    2. Well , you can always "make" missions by scripts .. For instance , you would have an advisor that pops up to tell you to conquer Segesta .. Then , when you conquered it , you'd get a bonus For instance :

    In background_script
    Code:
    script
    
    monitor_event FactionTurnStart FactionIsLocal
       and I_TurnNumber = 5
    
    advance_advise_thread mission1
    
    end_monitor
    end_script
    So , at turn 4 (as turn "0" is also seen in-game as turn number 1) , there should an advisor who pops up .. You can choose wichever message etc. it is .. Then , as final script (in a default new text document)

    Code:
    script
    
    monitor_event FactionturnStart FactionIsLocal
       and I_SettlementOwner Segesta = saxons (or any other faction)
    
       console_command add_money saxons 1000
    
    terminate_monitor
    end_monitor
    end_script
    Thus , this script will add 1000 denarii to the saxons whenever they control Segesta There may be some inaccuracies in previous scripts , though ..

  5. #5
    Keyser Soze's Avatar Domesticus
    Join Date
    Jul 2008
    Location
    Bratislava
    Posts
    2,437

    Default Re: question for coders

    thanks King Theoden 1

    and
    1, if i have more factions under superfaction, how i can do which mission is for which faction ?
    2, do you think is possible to do something as in M2TW, that if you are in war with any faction Pope send you "mission" - end the war ?
    3, or do - send emisary to faction XY ?
    sorry my english.

  6. #6

    Default Re: question for coders

    1, if i have more factions under superfaction, how i can do which mission is for which faction ?
    You can just copy-paste the scripts , and change the factions

    So , like this :

    Before :
    Spoiler Alert, click show to read: 
    Code:
    script
    
    monitor_event FactionturnStart FactionIsLocal
       and I_SettlementOwner Segesta = saxons (or any other faction)
    
       console_command add_money saxons 1000
    
    terminate_monitor
    end_monitor
    end_script


    After :
    Spoiler Alert, click show to read: 
    Code:
    script
    
    monitor_event FactionturnStart FactionIsLocal
       and I_SettlementOwner Segesta = goths (or any other faction)
    
       console_command add_money saxons 1000
    
    terminate_monitor
    end_monitor
    end_script


    As i'm not really into M2TW modding , i don't really know bout your other questions

  7. #7

    Default Re: question for coders

    Quote Originally Posted by Keyser Soze View Post
    thatīs great . thanks.
    some more questions, than:
    1, where are (in which file) misions defined ?
    2, is any system for giving misions by senate ? (which faction must capture any settlement, which faction must blokade any port, assassinate misions and so on) ?
    3, if i good understand, when i donīt add culture Romans, i will have not "senate - goverment, noblemen board" ? so memebers of factions "under superfaction" can not be in "senate - goverment, noblemen board...) ?
    4, and is possible to have "popularity" in BI for attacking "superfaction ?

    many questions, i know...

    btw. iīve look at your EC, nice idea but i can do something different.
    1. Like KingTheoden said, I believe the mission type are hardcoded, though you may be able to edit how often certain missions come up, and I'm certain you can edit rewards at least slightly. Everything for the senate should be in descr_senate, which you'll need to copy from RTW for BI.
    2. I think it is at random, though as I said above, you should be able to modify likelyhood of each type of mission.
    3. Even if the sub-factions aren't of Roman culture, they will still get offices, but there will not be a tab to look at popularity, offices, and missions.
    4. Popularity is part of the senate coding, so yes, popularity will be present.

    Quote Originally Posted by Keyser Soze View Post
    thanks King Theoden 1

    and
    1, if i have more factions under superfaction, how i can do which mission is for which faction ?
    2, do you think is possible to do something as in M2TW, that if you are in war with any faction Pope send you "mission" - end the war ?
    3, or do - send emisary to faction XY ?
    1. The first three factions (other than the senate) in descr_sm_factions get the missions. No other faction will get missions.
    2. I don't think those missions occur in RTW.
    3. These missions do occur however.

    Thank you for the compliment, Keyser Soze. Good luck in your modding.

    Expand your borders, a mod based on XGM 5.

  8. #8

    Default Re: question for coders

    Unfortunately, I am not familiar with scripting. However, there are many excellent tutorials in the mod workshop. I imagine that there is at least one that briefly discusses scripted missions.

    Expand your borders, a mod based on XGM 5.

Posting Permissions

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