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

thesolaris

Private
48 Badges
Jul 22, 2014
19
0
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Darkest Hour
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Battle for Bosporus
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • Crusader Kings II: Jade Dragon
Hi everyone,

So I'm trying to create a Mod that would enable tracking planet.

So I created an event Chain, and a planet_event that add a point of interest in the event chain.
Thing is, I don't know how to fetch the planet info while inside the point of interest definition,
any ideas?

Here's the code where i'd like to get the info:

option = {
name = "ok"
trigger = { NOT = { has_planet_flag = tracked_planetoid } }
create_point_of_interest = {
id = planet_id
name = planet_name
desc = "test"
event_chain = track_chain
location = planet_location​
}
hidden_effect = {
set_planet_flag = tracked_planetoid​
}​
}
 
Hi everyone,

So I'm trying to create a Mod that would enable tracking planet.

So I created an event Chain, and a planet_event that add a point of interest in the event chain.
Thing is, I don't know how to fetch the planet info while inside the point of interest definition,
any ideas?

Here's the code where i'd like to get the info:

option = {
name = "ok"
trigger = { NOT = { has_planet_flag = tracked_planetoid } }
create_point_of_interest = {
id = planet_id
name = planet_name
desc = "test"
event_chain = track_chain
location = planet_location​
}
hidden_effect = {
set_planet_flag = tracked_planetoid​
}​
}

The only thing that matters here is location. The ID and name are not related whatsoever to the planet, they are POI specific (POI id and what will show up in game as the name of the POI). To get the planet, just use random_owned_planet with specific conditions in limit and save it as an event target, then just use location = event_target:EVENTTARGETNAME.
 
The only thing that matters here is location. The ID and name are not related whatsoever to the planet, they are POI specific (POI id and what will show up in game as the name of the POI). To get the planet, just use random_owned_planet with specific conditions in limit and save it as an event target, then just use location = event_target:EVENTTARGETNAME.
I know theyr are POI specific, but I can't handle multiple track if the POI all have the same Id, so I need to find a way to make them variable, like by inserting the planetID in it.
 
That's what I was wondering as well. How do flags work in multiplayer. Is it only for the localplayer or everybody?

Well, flags are for each separate entity, so I don't really see how they would work different in multiplayer - they would be global. The only difference would be having a human player instead of AI.