aliens

Author Topic: [DONE][Suggestion] Regions and countries providing/banning "base functions"  (Read 2636 times)

Online Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
This more a fluff, more interesting would be if base placement affect what is possible to buy/recruit
« Last Edit: October 30, 2022, 11:45:03 am by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Suggestion] Regions providing
« Reply #1 on: October 28, 2022, 01:25:41 am »
This more a fluff, more interesting would be if base placement affect what is possible to buy/recruit

This is already possible (and used by some mods, for example Chronicles.)

Soldier nationality/name is not, and it is rather important.
(Edit by Meridian: implemented here: https://openxcom.org/forum/index.php/topic,10845.0.html)
« Last Edit: December 30, 2023, 10:15:23 am by Meridian »

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: [Suggestion] Regions providing
« Reply #2 on: October 28, 2022, 02:24:16 am »
Even though i might misinterpreted this topic.

This is already possible (and used by some mods, for example Chronicles.)
...

If this is true that should mean nationality/names based on placement is already possible.
Using the route:
* Define nationality based soldier type with corresponding names ('soldierNames') and flags ('flagOffset'?).
* Use buy/recruit limitation on defined soldier type based on placement (using the method from chronicles).

Online Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [Suggestion] Regions providing
« Reply #3 on: October 28, 2022, 12:36:24 pm »
This is already possible (and used by some mods, for example Chronicles.)

Soldier nationality/name is not, and it is rather important.
But this is "global" as far I understand, some time ago Meridian implement bonuses based on starting region: https://openxcom.org/forum/index.php/topic,7215.msg141846.html#msg141846
I mean different feature, each base have different stuff to buy based on region where its placed.

I now thinking that some regions could simply provide "base functions", this will allow multiple things affected by it (buy, research, build) but not make code more complex.
This could be provide by globe texture too.
« Last Edit: December 30, 2023, 10:10:24 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9087
    • View Profile
Re: [Suggestion] Regions providing
« Reply #4 on: October 28, 2022, 12:39:50 pm »
I now thinking that some regions could simply provide "base functions", this will allow multiple things affected by it (buy, research, build) but not make code more complex.
This could be provide by globe texture too.

That sounds nice, but probably deserves a separate thread.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9087
    • View Profile
Re: [Suggestion] Regions providing "base functions"
« Reply #5 on: October 30, 2022, 11:46:18 am »
I've split this discussion from the other thread.

@Yankes: I leave the implementation to you, if you're interested :)

Online Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [Suggestion] Regions providing "base functions"
« Reply #6 on: October 30, 2022, 12:42:07 pm »
ok

Offline Osobist

  • Sergeant
  • **
  • Posts: 36
    • View Profile
Re: [Suggestion] Regions providing "base functions"
« Reply #7 on: November 07, 2022, 08:52:30 am »
Quote
I now thinking that some regions could simply provide "base functions", this will allow multiple things affected by it (buy, research, build) but not make code more complex.
This could be provide by globe texture too.

Maybe add the countries too with the same logic?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9087
    • View Profile
Done.

Sample ruleset:

Code: [Select]
items:
  - type: STR_SMOKE_GRENADE
    requiresBuyBaseFunc: [MI6]
  - type: STR_PROXIMITY_GRENADE
    requiresBuyBaseFunc: [CIA]

countries:
  - type: STR_USA
    provideBaseFunc: [CIA]
    forbiddenBaseFunc: [HUAWEI]
  - type: STR_UK
    provideBaseFunc: [MI6]

regions:
  - type: STR_NORTH_AMERICA
    provideBaseFunc: [JAMBALAYA]
    forbiddenBaseFunc: [FOIE_GRAS]

https://github.com/MeridianOXC/OpenXcom/commit/98ce77ce82c5724662ffb6758acda6b94beeadc1