Author Topic: [REQUEST] Removed units list  (Read 175 times)

Offline Unit

  • Sergeant
  • **
  • Posts: 16
    • View Profile
[REQUEST] Removed units list
« on: November 07, 2024, 04:18:21 am »
Hi, could you implement a method for removal of units & store them in an array with a datatag for a text string identifier

This way we can start having NPC type units that are available for a limited time (like the rosigma lads are trying for)
Also- by using the datatag identifier, we can have units removed for myriad various reasons such as "abducted" or "AWOL" or anything..

(EG: I remove 3 units and tag them as "absconded", I then have random chance per mission to have 1 or more of them present on the battle map... Units tagged "AWOL" I might do the same -and- have a small % chance for 1 or more to return via the usual unit arriving method as seen in base logs.. units marked "abducted" I can spawn in special rescue missions, etc etc)

EDIT: all stored in same "removedUnits[n]" array but each entry gets an identifier text string, if we wanted to do something with "AWOL" tagged units we just use code in the relevant event ->
if removedUnits[n]="AWOL" then { do stuff }

(I haven't declared the array properly in this example but you know whut I'm talking about, Willis) 🙃
« Last Edit: November 07, 2024, 07:58:24 am by Unit »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9057
    • View Profile
Re: [REQUEST] Removed units list
« Reply #1 on: November 07, 2024, 09:27:40 am »
Please read https://openxcom.org/forum/index.php?topic=11631.0 before opening suggestions here.

Offline Unit

  • Sergeant
  • **
  • Posts: 16
    • View Profile
Re: [REQUEST] Removed units list
« Reply #2 on: November 08, 2024, 06:56:43 am »
I did, champ
No point having me just read the thing again when I apparently fucked up first time, eh?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9057
    • View Profile
Re: [REQUEST] Removed units list
« Reply #3 on: November 08, 2024, 09:22:32 am »
- I accept modding features ONLY from modders (either established modders, or new modders who have already published something non-trivial)