Page 1 of 4 1234 LastLast
Results 1 to 20 of 62

Thread: Religion Conversion !!!

  1. #1

    Default Religion Conversion !!!

    Since we're using kingdoms for our mod, we should use all the features we've avaliable, and one is the religious conversion, wich allow faction to switch religion !!

    pagan > catholic or the inverse
    catholic > islam or the inverse

    Any suggestions :hmmm:
    Common sense removed due being Disruptive.

  2. #2
    King Yngvar's Avatar Senator
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,205

    Default Re: Religion Conversion !!!

    Any suggestions? You just suggested it, make this feature available. Awesome indeed!

  3. #3

    Default Re: Religion Conversion !!!

    pagan>orthodox and catholic

  4. #4

    Default Re: Religion Conversion !!!

    i can made campaign_script for this if you want

  5. #5

    Default Re: Religion Conversion !!!

    Quote Originally Posted by Master Zuma View Post
    i can made campaign_script for this if you want
    Sure, feel free to do

    Also check out our faction list, for you know our factions and religions

    cheers
    Ataegina
    Common sense removed due being Disruptive.

  6. #6
    Balmung's Avatar Civis
    Join Date
    Jan 2008
    Location
    Great Tosson, Northumberland, England
    Posts
    197

    Default Re: Religion Conversion !!!

    This would be elite. How would the oppertunity for such a thing present itself however?





    Creator of
    The first mod to add Wales to the Grand Campaign
    Gaelic Kingdoms (Adds Wales and Ireland to Vanilla GC)
    http://www.twcenter.net/forums/showthread.php?t=148936
    and
    Ireland Grand Campaign v.1.1 (BigMap)
    http://www.twcenter.net/forums/showthread.php?t=147452


  7. #7
    King Yngvar's Avatar Senator
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,205

    Default Re: Religion Conversion !!!

    Well I guess when a certain number of your population has that religion...

  8. #8

    Default Re: Religion Conversion !!!

    well the number of your population is a fact, but also a political decision with benefits and consequences.....

    kind like ww1 you choose each side you wanna stay between the 3 major religions (in our case)
    Common sense removed due being Disruptive.

  9. #9
    King Yngvar's Avatar Senator
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,205

    Default Re: Religion Conversion !!!

    It sounds like a great feature. I am already hooked by the thought of making the Moors christian, ally them and have them join a crusade against one of my friends who usually play Egypt

  10. #10

    Default Re: Religion Conversion !!!

    script is totaly done one-two days of test and i will post it hee
    some scrins of my script in SS6.1
    Spoiler Alert, click show to read: 



    Last edited by Master Zuma; May 06, 2008 at 12:14 PM.
    Under the patronage of Nakharar
    DM Multi modding project

  11. #11

    Default Re: Religion Conversion !!!

    but just one way is done
    pagan=>catholic or pagan=>orthodox
    and
    islam=>catholic
    Last edited by Master Zuma; May 07, 2008 at 11:16 AM.
    Under the patronage of Nakharar
    DM Multi modding project

  12. #12

    Default Re: Religion Conversion !!!

    hi all
    script tested
    here
    Spoiler Alert, click show to read: 

    ;setup some event counters
    monitor_event FactionTurnStart

    ;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

    ;setup TECH TREE counters

    add_events
    event counter pagan_lithuania ;DONT RENAME - counter referenced by name in export_descr_buildings
    event counter not_pagan_lithuania ;DONT RENAME - counter referenced by name in export_descr_buildings
    event counter not_teutonic ;DONT RENAME - counter referenced by name in export_descr_buildings
    date 0
    end_add_events

    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 0
    set_event_counter not_teutonic 0

    terminate_monitor

    end_monitor
    ;------------------- TECHTREE -------------------;

    monitor_event PreFactionTurnStart not FactionType lithuania
    and not FactionType teutonic_order

    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    set_event_counter not_teutonic 1

    end_monitor

    monitor_event PreFactionTurnStart FactionType lithuania

    set_event_counter pagan_lithuania 1
    set_event_counter not_pagan_lithuania 0
    set_event_counter not_teutonic 1

    if I_EventCounter lithuania_conversion_accepted = 1
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    end_if


    end_monitor

    monitor_event PreFactionTurnStart FactionType teutonic_order

    set_event_counter not_teutonic 0
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1

    end_monitor

    ;set counters on FactionTurnStart once only to ensure correct tech tree options are present at turn 0

    monitor_event FactionTurnStart not FactionType lithuania
    and not FactionType teutonic_order

    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    set_event_counter not_teutonic 1

    terminate_monitor

    end_monitor

    monitor_event FactionTurnStart FactionType lithuania

    set_event_counter pagan_lithuania 1
    set_event_counter not_pagan_lithuania 0
    set_event_counter not_teutonic 1

    if I_EventCounter lithuania_conversion_accepted = 1
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    end_if

    terminate_monitor

    end_monitor

    monitor_event FactionTurnStart FactionType teutonic_order

    set_event_counter not_teutonic 0
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1

    terminate_monitor

    end_monitor


    ;teutonic_order does not allow the brothel/tavern chain in their cities
    monitor_event GeneralCaptureSettlement FactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event GiveSettlement TargetFactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event CityRebels TargetFactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event GovernorCityRebels TargetFactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event FactionTurnStart FactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    ;------------------- LITHUANIA CONVERSION TO CATHOLICISM -------------------;

    ;increment the timer for conversion offer
    monitor_event FactionTurnStart FactionType lithuania

    inc_event_counter lithuania_conversion_timer 1

    if I_EventCounter lithuania_conversion_accepted = 1
    terminate_monitor
    end_if

    end_monitor

    ;offer the conversion to Lithuania if the correct conditions are met

    monitor_event FactionTurnStart FactionType lithuania

    if I_NumberOfSettlements lithuania < 2
    and I_EventCounter lithuania_conversion_timer >= 2
    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




    for example we want to see portugal islam then w mut do this
    Spoiler Alert, click show to read: 

    ;setup some event counters
    monitor_event FactionTurnStart

    ;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

    ;setup TECH TREE counters

    add_events
    event counter pagan_lithuania ;DONT RENAME - counter referenced by name in export_descr_buildings
    event counter not_pagan_lithuania ;DONT RENAME - counter referenced by name in export_descr_buildings
    event counter not_teutonic ;DONT RENAME - counter referenced by name in export_descr_buildings
    date 0
    end_add_events

    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 0
    set_event_counter not_teutonic 0

    terminate_monitor

    end_monitor
    ;------------------- TECHTREE -------------------;

    monitor_event PreFactionTurnStart not FactionType lithuania
    and not FactionType teutonic_order

    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    set_event_counter not_teutonic 1

    end_monitor

    monitor_event PreFactionTurnStart FactionType lithuania

    set_event_counter pagan_lithuania 1
    set_event_counter not_pagan_lithuania 0
    set_event_counter not_teutonic 1

    if I_EventCounter lithuania_conversion_accepted = 1
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    end_if


    end_monitor

    monitor_event PreFactionTurnStart FactionType teutonic_order

    set_event_counter not_teutonic 0
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1

    end_monitor

    ;set counters on FactionTurnStart once only to ensure correct tech tree options are present at turn 0

    monitor_event FactionTurnStart not FactionType lithuania
    and not FactionType teutonic_order

    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    set_event_counter not_teutonic 1

    terminate_monitor

    end_monitor

    monitor_event FactionTurnStart FactionType lithuania

    set_event_counter pagan_lithuania 1
    set_event_counter not_pagan_lithuania 0
    set_event_counter not_teutonic 1

    if I_EventCounter lithuania_conversion_accepted = 1
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1
    end_if

    terminate_monitor

    end_monitor

    monitor_event FactionTurnStart FactionType teutonic_order

    set_event_counter not_teutonic 0
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1

    terminate_monitor

    end_monitor


    ;teutonic_order does not allow the brothel/tavern chain in their cities
    monitor_event GeneralCaptureSettlement FactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event GiveSettlement TargetFactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event CityRebels TargetFactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event GovernorCityRebels TargetFactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    monitor_event FactionTurnStart FactionType teutonic_order

    destroy_buildings teutonic_order taverns true

    end_monitor

    ;------------------- LITHUANIA CONVERSION TO CATHOLICISM -------------------;

    ;increment the timer for conversion offer
    monitor_event FactionTurnStart FactionType lithuania

    inc_event_counter lithuania_conversion_timer 1

    if I_EventCounter lithuania_conversion_accepted = 1
    terminate_monitor
    end_if

    end_monitor

    ;offer the conversion to Lithuania if the correct conditions are met

    monitor_event FactionTurnStart FactionType lithuania

    if I_NumberOfSettlements lithuania < 2
    and I_EventCounter lithuania_conversion_timer >= 2
    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



    ;------------------- portugal CONVERSION TO islam -------------------;

    ;increment the timer for conversion offer
    monitor_event FactionTurnStart FactionType portugal

    inc_event_counter lithuania_conversion_timer 1

    if I_EventCounter lithuania_conversion_accepted = 1
    terminate_monitor
    end_if

    end_monitor

    ;offer the conversion to Lithuania if the correct conditions are met

    monitor_event FactionTurnStart FactionType portugal

    if I_NumberOfSettlements lithuania < 20
    and I_EventCounter lithuania_conversion_timer >= 2
    and I_EventCounter lithuania_conversion_accepted = 0

    ;offer conversion to christianity
    historic_event lithuania_conversion true factions { portugal, }

    ;if AI random chance to accept
    if I_IsFactionAIControlled portugal

    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 { portugal, }

    ;if AI random chance to accept
    if I_IsFactionAIControlled portugal

    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 portugal islam
    change_population_religion portugal islam 75 catholic

    historic_event lithuania_converts event/Lithuania_converts.bik
    set_event_counter pagan_lithuania 0
    set_event_counter not_pagan_lithuania 1

    terminate_monitor

    end_monitor
    Last edited by Master Zuma; May 07, 2008 at 12:19 PM.
    Under the patronage of Nakharar
    DM Multi modding project

  13. #13

    Default Re: Religion Conversion !!!

    now you just need to edit historic_events.txt
    and EDB files



    cheers
    Zuma
    Last edited by Master Zuma; May 07, 2008 at 12:18 PM.
    Under the patronage of Nakharar
    DM Multi modding project

  14. #14

    Default Re: Religion Conversion !!!

    Quote Originally Posted by Ataegina View Post
    Since we're using kingdoms for our mod, we should use all the features we've avaliable, and one is the religious conversion, wich allow faction to switch religion !!

    pagan > catholic or the inverse
    catholic > islam or the inverse

    Any suggestions :hmmm:

    ortodox to islam or pegan or catolic inverse

    islam to pegan inverse
    catholic to pegan

    _______________________________
    My words become true in a battle
    Member: The Frontier, The Great Conflics

  15. #15

    Default Re: Religion Conversion !!!

    any faction can convertion in any religion
    Under the patronage of Nakharar
    DM Multi modding project

  16. #16
    Senator
    Join Date
    Aug 2006
    Location
    In the icey lands of Norway... which aren't actually icey... more like rainy.
    Posts
    1,238

    Default Re: Religion Conversion !!!

    I think this would be a nice feature, I get tired of the Pope's constant whining and it would be nice to go jihad on them.

  17. #17

    Default Re: Religion Conversion !!!

    well indeed, but this can affect all your diplomacy and cause unrest

    but this ill be featured

    change_population_religion lithuania islam 75 catholic
    shouldn't not it be change_population_religion portugal islam 75 catholic

    ?

    Thanks Master Zuma
    +rep
    Last edited by Ataegina; May 07, 2008 at 12:13 PM.
    Common sense removed due being Disruptive.

  18. #18

    Default Re: Religion Conversion !!!

    shouldn't not it be change_population_religion portugal islam 75 catholic
    should
    Under the patronage of Nakharar
    DM Multi modding project

  19. #19

    Default Re: Religion Conversion !!!

    since we've new religions, i hope this don't make the take too long to load the new turns O_o
    Common sense removed due being Disruptive.

  20. #20

    Default Re: Religion Conversion !!!

    Quote Originally Posted by Ataegina View Post
    since we've new religions, i hope this don't make the take too long to load the new turns O_o
    i will test it
    Under the patronage of Nakharar
    DM Multi modding project

Page 1 of 4 1234 LastLast

Posting Permissions

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