OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Ostrich-Hungry on September 05, 2022, 06:39:27 pm
-
Hey! I'm making a mod about names, and I would love to have some control over what nationality do agents get.
Xenonauts had something like this: "<Nation MODMERGE="insert" MODMERGEATTRIBUTE="name" name="Hungarian" chance="10" flag="hungary" >"
"chance" is the probability that said agent belongs to that nation (In this case, Hungary).
It would help me to elaborate immersion, because in some games you rarely find soldiers from, say, countries like England, Russia, Germany, China or the United States. Countries that would contribute many more soldiers than the rest.
This work the same for nations that are islands or very small countries. It should be very rare to have soldiers from those countries.
-
How about a weight in the *.nam files:
globalWeight: 100 # 100 is the default; minimum is 1, maximum unlimited
maleFirst:
- David
- Samuel
- Morgan
- Bruce
femaleFirst:
- Jessica
- Sigourney
- Halle
- Whoopi
maleLast:
- Copperfield
- Jackson
- Freeman
- Willis
-
That's perfect! Does it works?
-
Not yet, I just asked if this solution would be acceptable.
-
yes! It would be perfect. Thank you for your consideration!!!
-
Done.
Documentation here: https://openxcom.org/forum/index.php/topic,10845.0.html
Sample mod attached.