Results 1 to 10 of 10

Thread: Character Aging

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    kevindrosario's Avatar Ordinarius
    Join Date
    Jan 2011
    Location
    New Jersey
    Posts
    791

    Default Character Aging

    I took a look at GrnEyedDvl's 12TPY and aging script, and I just wanted to make sure that I am understanding the aging part correctly so that I can adjust it to my liking.
    Spoiler Alert, click show to read: 
    ;
    ; Campaign script
    ; Written by GrnEyedDvl
    ;
    ; Table of Contents
    ; 1. 12 turns per year, characters age in December
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    script

    ;show the whole map
    restrict_strat_radar false

    ; 1. 12 Turns per year.
    declare_counter month
    set_counter month 1 ;set to January

    monitor_event PreFactionTurnStart FactionIsLocal ; set the season for each month
    if I_CompareCounter month == 1 ;January
    console_command season winter
    end_if

    if I_CompareCounter month == 2 ;February
    console_command season winter
    end_if

    if I_CompareCounter month == 3 ;March
    console_command season summer
    end_if

    if I_CompareCounter month == 4 ;April
    console_command season summer
    end_if

    if I_CompareCounter month == 5 ;May
    console_command season summer
    end_if

    if I_CompareCounter month == 6 ;June
    console_command season summer
    end_if

    if I_CompareCounter month == 7 ;July
    console_command season summer
    end_if

    if I_CompareCounter month == 8 ;August
    console_command season summer
    end_if

    if I_CompareCounter month == 9 ;September
    console_command season summer
    end_if

    if I_CompareCounter month == 10 ;October
    console_command season winter
    end_if

    if I_CompareCounter month == 11 ;November
    console_command season winter
    end_if

    if I_CompareCounter month == 12 ;December
    console_command season winter
    end_if

    inc_counter month 1 ;advance the month
    if I_CompareCounter month == 13 ;start a new year
    set_counter month 1
    end_if
    end_monitor

    monitor_event FactionTurnEnd FactionType slave
    and I_CompareCounter month < 12
    console_command season summer
    end_monitor


    wait_monitors

    end_script




    The part that I bolded tells the game when characters should not age, right? So only if the month counter is at 12 will the game recognize the season as "winter", and only in "winter" will the characters age, right?

    They never age in summer, so he basically set January - November as "summer" and December as "winter" so they only age in December?

  2. #2

    Icon1 Re: Character Aging

    Yes. That sounds right.

  3. #3
    kevindrosario's Avatar Ordinarius
    Join Date
    Jan 2011
    Location
    New Jersey
    Posts
    791

    Default Re: Character Aging

    It seems to be working like I thought. I set it at 52 turns per year and it's been 30 turns and nobody has aged yet. Let's see if they age at turn 52.

  4. #4
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Character Aging

    Its simple, characters age when season's switch from winter to summer. Summer to summer, summer to winter, winter to winter season switches do not cause aging.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  5. #5
    kevindrosario's Avatar Ordinarius
    Join Date
    Jan 2011
    Location
    New Jersey
    Posts
    791

    Default Re: Character Aging

    That makes sense. Thanks Squid.

  6. #6
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: Character Aging

    Wow...

    So, if I want them to age a year in one turn, I can have 2 winter>Summer switches?

    Like this?

    monitor_event FactionTurnEnd FactionIsLocal
    console_command season winter
    console_command season summer
    console_command season winter
    console_command season summer
    end_monitor

    ???
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

  7. #7

    Icon1 Re: Character Aging

    Quote Originally Posted by alhoon View Post
    Wow...

    So, if I want them to age a year in one turn, I can have 2 winter>Summer switches?

    Like this?

    monitor_event FactionTurnEnd FactionIsLocal
    console_command season winter
    console_command season summer
    console_command season winter
    console_command season summer
    end_monitor

    ???
    Yes. Like this:

    campaign_script:
    Code:
    	monitor_event PreFactionTurnStart FactionIsLocal
    		console_command season winter
    	end_monitor
    descr_strat:
    Code:
    timescale	1.00
    Last edited by TNZ; May 24, 2011 at 04:49 AM.

  8. #8
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: Character Aging

    Thanks, yeah I knew about the timescale. It just irked me that generals used to age so slowly. On the other hand... having a general grow old and die within 30 turns is kinda lame.
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

  9. #9

    Default Re: Character Aging

    Please, help me with aging in SS 6.4.

    I've changed timescale 1.00 to 0.50

    but characters are aging faster than 0.50 on turn.

    I've found aging script:

    ;=================== AGEING SCRIPT ======================
    declare_counter season
    declare_counter turn
    set_counter turn 0

    monitor_event FactionTurnEnd FactionType slave
    console_command season winter
    set_counter turn 1
    end_monitor

    monitor_event PreFactionTurnStart I_CompareCounter turn = 1

    inc_counter season 1
    if I_CompareCounter season = 1
    console_command season summer
    end_if

    if I_CompareCounter season = 2
    console_command season winter
    set_counter season 0
    end_if

    set_counter turn 0

    end_monitor



    What should I change to have proper aging with timescale 0.50 ?




    ANSWER: delete ageing script from campaing*.txt
    Last edited by certoipus; June 07, 2011 at 02:52 PM.

  10. #10
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Character Aging

    I'd take it out. 0.5 will age two turns per year without it if this what you are trying to accomplish.

Posting Permissions

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