• 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.

LogicSequence

Lightwave Alien
25 Badges
Sep 25, 2006
452
11
  • Stellaris: Humanoids Species Pack
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall
  • Stellaris: Ancient Relics
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Ancient Space
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • Magicka
  • Crusader Kings II
Ok banging my head on this one, hope i'm just missing something stupid. I want to do a check to see if a particular ship class exists within a fleet. I thought i could do it this way:

Code:
FROM = { any_ship = { is_ship_class = shipclass_i_want_to_check } }

This is getting called from on_daily_bombardment so FROM is listed as "From = Fleet performing the delicate bombardment." However this isn't working at all. So... HELP?
 
I don't think any_ship scopes to fleet, so you will probably have to do something like

FROM = {
SOLAR_SYSTEM = {
any_ship_in_system = {
FLEET = { is_same_value = PREVPREVPREV }
<checks here>​
}​
}​
}
 
I don't think any_ship scopes to fleet, so you will probably have to do something like

FROM = {
SOLAR_SYSTEM = {
any_ship_in_system = {
FLEET = { is_same_value = PREVPREVPREV }
<checks here>​
}​
}​
}

Well that didn't seem to work, though i agree it should. This is what i'm trying to do: trigger an event after a planet is bombarded that will only trigger if a certain ship class is in the fleet doing the bombarding. As per your suggestion i tried:

Code:
trigger = {
    FROM = {
        solar_system = {
            any_ship_in_system = {
                fleet = { is_same_value = PREVPREVPREV }
                is_ship_class = checked_class
            }
        }
    }
    ROOT = {
        fortification_health = 0
    }
}

But that still triggers the event no matter what. :(
 
And never mind, this is apparently an issue with is_ship_class. I did get it to work with is_ship_size, however. So that will do just fine since it is a custom ship size. You are my new best friend, thanks man!

Working code:
Code:
trigger = {
    FROM = {
        solar_system = {
            any_ship_in_system = {
                fleet = { is_same_value = PREVPREVPREV }
                is_ship_size = checked_size
            }
        }
    }
    ROOT = {
        fortification_health = 0
    }
}
 
I don't think any_ship scopes to fleet, so you will probably have to do something like

FROM = {
SOLAR_SYSTEM = {
any_ship_in_system = {
FLEET = { is_same_value = PREVPREVPREV }
<checks here>​
}​
}​
}

Care to take a crack at this one??

I want to cancel a fleet's actions with an event triggered from on_daily_bombardment (for example: a fleet has bombed a planet to 0 fortification, now cancel it's actions and stop bombarding). Anyone have an example of how to do that from on_daily_bombardment? I've been trying for a while and i'm at a loss.

Tried this, doesn't work:
Code:
FROM = { clear_fleet_actions = this }
 
Is the fleet in aggressive stance? That will cause it to auto-bombard again after clearing fleet actions. Otherwise, you can try clear_orders = yes (or maybe it is clear_orders = THIS). Could also try move_to = THIS or queue a wait fleet action.
 
Is the fleet in aggressive stance? That will cause it to auto-bombard again after clearing fleet actions. Otherwise, you can try clear_orders = yes (or maybe it is clear_orders = THIS). Could also try move_to = THIS or queue a wait fleet action.

W00T! Wait didn't work but move_to did. Thanks again!