Skip to content

player TF over time

jackdarker edited this page Jun 2, 2021 · 1 revision

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

Clone this wiki locally