Results 1 to 14 of 14

Thread: Working Transfer Region script

  1. #1
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Working Transfer Region script

    I've done a simple script to transfer a certain region to a certain faction on certain conditions.

    Honestly, I have no idea what to do with it (besides being a moddable cheating script)

    I won't release it as it is, but anyone who knows something about scripting is able to reproduce it simply by using
    scripting.game_interface:transfer_region_to_faction("xxregion", "xxfaction")

    If someone has some ideas regarding how to do something interesting with this, I'm all ears

  2. #2
    Leonardo's Avatar Reborn Old Timer
    Join Date
    Mar 2011
    Location
    Southern Sweden
    Posts
    5,245

    Default Re: Working Transfer Region script

    Quote Originally Posted by Jake Armitage View Post
    If someone has some ideas regarding how to do something interesting with this, I'm all ears
    How about using your script in a diplomacy mod?

    Or release it as a resource.
    Under patronage of General Brewster of the Imperial House of Hader.





    How to make Morrowind less buggy for new players - Of course every player may find it useful.

  3. #3
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: Working Transfer Region script

    As it is now it will need custom adaptations regarding the region and the faction.
    So it could be used as a cheating pack by people whon knows something about modding.

    Honestly, there is no need for it as a resource, cause anyone who knows a bit about scripting can just use the
    scripting.game_interface:transfer_region_to_faction("xxregion", "xxfaction")
    My script is 4 lines long, nothing else.

    I'm not the kind of guy to hide or protect something, it just would be a useless release as it is now.

    Reason why I posted it here (we are already discussing it between DeI's devs) is to find people and ideas regarding a complete script that any user may use in-game as a new feature.

  4. #4
    Leonardo's Avatar Reborn Old Timer
    Join Date
    Mar 2011
    Location
    Southern Sweden
    Posts
    5,245

    Default Re: Working Transfer Region script

    I think it would be beneficial for new modders.
    Under patronage of General Brewster of the Imperial House of Hader.





    How to make Morrowind less buggy for new players - Of course every player may find it useful.

  5. #5
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: Working Transfer Region script

    Yeah, at some point I'll do that, it's just too early.

    If someone has some ideas regarding how to do something interesting with this, I'm all ears, both conceptually and technically.

  6. #6
    Commissar Caligula_'s Avatar The Ecstasy of Potatoes
    Join Date
    Dec 2013
    Location
    The alcoves in the Koningin Astridpark
    Posts
    5,876

    Default Re: Working Transfer Region script

    There's also this mod if you wanted to take apart their script and see how they did it. https://steamcommunity.com/sharedfil...?id=1082974790



  7. #7
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: Working Transfer Region script

    Yeah I know, thx, but I fear the UI part won't be adaptable for Rome 2.

  8. #8
    Morticia Iunia Bruti's Avatar Praeses
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    8,405

    Default Re: Working Transfer Region script

    Perhaps: If you conquer Sicily, they make peace with you and cede Sardinia and Corsica to you?

    So an idea out of the blue.^^
    Cause tomorrow is a brand-new day
    And tomorrow you'll be on your way
    Don't give a damn about what other people say
    Because tomorrow is a brand-new day


  9. #9
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: Working Transfer Region script

    Who, carthago?
    yes that's really easy to do

  10. #10
    Morticia Iunia Bruti's Avatar Praeses
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    8,405

    Default Re: Working Transfer Region script

    Yeah for example.
    Cause tomorrow is a brand-new day
    And tomorrow you'll be on your way
    Don't give a damn about what other people say
    Because tomorrow is a brand-new day


  11. #11

    Default Re: Working Transfer Region script

    I do think it would be insertable with the regions trade. The question would be, does the AI also weigh up how valuable the required region is or would that be a script where she says yes and amen to everything?

  12. #12
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: Working Transfer Region script

    I will do a tranfer region feature using the virtual points system.
    Honestly, I really prefer a RPG feature where you'll have to station one of your dignitary and try to reach the threshold range rather than a yes/no button (too arcadish imo).
    I have a couple of ideas about how to do this, but I won't start doing it soonish.
    Everything will be via script there's no other way at all.
    https://www.twcenter.net/forums/show...8#post15640878
    Last edited by Jake Armitage; July 02, 2019 at 05:21 AM.

  13. #13

    Default Re: Working Transfer Region script

    Well, thanks for the share. This might come in very handy for people trying to edit the start of the GC, without hacking any of the original DeI table files, so one just makes sure to fire the script after everything else was initialized. I might point out the question, would something like this be possible?

    scripting.game_interface:transfer_unit_to_faction("xxunit", "xxfaction")
    scripting.game_interface:transfer_character_to_faction("xxcharacter", "xxfaction")

  14. #14
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: Working Transfer Region script

    This might come in very handy
    yes you can differently assign regions via script and also erase an eventual army in that region

    would something like this be possible?
    well, 100% no...

    the rome 2 lua functions are here
    http://www.mediafire.com/file/96nv9z..._v1.0.ods/file

    and the wiki to find how they work is the attila one, since CA never released it for Rome 2 (so you'll have to pick the function from the excel file and see how it works in the attila wiki by doing a "search" command into notepad)
    http://www.mediafire.com/file/ibimjj..._wiki.txt/file

Posting Permissions

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