I need to create script that allows you to convert from religion to other religion. Can some1 help?
I need to create script that allows you to convert from religion to other religion. Can some1 help?
Last edited by Kong Ming; March 09, 2012 at 03:12 PM.
set_religion is the command.
set_religion england islam
It is as simple as that to change it. Whether it has ongoing consequences is another matter. e.g. The Brittania campaign uses religion levels as conditions for recruitment and they are written with the 'correct' religion in mind. So if you change it then as that faction's regions move away from its 'correct' religion to the new one you will be able to recruit less and less units.
After the switch you can also use this...
change_population_religion england islam 50 catholic
..to instantly shift the religion level of all regions towards to the new religion. You don't need to but without it you will probably have a lot of religious unrest in your regions which could lead to revolts.
What file i'm supposed to change. And is it possible when native american's convert from their religion to catholic that then they can have ships?
Last edited by Kong Ming; March 10, 2012 at 01:43 AM.
Campaign_script i guess...
Afaik, religions don't recruit units, buildings do that. As Withwnar pointed out, you can use religion levels as conditions for recruitment. So i guess you need to mod the export_descr_buildings accordingly.And is it possible when native american's convert from their religion to catholic that then they can have ships?
As i'm still a newb to all this stuff, it's very possible that i've said something wrong though
Did you do that?
Last edited by EP!anastasi; March 10, 2012 at 02:28 AM.
"My garden may be smaller than your Rome, but my pilum is harder than your sternum!"
a great song ... and one more ... ok, one last
(\__/)
( O.o)
(> < ) This is Bunny. Please help Bunny reach global domination by copying this message and pasting it to your own signature. Thank you!
Fred Putz
jimkatalanos
Taiji
Garbarsardar
~Gort~
irelandeb
Squid
Magicman2051
Aradan
If you have Crusades, you have Teutonic as both are Kingdoms campaigns. The easiest way is install it if you have not done so.
Well, put the iisc back in and install Teutonic or uninstall Crusades and then install all of them as it looks like you are going to need them. Be sure to patch to 1.5 afterwards.
Ok i have it now. What now?
What you are looking for is in its campaign_script.txt. Exactly what, part,I don't know.
Teutonic Campaign Script says something like this:
;setup LITHUANIA CONVERSION counters
add_events
event counter lithuania_conversion_accepted
event counter lithuania_conversion_declined
event counter lithuania_conversion_timer
date 0
end_add_events
generate_random_counter lithuania_conversion_timer 0 25
set_event_counter lithuania_conversion_accepted 0
set_event_counter lithuania_conversion_declined 0
offer the conversion to Lithuania if the correct conditions are met
monitor_event FactionTurnStart FactionType lithuania
if I_NumberOfSettlements lithuania < 5
and I_EventCounter lithuania_conversion_timer >= 37
and I_EventCounter lithuania_conversion_accepted = 0
;offer conversion to christianity
historic_event lithuania_conversion true factions { lithuania, }
;if AI random chance to accept
if I_IsFactionAIControlled lithuania
generate_random_counter random_accept 0 2
if I_EventCounter random_accept < 2
set_event_counter lithuania_conversion_accepted 1
end_if
end_if
terminate_monitor
end_if
if I_EventCounter lithuania_conversion_timer >= 65
and I_EventCounter lithuania_conversion_accepted = 0
;offer conversion to christianity
historic_event lithuania_conversion true factions { lithuania, }
;if AI random chance to accept
if I_IsFactionAIControlled lithuania
generate_random_counter random_accept 0 2
if I_EventCounter random_accept < 2
set_event_counter lithuania_conversion_accepted 1
end_if
end_if
terminate_monitor
end_if
end_monitor
monitor_conditions I_EventCounter lithuania_conversion_accepted = 1
;Three easy steps for conversion
;1 - Convert the people
set_religion lithuania catholic
change_population_religion lithuania catholic 75 pagan
;2 - Destroy the pagan buildings
destroy_buildings lithuania temple_dievas true
destroy_buildings lithuania temple_dievas_castle true
destroy_buildings lithuania temple_perkunas true
destroy_buildings lithuania temple_perkunas_castle true
destroy_buildings lithuania temple_giltine true
destroy_buildings lithuania temple_giltine_castle true
;3 - Disband the pagan units
retire_characters Lithuania priest
destroy_units Lithuania pagan_unit
;notify all factions that Lithuania has converted and become Catholic
historic_event lithuania_converts event/Lithuania_converts.bik
set_event_counter pagan_lithuania 0
set_event_counter not_pagan_lithuania 1
; change teutonic order ai label
link_faction_ai teutonic_order teutonic_order_non_pagan
link_faction_ai poland poland_non_pagan
link_faction_ai lithuania lithuania_non_pagan
terminate_monitor
end_monitor
This might help - http://www.twcenter.net/forums/showt...ction_standing
Check the tutorial section too. A lot of good stuff in there.
VB
Thank ye Vegas!+ rep to all who helped