aliens

Author Topic: [DONE][Suggestion] Repeatable Research Topics  (Read 1509 times)

Offline Daev

  • Sergeant
  • **
  • Posts: 44
    • View Profile
[DONE][Suggestion] Repeatable Research Topics
« on: November 21, 2024, 11:23:16 pm »
In conjunction with my other request, in order to achieve this "mission select" style of research topic, I would want to have a topic that has no material or item requirements, that is also repeatable. So the same mission can be generated over and over, or even as a way to have scientist and research man hour be used to get items, as a tradeoff for research, or if there is nothing to research.

For example, If you have nothing to research, which will be quite possible in my TC, you could research "Community Outreach". Which would spawn an event with random rewards, or a random outcome. Almost like a clicker game, or similar to covert actions I guess.

If this is already doable, I apologize in advanced, but if not, is this something that is able to be implemented?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9415
    • View Profile
Re: [REQUEST] Repeatable Research Topics
« Reply #1 on: November 21, 2024, 11:46:39 pm »
Are these just dummy always-present items in the list, which can be researched from the very beginning until the very end of the game?
Or is it something smarter?
If smarter, how much smarter?

The easiest way to implement this is to not add the researched topic to the list of researched topics when researched... which feels weird, but if that's enough for you...
« Last Edit: November 22, 2024, 12:00:09 am by Meridian »

Offline Daev

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Re: [REQUEST] Repeatable Research Topics
« Reply #2 on: November 22, 2024, 12:04:20 am »
It would be a topic that has no requirements except for a man hour cost. These would not be that smart, as the event itself can have random outcomes.

The only thing that I think that would be "Smart" would be if the events are chosen from a weighted list, and maybe have an option to override the region to be the one the base is in, or an adjacent one.

It would be a dummy research technically, as it would not unlock anything, only trigger an event that would then give you an outcome.

These would then be "Upgraded", as old topics are disabled, and new ones are enabled with better event pools, etc.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9415
    • View Profile
Re: [REQUEST] Repeatable Research Topics
« Reply #3 on: November 22, 2024, 12:47:52 am »
By "event" do you mean "research completion" or "alien mission spawn" or "OXCE geoscape event" ?
And what do you mean by "outcome" of the event?

I'm quite confused by the terminology in your last post, in relation to the first post in this thread and also in relation to the other request.

Offline Daev

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Re: [REQUEST] Repeatable Research Topics
« Reply #4 on: November 22, 2024, 12:52:06 am »
By "event" do you mean "research completion" or "alien mission spawn" or "OXCE geoscape event" ?
And what do you mean by "outcome" of the event?

I'm quite confused by the terminology in your last post, in relation to the first post in this thread and also in relation to the other request.

So for this one, I mean spawnedEvent, So the main premise is a topic that does not go away unless disabled, and for me, the purpose of it would be to repeat the spawnedEvent that it causes.

That's it basically for this request, I mentioned if a weight listed of spawnedEvent's could be implemented, that would be the best version, but its not a part of this request, per the rules.

I apologize tho for any terminology errors, still not super seasoned of a modder, thats on me.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9415
    • View Profile
Re: [REQUEST] Repeatable Research Topics
« Reply #5 on: November 22, 2024, 01:01:19 am »
So for this one, I mean spawnedEvent, So the main premise is a topic that does not go away unless disabled, and for me, the purpose of it would be to repeat the spawnedEvent that it causes.

Understood.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9415
    • View Profile
Re: [DONE][Suggestion] Repeatable Research Topics
« Reply #6 on: January 07, 2025, 10:07:48 pm »
Done.
https://github.com/MeridianOXC/OpenXcom/commit/197eec82dc77d7bb8b0b007af5ba97119cdc7d34

Sample ruleset:

Code: [Select]
research:
  - name: STR_REPEATABLE_TOPIC
    spawnedEvent: STR_TEST_EVENT1
    cost: 192
    points: 50
    repeatable: true  # default false

Offline robin

  • Commander
  • *****
  • Posts: 1237
  • ULTIMATE ROOKIE
    • View Profile
Re: [DONE][Suggestion] Repeatable Research Topics
« Reply #7 on: March 03, 2025, 01:03:20 am »
Is it possible, using this feature, to do the following:

1. Player obtains an INTEL item.
2. Player researches the INTEL item (destroying it in the process) to spawn a mission site.
3. Rinse and repeat.
?

I took for granted that it was possible, but an event doesn't seem to allow spawning missions; perhaps I'm missing something.
Thanks.

Edit: Maybe the event is unnecessary and it can be achieved with researchTriggers+maxRuns:1 in missionScripts. It depends if the missionScript is restarted once the research is repeated.
« Last Edit: March 03, 2025, 01:12:02 am by robin »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9415
    • View Profile
Re: [DONE][Suggestion] Repeatable Research Topics
« Reply #8 on: March 03, 2025, 10:05:15 am »
This suggestion is for repeatable research only.

For research spawning alien missions, there is a separate suggestion.