Results 1 to 12 of 12

Thread: accept jews or not in kingdom trigger to make profit...or not

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    396

    Default accept jews or not in kingdom trigger to make profit...or not

    hello guys,i´m needing help in a complicated idea ...my idea is to create a event and receive a message if i want or not the entrance in my regions/kingdom of jews expeld from another country/region /kingdom....if i accept,the jewish religion(that i added to my religions) will increase in 5% and i´ll be presented with money...1000 in my treasure (from the jewish merchants for exemple) if i refuse i´ll lose 40% of that ...400(imagine that´s because the stablished jews already in my kingdom hide some taxes from me because they are unhappy with my decision... for exemple) can someone show how this can be done? Many thanks in advance............
    Homo Homini Lupus

  2. #2
    AJStoner's Avatar Lord of Entropy
    Join Date
    Dec 2010
    Location
    Currently exiled to Florida
    Posts
    1,746

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Adding the religion or just the money scripting?

    *MEMBER OF THE HOUSE OF HADER* *UNDER THE CRUEL & MERCILESS PATRONAGE OF y2day*

  3. #3
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    396

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    only the money script,its a yes no event with money and religion effects,can you help?its for vanilla..many thanks
    Homo Homini Lupus

  4. #4
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    396

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    some help in this please
    Homo Homini Lupus

  5. #5
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Ok, I'll give it a try
    Code:
    monitor_event FactionTurnStart FactionIsLocal
    	add_events
    	event counter jewes_accepted
    	event counter jewes_declined
    	end_add_events
    	historic_event jewes true
    terminate_monitor
    end_monitor
    
    ;-------------- accept --------------
    monitor_conditions I_EventCounter jewes_accepted = 1
    add_money "YOUR FACTION" 1000
    change_population_religion "YOUR FACTION" jewish 5
    terminate_monitor
    end_monitor
    
    ;--------- reject ----------------
    monitor_conditions I_EventCounter jewes_declined = 1
    add_money "YOUR FACTION" -400
    terminate_monitor
    end_monitor
    Did I forget something?

  6. #6
    AJStoner's Avatar Lord of Entropy
    Join Date
    Dec 2010
    Location
    Currently exiled to Florida
    Posts
    1,746

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Quote Originally Posted by killersmurf View Post
    Code:
    monitor_event FactionTurnStart FactionIsLocal
        add_events
        event counter jewes_accepted
        event counter jewes_declined
        end_add_events
        historic_event jewes true
    terminate_monitor
    end_monitor
    
    ;-------------- accept --------------
    monitor_conditions I_EventCounter jewes_accepted = 1
    add_money "YOUR FACTION" 1000
    change_population_religion "YOUR FACTION" jewish 5
    terminate_monitor
    end_monitor
    
    ;--------- reject ----------------
    monitor_conditions I_EventCounter jewes_declined = 1
    add_money "YOUR FACTION" -400
    terminate_monitor
    end_monitor
    The line in red needs to be:

    change_population_religion "YOUR FACTION" jewish 5 YOUR RELIGION

    so, let's say you are playing England:

    change_population_religion england jewish 5 catholic

    Also this requires that Judaism be an established religion in the game; if it hasn't been added this will crash your game. If you don't want to include the new religion just omit this line entirely.

    *MEMBER OF THE HOUSE OF HADER* *UNDER THE CRUEL & MERCILESS PATRONAGE OF y2day*

  7. #7
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    He included it already

  8. #8
    HELLEKIN's Avatar Miles
    Join Date
    Nov 2007
    Location
    LISBON - PORTUGAL
    Posts
    396

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Thanks for help AJStoner and Killersmurf you guys are the men... it was just what i wanted...but sorry for the stupid question...how do i insert this to my mood?? And if it isn´t ask too much how can i add pictures to the events?when script asks and after script reply?this script appears only one time in game??How can i put it from time to time?(ex:from 5 to 5 yers) Many thanks in advance once more for the script...
    Homo Homini Lupus

  9. #9
    AJStoner's Avatar Lord of Entropy
    Join Date
    Dec 2010
    Location
    Currently exiled to Florida
    Posts
    1,746

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Easy enough. Just add the line:

    and I_CompareCounter jews = 5

    as your last condition to the script above (after end_add_events). And then add the following timer to your campaign script (before this event appears so as not to confuse the game).


    Code:
    ;;;;;;;;;; Jews Timer ;;;;;:;;;;;
    
    declare_counter jews
    monitor_event FactionTurnStart FactionIsLocal
        inc_counter jews 1
        if I_CompareCounter jews > 4
            set_counter jews 0
        end_if
    end_monitor
    Remember, both items go into data/world/maps/campaign/imperial_campaign/campaign_script. The time should appear first.
    Last edited by AJStoner; October 28, 2011 at 04:19 PM.

    *MEMBER OF THE HOUSE OF HADER* *UNDER THE CRUEL & MERCILESS PATRONAGE OF y2day*

  10. #10

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Is there a limit to the amount of religions you can have in the game?


    If not I would want to make an even sort of like this so that I could revert the Byzantines back to the Old Roman gods. I figured for the building I could use sol invictus but I need to know how i would script it. Thank you for the help.

  11. #11
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    I believe the hard-coded limit is 10

  12. #12
    AJStoner's Avatar Lord of Entropy
    Join Date
    Dec 2010
    Location
    Currently exiled to Florida
    Posts
    1,746

    Default Re: accept jews or not in kingdom trigger to make profit...or not

    Here is an example of a conversion script, you should be able to extrapolate what you need to do from this.

    Conversion Script
    ;--- Irish Pagan Conversion

    monitor_event FactionTurnStart FactionType ireland
    and I_CompareCounter ireland_unitedB = 1
    and I_SettlementOwner Cork = ireland
    and I_SettlementOwner Lifford = ireland
    and I_SettlementOwner Downpatrick = ireland
    and I_SettlementOwner Athenry = ireland
    and I_SettlementOwner Trim = ireland
    and I_SettlementOwner Dublin = ireland
    and I_SettlementOwner Tipperary = ireland
    and I_SettlementOwner Derry = ireland
    and I_SettlementOwner Belfast = ireland
    and I_SettlementOwner Waterford = ireland
    and I_SettlementOwner Tralee = ireland
    and I_SettlementOwner Castlebar = ireland
    and I_SettlementOwner Ardmore = ireland
    and I_SettlementOwner Ballymote = ireland
    and I_SettlementOwner Kildare = ireland
    and I_SettlementOwner Carrick_On_Shannon = ireland
    and I_SettlementOwner Galway = ireland
    and I_SettlementOwner Omagh = ireland
    and I_SettlementOwner Dungloe = ireland
    and I_SettlementOwner Dungannon = ireland

    historic_event pagan_conversion true factions { ireland, }

    ;if AI random chance to accept
    if I_IsFactionAIControlled ireland

    generate_random_counter fa_random_accept 0 2
    if I_EventCounter fa_random_accept < 2
    set_event_counter pagan_conversion_accepted 1
    end_if

    end_if

    terminate_monitor

    end_monitor

    monitor_conditions I_EventCounter pagan_conversion_accepted = 1

    ;Let the Great purge begin
    set_event_counter pagan 1
    set_event_counter catholic 0
    link_faction_ai ireland pagan

    ;1 - Make them an offer they cant refuse
    set_religion ireland pagan
    change_population_religion ireland pagan 50 catholic

    ;2 - Burn the churches
    destroy_buildings ireland temple_catholic true
    destroy_buildings ireland temple_catholic_castle true

    ;3 - Burn the papists
    retire_characters ireland priest

    ;4 - Out with the old, in with the older
    change_settlement_name Dublin Royal_Tara
    change_settlement_name Galway Cruachu
    change_settlement_name Cork Ui_Liathain
    change_settlement_name Belfast Errian_Macha

    ;5 - Piss-off his holiness
    console_command diplomatic_stance ireland england war
    console_command diplomatic_stance ireland papal_states war

    ;6 - grab the church lands
    console_command add_money 10000

    ;7 - Hire some mussle
    spawn_army
    faction ireland
    character Finian MacSidhe, named character, age 21, x 19, y 41, family, portrait finian, direction N
    traits LoyaltyStarter 1, Loyal 3 , GoodCommander 1 , BattleChivalry 2, NightBattleCapable 1 , Intelligent 1 , ReligionStarter 1 , Brave 2
    unit Irish Bodyguard exp 3 armour 0 weapon_lvl 0
    unit Fianna Eireann exp 3 armour 0 weapon_lvl 0
    unit Fianna Eireann exp 3 armour 0 weapon_lvl 0
    unit Fianna Eireann exp 3 armour 0 weapon_lvl 0
    end

    spawn_character ireland, Conlaed O'Dwyer, priest, age 40, x 20, y 42
    console_command give_trait "Conlaed O'Dwyer" NaturalPriestSkill 2
    console_command give_trait "Conlaed O'Dwyer" StrongFaith 2

    ; 8 - Deal with the trouble-makers

    spawn_army
    faction papal_states
    character random_name, named character, age 40, x 47, y 63, label Invade_Dublin, direction E
    traits GoodCommander 3 , NightBattleCapable 2 , PublicFaith 3 , ReligionStarter 1
    unit Feudal Knights exp 2 armour 1 weapon_lvl 1
    unit Sergeant Spearmen exp 1 armour 1 weapon_lvl 1
    unit Sergeant Spearmen exp 1 armour 1 weapon_lvl 1
    unit Flagellants exp 0 armour 0 weapon_lvl 0
    unit Flagellants exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Great Cross exp 0 armour 0 weapon_lvl 0
    sieging
    siege_settlement Invade_Dublin, Dublin, maintain

    spawn_army
    faction papal_states
    character random_name, named character, age 48, x 21, y 43, label Invade_Cork, direction E
    traits GoodCommander 2 , PublicFaith 2 , ReligionStarter 1
    unit Feudal Knights exp 2 armour 1 weapon_lvl 1
    unit Flagellants exp 0 armour 0 weapon_lvl 0
    unit Flagellants exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Great Cross exp 0 armour 0 weapon_lvl 0
    sieging
    siege_settlement Invade_Cork, Cork, maintain

    spawn_army
    faction papal_states
    character random_name, named character, age 37, x 51, y 94, label Invade_Belfast, direction E
    traits GoodCommander 1 , NightBattleCapable 1 , PublicFaith 3 , ReligionStarter 1
    unit Feudal Knights exp 2 armour 1 weapon_lvl 1
    unit Flagellants exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Great Cross exp 0 armour 0 weapon_lvl 0
    sieging
    siege_settlement Invade_Belfast, Belfast, maintain

    spawn_army
    faction papal_states
    character random_name, named character, age 44, x 19, y 61, label Invade_Galway, direction W
    traits GoodCommander 2 , PublicFaith 3 , ReligionStarter 1
    unit Feudal Knights exp 2 armour 1 weapon_lvl 1
    unit Sergeant Spearmen exp 1 armour 1 weapon_lvl 1
    unit Flagellants exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Religious Fanatics exp 0 armour 0 weapon_lvl 0
    unit Great Cross exp 0 armour 0 weapon_lvl 0
    sieging
    siege_settlement Invade_Galway, Galway, maintain

    ; 9 - Tell the neighbors

    historic_event irish_convert factions { england, scotland, wales, norway, ireland, }

    terminate_monitor

    end_monitor

    *MEMBER OF THE HOUSE OF HADER* *UNDER THE CRUEL & MERCILESS PATRONAGE OF y2day*

Posting Permissions

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