Event not firing
In the option for your event you need to replace the text with localisation variables.
long_name = British Central Asian Oil Company
name = BCAOC
You would need to add those to a localisation file, and set:
long_name = YOUR_LOCALISATION_REFERENCE
name = YOUR_LOCALISATION_REFERENCE
You may be able to do this, but not too sure:
long_name = "British Central Asian Oil Company"
name = "BCAOC"
It' still not firing. Is my trigger condition right?:
has_resources_amount = {
resource = oil
amount > 10
state = 742
}
and for the option in my event I have "always = yes" in the trigger space
and do I have to tick the box "Fire For Sender" so taht it shows up as the country I play?
The always=yes should be fine. But I don't think it's needed, as that is the only option.
As for the "Fire For Sender" I'm not too sure. I think it is correct, but that option always confuses me when it's not being fired by another country.
[17:05:49][trigger.cpp:627]: Invalid scope type for trigger has_resources_amount in events/test.txt line : 12
Is this maybe the problem? And if yes, how can I fix that?
I changed the code a bit and now it seems to work lol
ZwergenPiste
Hey there.
I created an event which should fire once you have more than 10 oil in one of your states. Yet nothing happens when I reach mor ethan 10 oil and I don't know what the problem could be.
This is what my error.log says:
[16:37:37][dlc.cpp:227]: Invalid supported_version in file: mod/ugc_2389652888.mod line: 12
[16:37:37][persistent.cpp:48]: Error: "Unexpected token: thumbnail, near line: 6" in file: "mod/ugc_2488199457.mod" near line: 6
[16:37:52][countrydatabase.cpp:137]: Duplicate Country Tag - TAJ
[16:37:55][parser.cpp:932]: Error: unexpected token in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 393 ( category )
[16:37:55][effect.cpp:297]: Error: "Unknown technology category : }, near line: 393" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 393
[16:37:55][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/tajikistan-focus-tree.txt line : 621
[16:37:55][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 621" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 633
[16:37:55][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/tajikistan-focus-tree.txt line : 1197
[16:37:55][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 1197" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 1209
[16:37:57][id.cpp:96]: Failed to create id 17700001 50. Already exists in game. This might crash the game.
[16:37:57][namespacemanager.h:210]: Reverse id lookup: id 17700001 = test.1
[16:37:57][trigger.cpp:627]: Invalid scope type for trigger has_resources_amount in events/test.txt line : 12
[16:37:57][parser.cpp:932]: Error: unexpected token in file: "events/test.txt" near line: 29 ( Central )
[16:37:57][parser.cpp:932]: Error: unexpected token in file: "events/test.txt" near line: 29 ( Oil )
[16:37:57][effect.cpp:297]: Error: "Unexpected token: Central, near line: 29
Unexpected token: Oil, near line: 29" in file: "events/test.txt" near line: 31
[16:37:57][database_scoped_variables.cpp:323]: invalid database object for effect/trigger: support_tech. use var:var_name to explicitly use variables in effects/triggers
[16:37:59][flagtextureatlas.cpp:524]: Error loading flag for country GTU : Ideology democratic : Path gfx/flags/ : File not found
[16:37:59][flagtextureatlas.cpp:524]: Error loading flag for country GTU : Ideology democratic : Path gfx/flags/medium/ : File not found
[16:37:59][flagtextureatlas.cpp:524]: Error loading flag for country GTU : Ideology democratic : Path gfx/flags/small/ : File not found
[16:37:59][flagtextureatlas.cpp:524]: Error loading flag for country GTU : Ideology democratic : Path gfx/flags/small/ : File not found
[16:37:59][gameapplication.cpp:710]: The game has loc key collisions. Check logs/text.log for more details
Any help would be appreciated!