Hearts of Iron 3 Message Board  

We currently don't have any Hearts of Iron 3 trainers, cheats or editors for PC. Premium members may REQUEST new trainers and cheats using our request system as long as the game has not been permanently retired or multiplayer only in nature. Use our message board to discuss the game.
Hearts of Iron 3 Trainer
Message Board for PC version
Page 1 of 4   •  First Page  •  Previous Page  •   Next Page  •   Last Page
Signup or Login to Post
cheat script
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to overweightninja
    ELITE
    overweightninja posted on Aug 11, 2009 3:48:03 PM - Report post
     
    Quick copy & paste from something I ran up earlier:
    Note I just edited the first entry I could find so the in-game dialogue is still for the "Nationalises Private Sector" event, change this if it bothers you obviously.


    Add this text to "\events\PoliticalEvents.txt" to create the event itself.




    EDIT


    Unless you really feel the need, DO NOT backup the file first, as this results in both files being read by the game, duplicate entries for events etc and therefore CTDs. If you really want to backup first make sure the backups are kept in seperate folders, preferably outside of your HoI3 directory.









    ##########################################
    # Government nationalizes private sector #
    ##########################################
    country_event = {

    id = 5050

    trigger = {
    not = { government = market_liberalism }
    not = { government = social_democracy }
    not = { government = social_liberalism }
    not = { government = social_conservatism }
    dissent = 5000
    }

    mean_time_to_happen = {
    months = 24

    modifier = {
    factor = 2.0
    war = yes
    }
    }

    title = "EVTNAME5005"
    desc = "EVTDESC5005"
    picture = "private_sector"

    option = {
    name = "EVTOPTA5005" # OK
    add_country_modifier = {
    name = "nationalization_of_private_sector_ic"
    duration = 4380
    }
    }
    }


    Then add the following text to \common\event_modifiers.txt to create the actual effects for the event, again edit these if you wish.

    nationalization_of_private_sector_ic = {
    dissent = -10.00
    global_ic = 8.00
    global_manpower_modifier = 10.00
    global_leadership_modifier = 10.00
    global_research_speed = 10.00
    research_efficiency = 100.00
    global_money = 10.00
    global_metal = 10.00
    global_supplies = 10.00
    global_metal = 10.00
    global_energy = 10.00
    global_oil = 10.00
    global_rare_materials = 10.00
    unit_recruitment_time = -1.0
    war_consumer_goods_demand = -1.00
    peace_consumer_goods_demand = -1.00
    espionage_bonus = 10.00
    ruling_party_support = 10.00
    }


    Then you just need to fire the event (bring up console with tilde, then type "event 5050" and strike enter) to enable the cheats!
    Hopefully shouldn't fire at random due to the dissent = 500 requirement.
    Hope that helps someone!




    Edit: Try to stick to the formatting already in the file if possible, doesn't show up properly on here , don't think it should matter too much though.

    [Edited by overweightninja, 8/11/2009 3:49:41 PM]

    [Edited by overweightninja, 8/12/2009 4:52:59 AM]

    [Edited by overweightninja, 12/4/2009 1:45:36 PM]
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to reiks
    ELITE
    reiks posted on Aug 11, 2009 5:49:38 PM - Report post
     
    just a quick question, will event scripting also affect the AI? I'm guessing no, but something tells me it's missing a line like ai_chance = { factor = 0 }

    or something like that.

    Just a guest, can you confirm?
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to overweightninja
    ELITE
    overweightninja posted on Aug 12, 2009 3:13:07 AM - Report post
     
    No, these are random events that are fired by the conditions listed at the start. Although these do apply to the AI as well, I'm hoping the dissent = 5000 line will prevent this (as any nation should suffer a coup or something to bring the dissent back in line before it gets anywhere close to that level), of course if you want to add extra triggers to make doubly sure you can.
    As the trigger should never be activated under normal game conditions (including for human players), it will only fire when manually triggered with console.
    Oh and btw when fired the effects do only apply to the player's nation, no one else.
    Cheers

    [Edited by overweightninja, 8/12/2009 3:14:20 AM]
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to overweightninja
    ELITE
    overweightninja posted on Aug 12, 2009 4:52:18 AM - Report post
     
    Oop **** just noticed something, forgot to change the identifier in the second file to match that in the first :|
    First post updated!

    [Edited by overweightninja, 8/14/2009 2:42:29 PM]
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to reiks
    ELITE
    reiks posted on Aug 12, 2009 10:22:11 AM - Report post
     
    quote:
    originally posted by overweightninja

    No, these are random events that are fired by the conditions listed at the start. Although these do apply to the AI as well, I'm hoping the dissent = 5000 line will prevent this (as any nation should suffer a coup or something to bring the dissent back in line before it gets anywhere close to that level), of course if you want to add extra triggers to make doubly sure you can.
    As the trigger should never be activated under normal game conditions (including for human players), it will only fire when manually triggered with console.
    Oh and btw when fired the effects do only apply to the player's nation, no one else.
    Cheers

    [Edited by overweightninja, 8/12/2009 3:14:20 AM]

    Hmmm that makes a lot of sense actually

    Thanks a lot!

    edit: formatting as you say, doesn't matter. As long as you're editing a .txt file and all tags are present it should work. Formatting is essential for LUA files though

    [Edited by reiks, 8/12/2009 10:28:30 AM]

  • Send a message to WellEndoweded
    INACTIVE
    WellEndoweded posted on Aug 14, 2009 10:10:01 AM - Report post
     
    When I execute the event it crashes my game. I execute the thing, and about two seconds later it just ctd.
     
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to overweightninja
    ELITE
    overweightninja posted on Aug 14, 2009 2:37:55 PM - Report post
     
    Okay, what did you actually do when making the modifications?
    Sounds like a possible typo/formatting error tbh, did you just copy paste from here or?
    Edit: When did you try to make the modifications btw? I made a mistake when I first posted the thread which I've since corrected.

    [Edited by overweightninja, 8/14/2009 2:40:23 PM]
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to Lakattack0221
    ELITE
    Lakattack0221 posted on Aug 15, 2009 5:59:00 PM - Report post
     
    sorry, could you explain this post???!?! I used to do something similar, but I'm confused as to who benefits specifically from thsi trigger? is it the one who sets it off? what sets it off? thank you in advance, this is great.
Page 1 of 4   •  First Page  •  Previous Page  •   Next Page  •   Last Page
Signup or Login to Post
All times are (GMT -06:00) Central Time (US & Canada). Current time is 4:18:18 PM