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

Vanharian

Sergeant
56 Badges
Oct 12, 2018
69
28
  • Stellaris: Ancient Relics
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Hearts of Iron 4: Arms Against Tyranny
  • Crusader Kings II: Holy Fury
  • Victoria 3 Sign Up
  • Imperator: Rome Sign Up
  • Cities: Skylines - Campus
  • Cities: Skylines - Green Cities
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Nemesis
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Stellaris: Necroids
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Conclave
  • Stellaris
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: By Blood Alone
  • Age of Wonders III
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: The Old Gods
Hey guys,

I just started with modding Stellaris and I came to a halt on an event I'm making. You can see the process scheme underneath. If the anomaly research is a success, you will get EVENT 1 (otherwise you'll end up with EVENT 2). EVENT 1 gives 4 choices, which outcomes all work fine.

If we follow the path of being 'Any other empire WITHOUT Droid technology' the player ends up with a +4 engineering deposit on the planet and the country_flag for a later event. Then I put in a hidden event (EVENT 3) to trigger when the player has researched Droid tech. EVENT 3 has an 'is_triggered_only' and the triggers are shown in the picture. When I research Droid tech, nothing happens though. All triggers are active and this is also proven to me when I manually trigger EVENT 3 in de console, showing me that all triggers are ticked (it doesn't show all of them ticked when one of the is absent). I tried removing the 'is_triggered_only', but then the event keeps spawning. I tried to remove the 'NOT has policy flag = ai outlawed', but then it just give me a blank screen at the beginning of my game. When I trigger EVENT 3 manually, it triggers EVENT 4 soon after, allowing me to choose the research project and get EVENT 5. These paths all work fine.

When you follow the path of 'Any other empire WITH Droid technology' in EVENT 1, you'll immediately get to the research project since you already have the droid tech. But when I finish the project, nothing happens. In the other path (the one above) the research project just works fine. There's nothing different in the code leading up to EVENT 5 in the other path. There no flags set or anything. The option in EVENT 1 is basically the same as in EVENT 4.

In both instances I have checked whether I have a typo or a missing { , but that doesn't seem to be the case.

Can someone please help me? I can send the code if necessary.


process.png
 
Event 3
If I'm correct, event 3 needs to be called every time an empire increases a tech "on_tech_increased" in common\Stellaris\common\on_actions. The event will only fire if the triggers are met.

Event 5
Event 5 would have to be called at the end of the project 1 specifically "country_event = { id = your_event_5 }"


Events with trigger_only need to be called somewhere, they wont happen on their own if the triggers are met. The triggers are a check after the event starts not before, so it needs to be initiated from somewhere.

If I understood your issue correctly I think those two are the reason it doesnt work.
 
First of all, thanks for the help! Big fan of your mods haha

Event 3
If I'm correct, event 3 needs to be called every time an empire increases a tech "on_tech_increased" in common\Stellaris\common\on_actions. The event will only fire if the triggers are met.

This helped! :)

Event 5
Event 5 would have to be called at the end of the project 1 specifically "country_event = { id = your_event_5 }"


Events with trigger_only need to be called somewhere, they wont happen on their own if the triggers are met. The triggers are a check after the event starts not before, so it needs to be initiated from somewhere.

The project ended with that line already, but for some reason the project doesn't work when you go from EVENT 1 to the project directly and does work when you go from EVENT 1 through 3 and 4 to the project. Both lines in the green circles stem from the same project and are the same code, but one doesn't want to work haha
 

Attachments

  • process.png
    process.png
    16,2 KB · Views: 0
I think it maybe has something to do with my use of various kinds of event scopes and locations scopes. :/