Results 1 to 11 of 11

Thread: Shadow faction to original faction possible?

Hybrid View

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

    Default Shadow faction to original faction possible?

    I would like to script a way for the shadow faction to become the "mother" faction, once the original faction is destroyed by the rebels, but i am not sure if that is even possible with the existing scripts.

    Imagine that we have a faction called France, and a faction shadowing it called french rebels.

    Let“s say that the french rebels are very strong, and they conquer all the settlements of France. Now France doesn“t have any settlements, so she dies, the only faction left would be the victorious french rebels.

    Now what i would like to do is to interchange again the "french rebels" with the "france" faction, so that the french rebels are converted into France faction. Once the rebellion was sucessful, there is no point in having that faction called "french rebels" after that, because they have already won.

    Also, if the french rebels are left as they are, when they lose a settlement due to rebellion, the rebels will be called France (because of how shadow factions work).

    What i was thinking is if it would be possible to somehow change the victorious french rebels faction, once old France is destroyed, to become Franceagain (conserving their troops, characters etc.) and stop being the french rebels. This way when new rebels appear, they will be properly called french rebels, starting the cycle again.

    So in short i am not sure if there is any script that could be used to "resurrect" france each time the rebels win, and make the french rebels "evolve" into france after they had won.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Shadow faction to original faction possible?

    It should be possible with the set_banner command in the script.










  3. #3

    Default Re: Shadow faction to original faction possible?

    If we change the banner type for rebels(slave) then every settlement that rebels in game would be having French banner.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Shadow faction to original faction possible?

    The 'French Rebels' obviously would have to be a normal faction....










  5. #5

    Default Re: Shadow faction to original faction possible?

    Quote Originally Posted by Gigantus View Post
    The 'French Rebels' obviously would have to be a normal faction....
    Yes.

  6. #6

    Default Re: Shadow faction to original faction possible?

    Yes sorry, i didn“t explain myself well enough, both factions are meant to be normal factions, effectively using 2 factions slots (one for France, and one for his shadow faction called "french rebels". I think the name i picked is what caused the confusion).

    It have been a lot of time since i played the kingdoms britannia campaign, but if i remember correctly the english had a shadow faction called the baron“s rebels or something similar. I will have to play that campaign again and see what happens when the baron faction wipes out england.

    Gigantus thanks for the tip, but i do not recognise that command. I am relatively new to scripting and i only know the basics, i“ve looking throught alpaca“s script-o-rama but i haven“t found anything similar to the command you describe. I also ran a search but i didn“t find anything similar. Could you please explain what would that command do?, and how it would looks like?

    I was thinking about some kind of script that checked if France is dead, and if the shadow faction (french rebels) is alive, if those conditions are true then convert the french rebels to france. I“ve done some minor scripting but never something like converting one faction into another, in fact i don“t ever now if that is possible.

    I mean if there are ways to convert one faction into another, the closest thing i can think of is the kalmar union script, but those are two factions merging into a third one, and IIRC the old factios don“t come back. I am not sure how to approach this, as i haven“t see anything similar to this in any other mod (i guess because of the limited faction slots) and the closest thing i can think of is the baron“s rebels of the britannia campaign, and in barbarian invasion the romans and their shadow roman rebels factions.

  7. #7

    Default Re: Shadow faction to original faction possible?

    Nah no need to apologize i should've read the post more thoroughly.
    If u are bit familiar with scripting then u can use Baron alliance script for the purpose. It replaces England if they are not functioning well in game if i remember correctly.

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Shadow faction to original faction possible?

    Gigantus thanks for the tip, but i do not recognise that command. I am relatively new to scripting and i only know the basics, i“ve looking throught alpaca“s script-o-rama but i haven“t found anything similar to the command you describe. I also ran a search but i didn“t find anything similar. Could you please explain what would that command do?, and how it would looks like?
    Check the Kalmar Union script part in the campaign_script of the teutonic campaign, that should give you an idea how to use it.

    A great reference work is this one: M2TW Ultimate Docudemons 4.0 (that's how I got into scripting)










  9. #9

    Default Re: Shadow faction to original faction possible?

    Quote Originally Posted by Gigantus View Post
    Check the Kalmar Union script part in the campaign_script of the teutonic campaign, that should give you an idea how to use it.

    A great reference work is this one: M2TW Ultimate Docudemons 4.0 (that's how I got into scripting)
    Thank you for the link Gigantus, it was very helpful

    I“ve been playing the britannia campaign and teutonic and taking a look at their scripts to see how it works exactly. These are my observations

    -On the britannia campaign, if the baron alliance is alive, and england dies (they don“t have any regions left), then all baron settlements go rebel (grey) and the baron faction dies. I as ireland conquered these former baron settlements, and made them rebel from me, but i only got normal rebels, and england/the barons did not emerge again.

    -On the teutonic campaign, like Gigantus suggested i looked at the script and realised how the set_banner command works. Unfortunately it only changes the banner of the faction, and add a few units if you like, but it doesn“t change the name (for example, the kalmar union troops are still called danese armies, the diplomacy show the faction as denmark etc.)

    From what i“ve read the control_faction command doesn“t work, that is a pity as i had a pretty nice idea of how to solve the problem that way. I“ve never hosted any hotseat campaign, so i don“t know for sure, but do you think it would be possible to run a hotseat campaign, like it was a normal campaign? I mean by adding the hotseat information to the preferences file, it may be a work-around to make the control_faction command works in singleplayer.

    All right i will try and see if i can make it work somehow. Thanks guys for all the help.

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Shadow faction to original faction possible?

    The problem with the names results from the fact that the text data files are only read at the beginning of the game. You can't change those entries during the game.










  11. #11
    Nesimī's Avatar Protector Domesticus
    Join Date
    Apr 2010
    Location
    Konstantiniyye
    Posts
    4,766

    Default Re: Shadow faction to original faction possible?

    I think this is hardcoded in Empire
    shum

Posting Permissions

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