I didnt see anything obviously wrong other than you started in summer. That alone might do it. Is there anything in your log?
Either you made a mistake or there is something in the SS script that confilcts with it. Glad to hear you got it working.
I didnt see anything obviously wrong other than you started in summer. That alone might do it. Is there anything in your log?
Either you made a mistake or there is something in the SS script that confilcts with it. Glad to hear you got it working.
ok i give up.
my 4 tpy script is attached. its the last lines in the script
somebody please look at it and tell me what i need to change to make it run. (descr_strat has 0,25 as timerate)
oh in the holy name of statan!
spend like half a day looking oand testing an i forgot "wait_monitors"
Last edited by Ahlerich; April 26, 2010 at 11:51 AM.
I have a problem with incorporating the script into my campaign script. I've changed the start from summer to winter and the the timescale to 0.0835. The characters age perfectly well and each year has 12 turns, but the script breaks the triggering of events. I've experimented with different approaches, but couldn't find a solution so far. Can anybody help me, please?
Here's the beginning of my campaign script where I've inserted the script:
Code:; ; Campaign script ; script ; --------------------- ; counters declare_counter Opened_Faction_Overview_Scroll declare_counter Opened_Settlement_Scroll declare_counter mongols_sarkel declare_counter mongols_yerevan declare_counter mongols_baghdad declare_counter timurids_sarkel declare_counter timurids_yerevan declare_counter timurids_baghdad ; --------------------- ; start up freeze_faction_ai aztecs ;---------------------- ; monitors ; 1. 12 Turns per year. declare_counter month set_counter month 1 ;Set to January monitor_event FactionTurnStart 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 ;-- Mongols invasions -- monitor_event EventCounter EventCounterType mongols_invasion_warn and EventCounter > 0 ; ADD SCOUTING INVASION add_events event counter mongols_invasion date 4 8 end_add_events if I_EventCounter mongols_invasion_warn == 2 terminate_monitor end_if end_monitor monitor_event EventCounter EventCounterType mongols_invasion and EventCounter > 0 if I_EventCounter mongols_invasion == 1 add_events ;;; SCOUTING INVASION event emergent_faction mongols date 0 ; region Tbilisi_Province region Yerevan_Province region Bulgar_Province region Sarkel_Province region Baghdad_Province movie event/mongols_invade.bik ;ADD MONGOL INVASION 1 event counter mongols_invasion date 2 end_add_events end_if if I_EventCounter mongols_invasion == 2 ;Sarkel if I_CharacterTypeNearTile mongols named_character, 30 258, 134 set_counter mongols_sarkel 1 end_if ;Tbilisi / Yerevan if I_CharacterTypeNearTile mongols named_character, 20 278, 101 set_counter mongols_yerevan 1 end_if ;Baghdad if I_CharacterTypeNearTile mongols named_character, 30 291, 70 set_counter mongols_baghdad 1 end_if
This script is awesome. But my campaign events no longer work. Is there anyway to repair this?
Could this work for SS 6.4? And could you make it 24TPY rather than 12?
I love this script, just added it to my game.
Is their any way at all to change it so the start is summer and not winter?
The Watchwords Of Midnight
"The brave and the free fear no foe, go forth, mighty hosts of Midnight! Unto death or victory we go!"
The Midnight Chronicles
Hey GrnEyedDvl how do I adjust this for the late era campaign? And where do I put the campaign_script? And, does it work with old saves?
As long as your date is properly set up in descr_strat, it will work with anything. It doesnt need to be adjusted.
You add it into your current campaign_script which is located in data/world/campaign/imperial_campaign.And where do I put the campaign_script?
No.And, does it work with old saves?
Do I remove the old text in the campaign script? I've played so far like that, but some things haven't triggered, on event movies are missing, spawns like william wallace etc.
Ah, read your post above now, seems I've been doing it very wrong then.. I put it after ----DIFFICULTY LEVEL----- and end monitor, do I need those "--------------------"?
Last edited by Sorkenlol; August 31, 2008 at 10:55 PM.
Awesome!!
Thought this was hardcorded?
Anyway, if i would like this to work for SS, do i just copy the script text, and put it in campaign_script, and change the timescale, start_date in descr_strat?
edit: where should i put it exacly in the campaign_script, in the bottom or?
Last edited by aNarion.; July 08, 2008 at 08:27 AM.
Thanks again GrnEyedDvl.![]()
The Watchwords Of Midnight
"The brave and the free fear no foe, go forth, mighty hosts of Midnight! Unto death or victory we go!"
The Midnight Chronicles
Welcome.
i've tried make this for 4 turns (3months) but this ends in CTD
start_date 1174 summer
end_date 1453 winter
timescale 0.25so what is wrong ?declare_counter month
set_counter month 1 ;set to winter
monitor_event PreFactionTurnStart FactionIsLocal ; set the season for each month
if I_CompareCounter month == 1 ;winter
console_command season winter
end_if
if I_CompareCounter month == 2 ;spring
console_command season summer
end_if
if I_CompareCounter month == 3 ;summer
console_command season summer
end_if
if I_CompareCounter month == 4 ;Autumn
console_command season winter
end_if
inc_counter month 1 ;advance the month
if I_CompareCounter month == 5 ;start a new year
set_counter month 1
end_if
end_monitor
monitor_event FactionTurnEnd FactionType slave
and I_CompareCounter month < 4
console_command season summer
end_monitor
Common sense removed due being Disruptive.
ok, so ill try start in winter and see what happen next ....
Common sense removed due being Disruptive.
this still giving me CTD's , also in logs this don't tell nothing about errors in campaign_script or even less in descr_strat![]()
Common sense removed due being Disruptive.
You have the trace option enabled?
Working well for me now, t'was the start winter thingie. Thank's again for the help.
Under the benevolent guidance of jimkatalanos
well this is working for me now, without CTD, the 4 turns per year its working, but..... the character never get old, i've experiment with leader with 54 years and 10 turns later in my case (2 years and half later) he still with 54....so what is wrong? have we found a elixir of eternal youth ?![]()
![]()
Common sense removed due being Disruptive.
Your season isnt changing properly on teh end of the 4th turn.
make sure you start your campaign in winter.
Change this line, at teh top of your script:
set_counter month 1 ;set to winter
To this:
set_counter month 0 ;set to winter
still the same, nobody gets older after the 4 turn....
Common sense removed due being Disruptive.