Results 1 to 11 of 11

Thread: Civil Wars????

Hybrid View

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

    Default Civil Wars????

    What i was thinking of adding to my mod im creating is increased possibility of a civil war occurring when a leader dies. basically when the heir takes over and his brothers loyalty is 5 or lower (or ever drops to 5 or lower) then it increases his chances of rebelling and starting a civil war. also i don't just want the game to simply turn them into a rebel. i would like them to stay as part of the faction and if he wins he becomes the leader of the faction. i've played M2TW for years and have only ever seen one rebelling sibling. i would like to set it so that the lower the loyalty the higher the chance of rebelling. maybe if it's possible flip the rebelling characters banner colors so that they can be identified easier. example: hre normal flag is black with yellow logo, flip it to yellow with black logo. if any of this is at all possible i am asking for help in achieving all this as i think it would really be a lot more true to history. thank you in advance for any help.

  2. #2

    Default Re: Civil Wars????

    this would be a good place to start

    http://www.twcenter.net/forums/showthread.php?t=256587


  3. #3

    Default Re: Civil Wars????

    thank you. i sent a message to the creator of that mod. anything else in the meantime would be much appreciated...

  4. #4
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Civil Wars????

    I believe for the revolter not to be the Rebels, you would have to use another faction slot, shadow faction. Like the BA script from Britannia. BA can spawn when a new FL comes to be or if his authority becomes to low.

    Spoiler Alert, click show to read: 
    Code:
    	;check when England gets a new faction leader
    	monitor_event BecomesFactionLeader FactionType england
    		and I_NumberOfSettlements england > 15
    		and I_CompareCounter ba_first_emergence = 1
    		and I_NumberOfSettlements barons_alliance = 0
    		and I_EventCounter ba_last_spawn_timer > 10
    		
    		faction_emerge barons_alliance england 6 70.0 140.0 0.85 town false
    		
    		if I_NumberOfSettlements barons_alliance > 0
    			set_event_counter ba_last_spawn_timer 0
    			historic_event barons_reemerge_new_king
    			add_money barons_alliance 10000
    		end_if	
    		
    	end_monitor
    	
    	;check when English leaders authority is low
    	monitor_event FactionTurnEnd FactionType england
    		and I_NumberOfSettlements england > 15
    		and I_CompareCounter ba_first_emergence = 1
    		and I_NumberOfSettlements barons_alliance = 0
    		and I_EventCounter ba_last_spawn_timer > 10
    		
    		generate_random_counter	authority_value 1 100
    		
    		
    		;the lower the faction leaders authority, the greater the chance of the barons_alliance appearing
    		if I_FactionLeaderAttribute england Authority = 0
    		
    			if I_EventCounter authority_value <= 33
    				faction_emerge barons_alliance england 5 50.0 145.0 0.9 town false
    			end_if
    		
    		end_if
    		
    		if I_FactionLeaderAttribute england Authority = 1
    		
    			if I_EventCounter authority_value <= 25
    				faction_emerge barons_alliance england 6 60.0 135.0 0.9 town false
    			end_if
    		
    		end_if
    		
    		if I_FactionLeaderAttribute england Authority = 2
    		
    			if I_EventCounter authority_value <= 20
    				faction_emerge barons_alliance england 6 65.0 130.0 0.85 town false
    			end_if
    		
    		end_if
    		
    		if I_FactionLeaderAttribute england Authority = 3
    		
    			if I_EventCounter authority_value <= 15
    				faction_emerge barons_alliance england 6 70.0 120.0 0.85 town false
    			end_if
    		
    		end_if
    		
    		if I_FactionLeaderAttribute england Authority = 4
    		
    			if I_EventCounter authority_value <= 10
    				faction_emerge barons_alliance england 6 80.0 120.0 0.85 town false
    			end_if
    		
    		end_if
    		
    		if I_FactionLeaderAttribute england Authority = 5
    		
    			if I_EventCounter authority_value <= 5
    				faction_emerge barons_alliance england 6 85.0 120.0 0.85 town false
    			end_if
    		
    		end_if	
    		
    		if I_NumberOfSettlements barons_alliance > 0
    			set_event_counter ba_last_spawn_timer 0
    			historic_event barons_reemerge_poor_king
    			add_money barons_alliance 10000
    		end_if	
    		
    	end_monitor


    Hope this points you in the right direction.

    VB

  5. #5

    Default Re: Civil Wars????

    Quote Originally Posted by Vegas_Bear View Post
    I believe for the revolter not to be the Rebels, you would have to use another faction slot, shadow faction. Like the BA script from Britannia. BA can spawn when a new FL comes to be or if his authority becomes to low.

    Spoiler Alert, click show to read: 
    Code:
        ;check when England gets a new faction leader
        monitor_event BecomesFactionLeader FactionType england
            and I_NumberOfSettlements england > 15
            and I_CompareCounter ba_first_emergence = 1
            and I_NumberOfSettlements barons_alliance = 0
            and I_EventCounter ba_last_spawn_timer > 10
            
            faction_emerge barons_alliance england 6 70.0 140.0 0.85 town false
            
            if I_NumberOfSettlements barons_alliance > 0
                set_event_counter ba_last_spawn_timer 0
                historic_event barons_reemerge_new_king
                add_money barons_alliance 10000
            end_if    
            
        end_monitor
        
        ;check when English leaders authority is low
        monitor_event FactionTurnEnd FactionType england
            and I_NumberOfSettlements england > 15
            and I_CompareCounter ba_first_emergence = 1
            and I_NumberOfSettlements barons_alliance = 0
            and I_EventCounter ba_last_spawn_timer > 10
            
            generate_random_counter    authority_value 1 100
            
            
            ;the lower the faction leaders authority, the greater the chance of the barons_alliance appearing
            if I_FactionLeaderAttribute england Authority = 0
            
                if I_EventCounter authority_value <= 33
                    faction_emerge barons_alliance england 5 50.0 145.0 0.9 town false
                end_if
            
            end_if
            
            if I_FactionLeaderAttribute england Authority = 1
            
                if I_EventCounter authority_value <= 25
                    faction_emerge barons_alliance england 6 60.0 135.0 0.9 town false
                end_if
            
            end_if
            
            if I_FactionLeaderAttribute england Authority = 2
            
                if I_EventCounter authority_value <= 20
                    faction_emerge barons_alliance england 6 65.0 130.0 0.85 town false
                end_if
            
            end_if
            
            if I_FactionLeaderAttribute england Authority = 3
            
                if I_EventCounter authority_value <= 15
                    faction_emerge barons_alliance england 6 70.0 120.0 0.85 town false
                end_if
            
            end_if
            
            if I_FactionLeaderAttribute england Authority = 4
            
                if I_EventCounter authority_value <= 10
                    faction_emerge barons_alliance england 6 80.0 120.0 0.85 town false
                end_if
            
            end_if
            
            if I_FactionLeaderAttribute england Authority = 5
            
                if I_EventCounter authority_value <= 5
                    faction_emerge barons_alliance england 6 85.0 120.0 0.85 town false
                end_if
            
            end_if    
            
            if I_NumberOfSettlements barons_alliance > 0
                set_event_counter ba_last_spawn_timer 0
                historic_event barons_reemerge_poor_king
                add_money barons_alliance 10000
            end_if    
            
        end_monitor


    Hope this points you in the right direction.

    VB
    Thanks...how would i change it to just fire on the local faction (player) instead of England? also i'm still unsure of how to keep the rebels as part of the originating faction just not controllable by the player and if the rebels win then the leader takes control of said faction?????? i know its alot to ask and i really appreciate the help....

  6. #6
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: Civil Wars????

    Quote Originally Posted by valvegas1 View Post
    Thanks...how would i change it to just fire on the local faction (player) instead of England? also i'm still unsure of how to keep the rebels as part of the originating faction just not controllable by the player and if the rebels win then the leader takes control of said faction?????? i know its alot to ask and i really appreciate the help....
    A shadow faction can only follow one faction, it is set up in the descr_sm_factions and campaign script. Have a look at these files in the British Isles add on. Once the rebelling faction is spawned, it is controlled by the AI and not part of the rebels, it can use the rebel skins if you so chose to do so. The spawned rebels are actually a new faction, that is why they need a slot in descr_sm_factions and count towards the total amount of factions available, 31.

    VB

  7. #7
    Kiliç Alì's Avatar Domesticus
    Artifex

    Join Date
    Feb 2011
    Location
    Italy
    Posts
    2,114

    Member of the Imperial House of Hader, proud client of The only and sole Ferrit

Posting Permissions

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