TacticalMetaphysics / LiSE

Rules-based engine for life sims, with time travel
GNU Affero General Public License v3.0
116 stars 9 forks source link

Reinitialize Characters in new histories #115

Closed clayote closed 1 year ago

clayote commented 1 year ago

I recently made it possible to have multiple independent chronologies in the same LiSE database. It does work, but poses an issue if the game creates a lot of state upon start. You want that state to be in the initial keyframe, but it's currently impractical to get it there in games after the first one you play, because you'd normally do that by creating the Character and passing the initial state into it. Characters can't be deleted, so the character from the first playthrough is still there, and you can't initialize it again.

Probably the best thing is to make Characters deletable like every other entity, and so, if the Character hasn't been created in this playthrough, you can initialize it "again".