OpenXcom Forum

OpenXcom Forks => OXCE Suggestions NEW => OpenXcom Extended (OXCE) => OXCE Suggestions Archive => Topic started by: Unit on November 07, 2024, 04:18:21 am

Title: [REQUEST] Removed units list
Post by: Unit 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) 🙃
Title: Re: [REQUEST] Removed units list
Post by: Meridian on November 07, 2024, 09:27:40 am
Please read https://openxcom.org/forum/index.php?topic=11631.0 before opening suggestions here.
Title: Re: [REQUEST] Removed units list
Post by: Unit 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?
Title: Re: [REQUEST] Removed units list
Post by: Meridian 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)