Author Topic: What if... some researches could be reusable and trigger missions on completion?  (Read 5172 times)

Offline tylor

  • Captain
  • ***
  • Posts: 53
    • View Profile
I was looking into code and it does not look too hard. Basically, skip (*i)->removeResearch(*iter); in GeoscapState.cpp when "repeatable" flag is set, and do processCommand for missionTriggered param if one is present.

What possibilities would this open. It would allow "buying" missions for highly configurable price in Brainer's and Runt's time and items.  And chain missions in different ways, with forking, even some C&C, etc. It would make Brainers useful even if you have run out of all (or all interesting) researches.

~50 brainerdays seems a reasonable price for something that you should not use lightly, and can be way more for late-game missions. Including some kind of prisoner in price could be a good idea too, as they are harder to keep for a long time, and it can give use for many prisoner types.

For example, instead of waiting while RNG would give you a Reticulan Base Probe, you would craft 10 SG novices and 10 Data Disks into a "Lead to Reticulan Base" item, research it for 300 Brainerdays, and get a Reticulan Base mission on finish. With 3 Guild Reps and a hefty sum of money you will be able to research Guildmaster Location. Or it could be something even more complex, detective-like work, with combination of questioning different people, checking different leads, etc. It can be useful for other mods, such as X-Com Files.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11726
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Not the most important thing, but how would it affect research progress meter? Can you get 100%?

Offline tylor

  • Captain
  • ***
  • Posts: 53
    • View Profile
I think you can't reach 100% even now, considering Codex divergence.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
I think you can't reach 100% even now, considering Codex divergence.

And don't forget STR_UNAVAILABLE :P
100% is unobtainable...

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11726
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Good point, thanks. :)

Offline BetaSpectre

  • Colonel
  • ****
  • Posts: 128
    • View Profile
This makes more sense than random mission encounters, But isn't the system only able to start the mission the month after?


Offline tylor

  • Captain
  • ***
  • Posts: 53
    • View Profile
This makes more sense than random mission encounters, But isn't the system only able to start the mission the month after?
Yeah, code (if I understand it right) looks up possible missions at the start of month (void GeoscapeState::time1Month()) and shedule those who are applicable and have passed the chance roll. Though I think it's possible to schedule mission on research completion, instead of in time1Month function, and/or with zero timeout. Though, I don't know code well enough to tell if it would break something.

Offline BTAxis

  • Colonel
  • ****
  • Posts: 149
    • View Profile
And don't forget STR_UNAVAILABLE :P
100% is unobtainable...

Is it worth adding code to get around that? From the way it sounds you'd need a flag for research to tell the system it doesn't count toward the progression stat, and a way for research to mark other research as completed (for purposes of completion progress only) in addition to itself.

Maybe it's considered a non-issue, and I can live with that, but completionism is a thing and I can definitely see how being able to reach 100% can make people feel better.