Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I already did this. I looked at the original game event (even some modded) and I coded it
It worked when i triggered it via the console. But the problem is to how to trigger it when germany declares war on poland. I looked at the game events (and mods) and I noticed the "trigger" command. So I wrote trigger (and the requirements) and launched the game. But when i declared war on poland nothing happens. I am not sure if this the right command but i didnt find anything else.
So i want to know how to trigger it when this or curtain action happen.
thanks for the reply though
country_event = {
id = germany.1
title = germany.1.t
desc = germany.1.desc
trigger = {
GER = {
has_war_with = POL
}
}
fire_only_once = yes #up to you
option {
name = germany.1.a
#effect
}
}
Plus, just to remind you again
Event: https://imgur.com/a/jrMiwgv
News: https://imgur.com/a/hnuWipu
So yes, there's a difference.
I re-read your post and you are asking about triggers, check out the wikis for full details. Try some trial and error coding, think outside the box, you can learn a lot this way, mostly how not to do something, but it is rewarding when you discover the correct code and the lesson would be well learned.
https://hoi4.paradoxwikis.com/Conditions
Conditions
This is a community maintained wiki. If you spot a mistake then you are welcome to fix it.
Conditions (also known as triggers) are used to specify when the execution of effects occurs. When a trigger returns true, then the execution will continue, otherwise it stops. Several triggers, including the default AND-trigger, allow nesting to create more complex expression.
The list of triggers may be outdated. A complete, but unsorted, list of triggers can be found in /Hearts of Iron IV/documentation/triggers_documentation.html or /Hearts of Iron IV/documentation/triggers_documentation.md.
The following video should help, it is possible that some of the things discussed might be outdated but you will lean a lot from them.
Hearts of Iron IV: Modding In Depth: Events - #15
https://www.youtube.com/watch?v=AXyANZ7pS64&list=PLBGZyYzya9TUnpm8XTmbIbSabungljqzk&index=16
[HOI4 Modding] - Creating new events
https://www.youtube.com/watch?v=Z1r4_KZbrL4&list=PLt_7vUaEvaGTJ0ISBqY2v4EyfmPALiVS7&index=15
Welcome to fun and rewarding world of modding.