I suggest try with the cloneFrom command (like this: CloneActor.cloneFrom(Player) ). But you cannot switch between characters, only can make a copy from Player (because I don't think it is working: Player.cloneFrom(CloneActor) but noone knows). When try reversing the things seems you only/maybe can use loadpresets and/or blendpresets from the clone, the earned stats and changes should remain the actual values. Also this concept still risky even if it's works...
Or maybe plan your scripts with both player and the clonedplayer and keep player invisible (hide) and act with the clone within the script...
And maybe study the tfgame (transformation game) parts of the game, how the dev implemented the transformation of the player character...
I hoped the clone would be the solution I looked for for making a backup of Player. But it seems creating a Players clone doesn't work... I tried (the indentations aren't shown here, but of course i made them):
Player.hide()
If Player.isMale()
PlayerTwin = generatePerson()
While !PlayerTwin.isMale()
PlayerTwin = generatePerson()
EndWhile
ElseIf Player.isFemale()
PlayerTwin = generatePerson()
While !PlayerTwin.isFemale()
PlayerTwin = generatePerson()
EndWhile
ElseIf Player.isTrans()
PlayerTwin = generatePerson()
While !PlayerTwin.isTrans()
PlayerTwin = generatePerson()
EndWhile
EndIf
PlayerTwin.cloneFrom(Player)
Didn't work, while same scene only with an actor instead of Player worked fine:
Player.hide()
Actor = getSpecific(Dating)
If Actor.isMale()
PlayerTwin = generatePerson()
While !PlayerTwin.isMale()
PlayerTwin = generatePerson()
EndWhile
ElseIf Actor.isFemale()
PlayerTwin = generatePerson()
While !PlayerTwin.isFemale()
PlayerTwin = generatePerson()
EndWhile
ElseIf Actor.isTrans()
PlayerTwin = generatePerson()
While !PlayerTwin.isTrans()
PlayerTwin = generatePerson()
EndWhile
EndIf
PlayerTwin.cloneFrom(Actor)
I also tried:
PlayerTwin = PlayerTwin.cloneFrom(Player) //Doesn't work. Nothing happens
PlayerTwin = generatePerson(cloneFrom(Player)) //Doesn't work. Clones the last person from my contact list but with other stats
I searched all files in Modules, but didn't find any file where 'cloneFrom(Player)' is used (only 'cloneFrom(Actor)'). So that idea seems to be a dead end
Thanks a lot again.