player TF over time - jackdarker/TwineTest GitHub Wiki
With the effects.onTimeChange and the deffered events it should be possible to implement something like this:
- player gets a "transform to cat"-curse; this adds a effectCatMutation to him
- onTimeChange is alled while the game continues, if enough time passed, the method will push a deffered event "MutateCat"
- at the next deffered event occurence, MutateCat will be shown
- MutateCat needs to calculate the effect of the mutation and display a description ("Your ears reshaped themself to be pointed and fuzzy")
Problem:
- how does the deffered event know if it got called for player or any other NPC?
- what if the deffered event isnt processed on time and multiple events are stacked/ the effect wears of