• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

DocFlamingo

Recruit
16 Badges
Jun 30, 2016
9
0
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • War of the Vikings
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • BATTLETECH
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
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:

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?
 
Use one of the on_actions, monthly or daily.

Code:
on_daily_bombardment = {
    events = {
        planet_event =  ##
    }
}



planet_event = {

    id = nuke.1

    is_triggered_only = yes

    hide_window = yes

    trigger = {

        not = {
            is_planet_class = pc_nuked
        }
        fortification_health < 1

        FROM = {
            owner = {
                is_ai = no
            }
            orbital_bombardment = full
        }

    immediate = {

        every_tile = {
            limit = {
                or = {
                    has_grown_pop = yes
                    has_growing_pop = yes
                }
            }
            kill_pop = yes
        }

        if = {
            limit = {
                is_planet_class = pc_ringworld_habitable
            }
            change_pc = pc_ringworld_habitable_damaged

            else = {
                change_pc = pc_nuked
            }
        }
    }
}

This will now check if the trigger is met on a daily/monthly basis and then execute.