# Multiple Character Mod

**URL:** <https://discourse.cataclysmdda.org/t/multiple-character-mod/16589>\
**Category:** The Drawing Board\
**Created:** [September 13, 2018, 8:16pm UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589 "2018-09-13T20:16:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foqus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/foqus/32/9295_2.png) [@Foqus](https://discourse.cataclysmdda.org/u/Foqus)\
**Post date:** [September 13, 2018, 8:16pm UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/1 "2018-09-13T20:16:27Z")

</div>

Since multiple characters an inhabit the same world, Would it be possible to create a mod to where you could have them in the same world at the same time. Then add a function to swap between characters without having to load them through the main menu. Also there could be an option to have the unselected character use the some basic NPC ai or you can control the directly?

---

<div class="post-metadata">

**Author:** ![Azure\_Soul\_Azur](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/azure_soul_azur/32/2835_2.png) [@Azure\_Soul\_Azur](https://discourse.cataclysmdda.org/u/Azure_Soul_Azur)\
**Post date:** [September 14, 2018, 12:31am UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/2 "2018-09-14T00:31:37Z")

</div>

… Battle maid squad… + Futanari master :3

Really hope it can be done.

---

<div class="post-metadata">

**Author:** ![lispcoc](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/lispcoc/32/12445_2.png) [@lispcoc](https://discourse.cataclysmdda.org/u/lispcoc)\
**Post date:** [September 14, 2018, 1:31am UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/3 "2018-09-14T01:31:28Z")

</div>

This could be realized by using LUA. (but current LUA API is not perfect to serialize/deserialize player data.)

---

<div class="post-metadata">

**Author:** ![Foqus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/foqus/32/9295_2.png) [@Foqus](https://discourse.cataclysmdda.org/u/Foqus)\
**Post date:** [September 14, 2018, 1:47am UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/4 "2018-09-14T01:47:48Z")

</div>

What’s LUA… I’m new to this 😊

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [September 14, 2018, 5:56pm UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/5 "2018-09-14T17:56:25Z")

</div>

There was some discussion about swapping control from a PC to an NPC a long ways back. It’s probably doable, but someone needs to write the code to dump a PC’s data out into NPC format and vice versa. Once that’s done, you just need some UI stuff to make it happen. Oh here, this was the thread:

> [@Player character switching?](https://discourse.cataclysmdda.org/t/player-character-switching/16188/2):
>
> This wouldn’t be trivial to implement, but it’s not impossible either. You’d need to write two functions, convert npc\_to\_player and convert\_player\_to\_npc, or more likely player::serialize\_as\_npc and npc::serialize\_as\_pc. players and npcs both inherit class character, so that wouldn’t be too hard, I expect. Then you’d have to add a menu or something to let you switch, which would serialize[1] the player as an NPC and the NPC as the player, and then deserialize them. I’d start with just the seri…

---

<div class="post-metadata">

**Author:** ![Human\_Shield](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@Human\_Shield](https://discourse.cataclysmdda.org/u/Human_Shield)\
**Post date:** [September 14, 2018, 6:09pm UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/6 "2018-09-14T18:09:29Z")

</div>

There was a server running that let multiple players write to the map space at the same time. Stuff you drop could disappear but you could wander into areas built my other players.

I assume running multiple characters on the same world file could changes things on the same map.

Need option with the player faction camp to start saving NPCs as new character files and let the player switch to one if they die.

---

<div class="post-metadata">

**Author:** ![Foqus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/foqus/32/9295_2.png) [@Foqus](https://discourse.cataclysmdda.org/u/Foqus)\
**Post date:** [September 15, 2018, 5:16pm UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/7 "2018-09-15T17:16:17Z")

</div>

So if I create 2 characters in the same world. Theoretically they should be able to be in the world simultaneously since they are both tied to that world. At the very least, a function that would allow me to switch characters (not in the world at the same time but created in the same world) would be nice

---

<div class="post-metadata">

**Author:** ![Demosthenes](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/demosthenes/32/3163_2.png) [@Demosthenes](https://discourse.cataclysmdda.org/u/Demosthenes)\
**Post date:** [September 16, 2018, 12:13am UTC](https://discourse.cataclysmdda.org/t/multiple-character-mod/16589/8 "2018-09-16T00:13:02Z")

</div>

I run 20~ survivor on the same world as there is literally that much shit to do and I wanted to explore every mutation tree in a quasi-legit way. just do not have one survivor too far ahead. My once-main scout (acid proof now but stuck with really beautiful butterfly wings) is 90 days ahead of everyone else and has made hundreds of pounds of food rotten as the time snaps back and forth
