OpenXcom Forum
Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: Solarius Scorch on January 03, 2017, 02:50:05 pm
-
I would like to make a special civilian unit that, if survives the battle, is transported to the base like a stunned alien.
Is this possible without new code?
-
I would like to make a special civilian unit that, if survives the battle, is transported to the base like a stunned alien.
Is this possible without new code?
I don't think so. I've assigned Sectoids as civilian units to see if they were recovered after battle but it didn't work.
-
I have volunteered to implement that: https://openxcom.org/forum/index.php/topic,4520.msg68451.html#msg68451
But nobody was interested... so instead I did soldier manufacturing, which was a hype back then (and still unused to date).
-
I have volunteered to implement that: https://openxcom.org/forum/index.php/topic,4520.msg68451.html#msg68451
But nobody was interested... so instead I did soldier manufacturing, which was a hype back then (and still unused to date).
Not unused, it's in Piratez now, and I'm planning on using it. I think I'd find use for recoverable civilians too, now that my mod plans are becoming more concrete.
-
What it will be, if you use unit race: CIVILIAN and corpse recover: true? And create additional item, for live civilian body, like with common aliens?
-
I would like to make a special civilian unit that, if survives the battle, is transported to the base like a stunned alien.
units:
- type: MALE_CIVILIAN
civilianRecoveryType: STR_SCIENTIST # +1 scientist in transfer (24 hours)
civilianRecoveryType: STR_ENGINEER # +1 engineer in transfer (24 hours)
civilianRecoveryType: STR_SOLDIER_S # +1 soldier of type STR_SOLDIER_S in transfer (24 hours)
civilianRecoveryType: STR_SECTOID_MEDIC # +1 prisoner (if available prison space; otherwise nothing (no corpse))
civilianRecoveryType: STR_RIFLE # +1 item in stores
race: STR_CIVILIAN
...
PS: works only on civilians (i.e. NEUTRAL faction)... not other units
PS2: OXCE+ needed
-
units:
- type: MALE_CIVILIAN
civilianRecoveryType: STR_SCIENTIST # +1 scientist in transfer (24 hours)
civilianRecoveryType: STR_ENGINEER # +1 engineer in transfer (24 hours)
civilianRecoveryType: STR_SOLDIER_S # +1 soldier of type STR_SOLDIER_S in transfer (24 hours)
civilianRecoveryType: STR_SECTOID_MEDIC # +1 prisoner (if available prison space; otherwise nothing (no corpse))
civilianRecoveryType: STR_RIFLE # +1 item in stores
race: STR_CIVILIAN
...
PS: works only on civilians... not other units
OXCE+?
-
OXCE+?
Yup.
Sorry, I keep forgetting I should add that remark on non-oxce subforums.
-
Thank you, you're the best.
-
Added also possibility to name to recovered soldiers.
And to specify custom soldier attributes in a similar way as in:
- manufacturing: https://openxcom.org/forum/index.php/topic,8615.msg132649.html#msg132649
- and events: https://openxcom.org/forum/index.php/topic,7215.msg132650.html#msg132650
Attributes `spawnedPersonName` and `spawnedSoldier`: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#AI_Units_.28Aliens.2FCivilians.29