Hey all. Working on an event and still haven’t quite gotten my head around these things. What I am trying to do: I have made planetary bombardment much more deadly and I want the three options to be “Ground Support,” “Bombardment,” and “Annihilation.” The third option will destroy the planet and turn it into a Tomb World. Here is what I’ve got so far:
The error log is telling me the following (I’ve indicated the line numbers in the code to help identify them):
So, what am I doing wrong?
Code:
namespace = nuke #Nuke it from orbit; it's the only way to be sure.
country_event = { id = nuke.1
title = nuked.name
desc = nuked.desc
picture = GFX_evt_city_ruins
is_triggered_only = yes
trigger = {
FROM = { is_ai = no }
orbital_bombardment = light #Change to full after testing (LINE 16)
fortification_health = 0 #(LINE 18)
NOT = {
is_planet_class = pc_nuked} #(LINE 21)
}
immediate = {
FROM = {
every_owned_pop = { kill_pop = yes }
if = {
limit = {
is_ringworld = yes
}
change_pc = pc_ringworld_habitable_damaged
}
if = {
limit = {
is_ringworld = no
}
change_pc = pc_nuked
}
}
}
}
The error log is telling me the following (I’ve indicated the line numbers in the code to help identify them):
Code:
[08:52:12][trigger.cpp:322]: Invalid Scope type for trigger orbital_bombardment in events/nuke_planet.txt line : 16
[08:52:12][trigger.cpp:322]: Invalid Scope type for trigger fortification_health in events/nuke_planet.txt line : 18
[08:52:12][trigger.cpp:322]: Invalid Scope type for trigger is_planet_class in events/nuke_planet.txt line : 21
[08:52:12][eventmanager.cpp:188]: Event nuke.1 has no options in events/nuke_planet.txt
So, what am I doing wrong?