Page 2 of 3 FirstFirst 123 LastLast
Results 21 to 40 of 60

Thread: Scripting Ideas

  1. #21

    Default Re: Scripting Ideas

    Quote Originally Posted by Hister View Post
    Yes, HouseOfHam gave me this link with his nice tutorial of how to do this:

    http://www.twcenter.net/forums/forumdisplay.php?f=191
    I tried to adapt our script (the old Myrddraal's one) to work in background following HouseOfHam's tutorial, but I wasn't successful...

    ...maybe somebody with more scripting experience than me may volunteer to accomplish that?

    Our "four turn per year" script is named "descr_script.txt" in PI/data/scripts/show_me folder
    Last edited by Luciano B; September 03, 2008 at 01:37 PM.

    PAENINSULA ITALICA project creator

  2. #22
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Scripting Ideas

    Quote Originally Posted by Luciano B View Post
    I tried to adapt our script (the old Myrddraal's one) to work in background following HouseOfHam's tutorial, but I wasn't successful...

    ...maybe somebody with more scripying experience than me may volunteer to accomplish that?

    Our "four turn per year" script is named "descr_script.txt" in PI/data/scripts/show_me folder
    I'll take a look at it.

    Files that will need changes:
    - descr_strat.txt + campaign_script.txt (new)
    - descr_script.txt
    - export_descr_advice.txt and text/export_advice.txt

    If you've made changes to any of them since the public beta release, let me know where I can grab fresh copies.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  3. #23
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Scripting Ideas

    Great, HouseofHam you'll hear something from Luciano as soon as he comes back.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  4. #24

    Default Re: Scripting Ideas

    Quote Originally Posted by HouseOfHam View Post
    I'll take a look at it.

    Files that will need changes:
    - descr_strat.txt + campaign_script.txt (new)
    - descr_script.txt
    - export_descr_advice.txt and text/export_advice.txt

    If you've made changes to any of them since the public beta release, let me know where I can grab fresh copies.
    Thanks a lot HouseOfHam.
    Those files had remained unchanged since the beta release.

    PS: +rep
    Last edited by Luciano B; September 03, 2008 at 01:43 PM.

    PAENINSULA ITALICA project creator

  5. #25
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Scripting Ideas

    Here you go (code previously attached to this post is in the 072 hotfix)
    Last edited by HouseOfHam; September 08, 2008 at 05:58 PM.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  6. #26
    Leonidas480bc's Avatar Semisalis
    Join Date
    Oct 2004
    Location
    Dallas TX.
    Posts
    427

    Default Re: Scripting Ideas

    I am not affiliated with this mod in any way. Having said that i do have some suggestions and questions concerning scripting. I am slowly working on a script that would work with 4tpy script to announce what was currently happening in the rest of the world. It would be a quarterly news announcement. The date the event happened and the date it was announced would be determined by how far away the event took place inside as well as outside of Italy. I am still working on gathering names of notable leaders not in the game to be used as spawn in armies, in their correct start area and time. Is this something that PI would be interested in? If so Maybe HouseOfHam might help me implement the proper scripts.

  7. #27
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Scripting Ideas

    I think the effort of introducing realistic delays would over-complicate things far too much. If you use the built-in historical event announcement mechanism, you will not need to use any scripting at all.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  8. #28
    Leonidas480bc's Avatar Semisalis
    Join Date
    Oct 2004
    Location
    Dallas TX.
    Posts
    427

    Default Re: Scripting Ideas

    The delay i was speaking about was something like events in Italy would be announced next turn all others happening outside of Italy would be 2-3 turns later. Thus representing 3 months inside and 6 to 9 months later for events outside. So they would be specific turns. Easy to do i think.

  9. #29

    Default Re: Scripting Ideas

    Quote Originally Posted by HouseOfHam View Post
    Here you go.

    ps: Since the alternative campaign uses the same script as the main campaign, the same triggers are used for both in export_descr_advice.txt. If you ever decide to change the alternative campaign to something else, with its own script, you'll need to add another advice thread for the new script, with its own triggers and change both the old and new triggers to check the map name...

    Spoiler Alert, click show to read: 

    Code:
    ; old triggers
    ;------------------------------------------
    Trigger backgroundScriptTrigger1
        WhenToTest ButtonPressed
    
        Condition I_MapName PI\world\maps\campaign\barbarian_invasion\descr_strat.txt
    
        AdviceThread Background_Script_Thread  1
    
    ;------------------------------------------
    Trigger backgroundScriptTrigger2
        WhenToTest CharacterSelected
    
        Condition I_MapName PI\world\maps\campaign\barbarian_invasion\descr_strat.txt
     
          AdviceThread Background_Script_Thread  1
    
    ;------------------------------------------
    Trigger backgroundScriptTrigger3
        WhenToTest SettlementSelected
    
         Condition I_MapName PI\world\maps\campaign\barbarian_invasion\descr_strat.txt
     
         AdviceThread Background_Script_Thread  1
    
    ; new triggers
    ;------------------------------------------
    Trigger altScriptTrigger1
        WhenToTest ButtonPressed
    
        Condition I_MapName PI\world\maps\campaign\paeninsula_italica\descr_strat.txt
    
        AdviceThread Background_Script_Thread  1
    
    ;------------------------------------------
    Trigger altScriptTrigger2
        WhenToTest CharacterSelected
    
        Condition I_MapName PI\world\maps\campaign\paeninsula_italica\descr_strat.txt
     
          AdviceThread Background_Script_Thread  1
    
    ;------------------------------------------
    Trigger altScriptTrigger3
        WhenToTest SettlementSelected
    
         Condition I_MapName PI\world\maps\campaign\paeninsula_italica\descr_strat.txt
     
         AdviceThread Background_Script_Thread  1
    Thanks again, HouseOfHam

    PAENINSULA ITALICA project creator

  10. #30
    Cinuz's Avatar Senator
    Join Date
    Aug 2008
    Location
    Italy
    Posts
    1,122

    Default Re: Scripting Ideas

    Quote Originally Posted by HouseOfHam View Post
    Here you go.

    ps: Since the alternative campaign uses the same script as the main campaign, the same triggers are used for both in export_descr_advice.txt. If you ever decide to change the alternative campaign to something else, with its own script, you'll need to add another advice thread for the new script, with its own triggers and change both the old and new triggers to check the map name...

    Spoiler Alert, click show to read: 

    Code:
    ; old triggers
    ;------------------------------------------
    Trigger backgroundScriptTrigger1
        WhenToTest ButtonPressed
     
        Condition I_MapName PI\world\maps\campaign\barbarian_invasion\descr_strat.txt
     
        AdviceThread Background_Script_Thread  1
     
    ;------------------------------------------
    Trigger backgroundScriptTrigger2
        WhenToTest CharacterSelected
     
        Condition I_MapName PI\world\maps\campaign\barbarian_invasion\descr_strat.txt
     
          AdviceThread Background_Script_Thread  1
     
    ;------------------------------------------
    Trigger backgroundScriptTrigger3
        WhenToTest SettlementSelected
     
         Condition I_MapName PI\world\maps\campaign\barbarian_invasion\descr_strat.txt
     
         AdviceThread Background_Script_Thread  1
     
    ; new triggers
    ;------------------------------------------
    Trigger altScriptTrigger1
        WhenToTest ButtonPressed
     
        Condition I_MapName PI\world\maps\campaign\paeninsula_italica\descr_strat.txt
     
        AdviceThread Background_Script_Thread  1
     
    ;------------------------------------------
    Trigger altScriptTrigger2
        WhenToTest CharacterSelected
     
        Condition I_MapName PI\world\maps\campaign\paeninsula_italica\descr_strat.txt
     
          AdviceThread Background_Script_Thread  1
     
    ;------------------------------------------
    Trigger altScriptTrigger3
        WhenToTest SettlementSelected
     
         Condition I_MapName PI\world\maps\campaign\paeninsula_italica\descr_strat.txt
     
         AdviceThread Background_Script_Thread  1
    i'm sorry if i ask somethin' that is already explained in the precedent post but i have not time to read them right now so i wanted to ask what there is in this download..

  11. #31
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Scripting Ideas

    Don't worry about it. It's already included in the 072 hotfix. In fact, I'm going to remove the attachment so it doesn't confuse anyone else.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  12. #32

    Default Re: Scripting Ideas

    Scripting ideas,

    How about 'Senate missions' to reflect actual events, (as in 77BC). eg caputre of towns by year....? factions become allied or hostile etc

  13. #33
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: Scripting Ideas

    Quote Originally Posted by Donten View Post
    Scripting ideas,

    How about 'Senate missions' to reflect actual events, (as in 77BC). eg caputre of towns by year....? factions become allied or hostile etc
    Yes Donten, that would be superb. Can you or anyone else maybe code them in? I don't have a slightest clue where this could be done...


    Maybe this does not belong to scripting sector but anyway:

    At the moment we have only pagan religious belief. Correct me if I'm wrong - in total RTW BI can have 3 different religious beliefs right?
    Why not rename them to uncivilized, semi-civilized and civilized to add a kind of cultural flavor?
    Where can this be done/which files need to be renamed?
    I guess it's easy to do but adds quite a lot to the game's feel.
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

  14. #34

    Default Re: Scripting Ideas

    Hister
    I would not know where to even start. But may keep the game play from running away, as it often does.....in most variants.

  15. #35
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: Scripting Ideas

    Donten, if you are referring to my questions in last post - I've already done the culture project (3 levels of culture)! Just a few more things I need to add in edb like finish colonization buildings for remaining factions which Luciano didn't include and the culture project will be complete... It already adds a lot to the gameplay! You'll see it in next patch.
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

  16. #36

    Default Re: Scripting Ideas

    Hister,
    Outstanding!

    Keep up the good work!

    cheers

  17. #37
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Scripting Ideas

    Quote Originally Posted by Donten View Post
    Scripting ideas,

    How about 'Senate missions' to reflect actual events, (as in 77BC). eg caputre of towns by year....? factions become allied or hostile etc
    Coding the missions is not that hard, but someone has to design them first, i.e. make some detailed scenarios with dates, settlement names, spawned armies, rewards/punishments, traits, special ancillaries (like hostages), forced diplomacy, etc.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  18. #38

    Default Re: Scripting Ideas

    HoH,

    Ok, so can be done then.

    Don't spose there is a tutorial on 'how to' anywhere?

    I have a time line of events, just no idea how to put it together.

  19. #39
    Hister's Avatar Domesticus
    Join Date
    Sep 2006
    Location
    Slovenia
    Posts
    2,233

    Default Re: Scripting Ideas

    Donten, just post the time line of events here and someone will code them in.
    PROUD MEMBER OF PAENINSULA ITALICA TEAM

    For M2TW PI forum click here.
    For RTW PI forum click here.

  20. #40

    Default Re: Scripting Ideas

    Hister,

    This is a rough first draft. Hope its useful.

    348 BC Treaty of Carthage undertook to respect all Latin territory and coast towns as a Roman sphere
    of influence.
    Roman rule were to be immune from Carthaginian attack altogether, whereas allies were not.
    Roman traders and merchants were granted admission to the ports of Africa, Sardinia and Sicily, as
    well as to Carthage itself.
    Roman ships of war were to enjoy access to these ports in wars against third parties.
    Carthaginian merchants were granted access to Rome.
    Carthage was granted freedom of military action in Italy.
    334BC Rome forms a treaty with Alexander of Epirus promising not to intervene in favour of the
    Samnites. Samnites were allies of Rome at the time this was a clear breach of faith. Rome sought to
    remain neutral.
    331 BC the Gallic tribe of the Senones sued for peace.
    330 BC Alexander of Epirus was assassinated.(FYI)
    329 BC Rome takes Terracina
    327 BC Samnites establish a garrison Neapolis
    326 BC Roman laid siege to Neapolis and the Second Samnite War began
    325 BC Rome army cross to the Adriatic coast.
    315 BC Battle of Lautulae. Capua switched sides and allied with the Samnites.
    314 BC the Samnite stronghold of Luceria was conquered and made a Roman colony.Capua surrendered and
    became a Roman ally.
    312 BC Rome began construction of the Via Appia.(FYI)
    311 BC Samnite managed to rouse several allies to revolt against Rome. After fourty years of peace
    the Tarquinians and Falerians led the Etruscan revolt. Along with the Aequians and Hernicians.
    304 BC the Samnites sued for peace. Treaties were concluded all round with the Samnites, the
    Etruscans, and the minor hill tribes who had risen. The Hernicians were granted citizenship. The
    Aequians defeated.
    30? BC War with the Etruscans had brought their northern neighbours, the Umbrians, into the Roman
    sphere of influence. In a brief war the Umbrian city of Narnia was conquered and saw a Roman colony
    established in its place. Alliances with several Umbrian cities were entered into.
    298 BC Lucanians in the south of Italy approached Rome for help against the Samnites who were
    invading their territory. senate demanded the Samnites withdraw from Lucania
    296 BC the Samnites attack Campania.
    295 BC The Romans under Scipio Barbatus suffered a crushing defeat at Camerinum
    295 BC Samnites defeated at Sentinum
    294 BC Umbrian rebels, Etruscan cities and the Gauls sued for peace
    293 BC Rome attacks Samnium and at Aquilonia
    290 BC Samnites sue for peace
    284 BC an army of Etruscans and Gauls from the Senones tribe laid siege to Arretium.
    283 BC the Boii and Etruscans invaded Etruria.
    282 BC the Boii attempted yet another invasion. Failing, They sued for peace.
    Last edited by Donten; October 04, 2008 at 08:01 PM.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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