Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: New music for Galatia Academy (06/12/24)

Author Topic: How to add random events to planet exploration?  (Read 300 times)

pappyodaniel

  • Ensign
  • *
  • Posts: 20
    • View Profile
How to add random events to planet exploration?
« on: January 18, 2024, 04:03:09 AM »

Hello, I'm working on a skill check / roleplaying mod (think FNV, BG3), and one thing I haven't figured out how to do yet is add random events to when you survey a planet. The idea is to spice up exploration, and give even more meaning to your skill choices.

If anyone knows of any resources that might illuminate how to accomplish this, please let me know, it will unblock development. I've already spent a lot of time trying to figure this out from the API and reading other mods' source, and for some reason it's not clicking.

Thanks in advance!

EDIT: For clarification, I do know how to do branching dialog options and all that. What I'm stuck on is how to randomly initiate a dialog upon surveying a planet.
« Last Edit: January 18, 2024, 04:06:26 AM by pappyodaniel »
Logged

LngA7Gw

  • Lieutenant
  • **
  • Posts: 93
    • View Profile
Re: How to add random events to planet exploration?
« Reply #1 on: January 20, 2024, 01:16:17 PM »

The rule for what happens when you click the "Perform a survey" button is in rules.csv (search surveyPerform)
Logged

pappyodaniel

  • Ensign
  • *
  • Posts: 20
    • View Profile
Re: How to add random events to planet exploration?
« Reply #2 on: January 22, 2024, 07:42:32 AM »

Ok thank you!
Logged