Page 2 of 2 FirstFirst 12
Results 31 to 33 of 33

Thread: Modding the turns/years

  1. #31

    Default Re: Modding the turns/years

    OOOOH, OOOH, OOOH!!!!

    I've managed to make characters age properly at 1 year/turn!!!!!!!

    It's a variation/reverse on Myrrdaal's old 4tpy script from the RTW days. If these lines are inserted at the end of the campaign_script.txt file, it will work to make characters age 1 year / turn. Unfortunately, I can't make it work for aging 2 years a turn to keep the default timescale (it seems aging has to occur with a turn ending at winter and turning to summer... and no way to replicate this twice on one turn), but this is definitely in the vein of what I was looking for.

    I've tested it using a full 450 turn schedule (the entire campaign at 1 year/turn) and all appears to be working as planned.

    Since I can't post attachments here, I'll put a snippet of the first ten turns of code. It should give a good idea of what's going on. Some of you enterprising code writers should be able to pick up the gist from here and generate a full script.

    Code:
    	monitor_event FactionTurnEnd FactionType slave
    		if I_TurnNumber = 0
    			console_command season winter
    		end_if
    		terminate_monitor
    	end_monitor
    
    	while I_TurnNumber = 0
    	end_while
    
    	console_command season winter
    
    	while I_TurnNumber = 1
    	end_while
    
    	monitor_event FactionTurnEnd FactionType slave
    		if I_TurnNumber = 2
    			console_command season winter
    		end_if
    		terminate_monitor
    	end_monitor
    
    	while I_TurnNumber = 2
    	end_while
    
    	console_command season winter
    
    	while I_TurnNumber = 3
    	end_while
    
    	monitor_event FactionTurnEnd FactionType slave
    		if I_TurnNumber = 4
    			console_command season winter
    		end_if
    		terminate_monitor
    	end_monitor
    
    	while I_TurnNumber = 4
    	end_while
    
    	console_command season winter
    
    	while I_TurnNumber = 5
    	end_while
    
    	monitor_event FactionTurnEnd FactionType slave
    		if I_TurnNumber = 6
    			console_command season winter
    		end_if
    		terminate_monitor
    	end_monitor
    
    	while I_TurnNumber = 6
    	end_while
    
    	console_command season winter
    
    	while I_TurnNumber = 7
    	end_while
    
    	monitor_event FactionTurnEnd FactionType slave
    		if I_TurnNumber = 8
    			console_command season winter
    		end_if
    		terminate_monitor
    	end_monitor
    
    	while I_TurnNumber = 8
    	end_while
    
    	console_command season winter
    
    	while I_TurnNumber = 9
    	end_while
    
    	monitor_event FactionTurnEnd FactionType slave
    		if I_TurnNumber = 10
    			console_command season winter
    		end_if
    		terminate_monitor
    	end_monitor
    
    	while I_TurnNumber = 10
    	end_while
    It's late here, and I'm off to bed, but wanted to share this before I hit the sack. A lot of opportunity here for those interested in realistic aging without making a ridiculously long campaign.

  2. #32

    Default Re: Modding the turns/years

    Is there a mod out there using this yet? Is there a way i can stick this somewhere in the game to give me 1 year turns with proper aging?

    On a side note, is there a faq out there that explains how to mod building and unit times and costs?

  3. #33

    Default Re: Modding the turns/years

    I have added a downloadable file for my "Aging 1 Year Per Turn Mod" to www.twcenter.net that can be found here:

    http://www.twcenter.net/forums/downl...do=file&id=960

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO