Is it possible to give a faction the option to convert to another religion in an event during the campaign, such as Lithuania in the Teutonic campaign?
If so, how?
(I would like to give the Mongols a chance to convert to Christianity)
-CK
Is it possible to give a faction the option to convert to another religion in an event during the campaign, such as Lithuania in the Teutonic campaign?
If so, how?
(I would like to give the Mongols a chance to convert to Christianity)
-CK
Yep its possible.
Here is a tutorial... http://www.twcenter.net/forums/showthread.php?t=190927
If you need more help, ask me. I made a mod about these conversions so I know a lot about it ^^
Last edited by Supermoler; November 18, 2010 at 10:56 AM.
I'd very much like that![]()
I've added this to the campaign_script (in KGCM)
;setup MONGOLS CONVERSION counters
add_events
event counter mongols_conversion_accepted
event counter mongols_conversion_declined
event counter mongols_conversion_timer
date 0
end_add_events
generate_random_counter mongols_conversion_timer 0 1
set_event_counter mongols_conversion_accepted 0
set_event_counter mongols_conversion_declined 0
And this to the historic_events (just to write something)
{MONGOLS_CONVERSION_BODY}conversion text
{MONGOLS_CONVERSION_TITLE}Mongols conversion
{MONGOLS_CONVERTS_BODY}Yahoo! The mongol hordes have converted!
{MONGOLS_CONVERTS_TITLE}The Hordes convert
I didn't quite understand that guide, so can you tell me what is left to do?
And this to historic events:Code:monitor_event FactionTurnStart add_events event counter mongols_accepted event counter mongols_declined date 0 end_add_events terminate_monitor end_monitor monitor_event FactionTurnStart FactionIsLocal if I_NumberOfSettlements mongols < 3 historic_event mongols_conversion true factions { mongols, } terminate_monitor end_if end_monitor
Thats enoughCode:{MONGOLS_CONVERSION_BODY}conversion text {MONGOLS_CONVERSION_TITLE}Mongols conversion
That will do this: if mongols got more than 3 settlements, the human player will be asked to choose convert or no...
I cant set anything more, since I dont know what conditions do you want.
And what you want with that timer?
edit: oh and you need this too:
Code:monitor_conditions I_EventCounter mongols_conversion_accepted = 1 set_religion mongols catholic change_population_religion mongols islam 75 catholic end terminate_monitor end_monitor
Last edited by Supermoler; November 18, 2010 at 11:54 AM.
Can I set "> 3" so it requires more than 3 settlements? EDIT: "Doesn't the < mean less than?
And how do I choose the turn where it happens?
And what sets the religion to convert to?
Last edited by ChivalrousKiller; November 18, 2010 at 11:55 AM.
Yes you can set.
And the second question, I think:
date 4 8
(two numbers, but I dont understand them, i dont know what that 2 numbers mean.)
edit: "In campaign_script? Where? "
Yes, just add to that file. In that monitor you can set what will happen if they accept (they will be catholic)
But the event came up at first, but when I added what you wrote last under it, then it didn't work.
Is this right:
monitor_event FactionTurnStart
add_events
event counter mongols_accepted
event counter mongols_declined
date 0
end_add_events
terminate_monitor
end_monitor
monitor_event FactionTurnStart FactionIsLocal
if I_NumberOfSettlements mongols > 3
historic_event mongols_conversion true factions { mongols, }
terminate_monitor
end_if
end_monitor
monitor_conditions I_EventCounter mongols_conversion_accepted = 1
set_religion mongols catholic
change_population_religion mongols islam 75 catholic
end
terminate_monitor
end_monitor
Ok, give me the files![]()
Changed a small thing.
It needs to work. if mongols have more than 3 settlements, you will be asked to change them..
No, it still doesn't come up at all. Neither playing as the Mongols (which is what I want), nor as any other faction
But it did so before I added the "monitor conditions"![]()
In my mod thats working for me.
Download this mini mod (its for TATW, but good source)
Copy the scripts and replace some things (faction name.. )
In campaign_script, search for the last some script. (eriador is the best example)
That script is working. I dont know why yours not.
Thank you. Had a look at it, but couldn't find a difference.
But I also had a look at the KGCM campaign script again, and found this for Lithuania:
Is it possible that I have to add this for the Mongols under the Lithuania one?
I think yes. Just rename faction and some more things you want. And add to historic_events.txt.
I did so, and removed the monitor_conditions at the top. And I have both Mongols_Conversion and Mongols_Converts in the historic_events, but it doesn't come up![]()
Would you take a look at it again?
Just scroll down to Lithuania Converts to Catholicism, under that one, I added Mongols Converts to Catholicism
Do the mongols have at least 4 regions?
Starting with five![]()