Hearts of Iron IV

Hearts of Iron IV

Not enough ratings
How to Give a Country Resource Rights to a State
By NTB and 1 collaborators
How to give a country resource rights to a specific state; either when the game starts or via event, focus, etc.
   
Award
Favorite
Favorited
Unfavorite
Intro
  • You can use the effect
    give_resource_rights = { receiver = TAG state = 123 }
    or
    give_resource_rights = { receiver = TAG state = 123 resources = { steel oil } }
  • To give it to them at the start of the game, you have to use an on_startup script.
Tutorial - Events, Focuses, Decisions
  • To give resource rights via an event, simply put the effect listed in the intro into the option block like below:


  • To give resource rights via a focus, simply put the effect into the completion_reward block like below:


  • To give resource rights via a decision, simply put the effect into the remove_effect block or any similar effect block like below:
Tutorial - On Start
  • To give a country resource rights at the start of the game, you have to use an on_actions script.

  • Create a new folder in the "mod_name/common" folder called "on_actions".


  • Create a new .txt file inside. It may be named anything, however I tend to call it "TAG_on_actions.txt", where TAG is the tag of my country who owns the resources.


  • Create an on_actions block, and inside an on_startup block, and again inside an effect block like below. Then write the tag of the country who controls the resources, and then the give_resource_rights effect like below:

  • that is all
End
holy moly
1 Comments
kanomwaai 3 Aug, 2023 @ 4:56pm 
thanks