Skip to content

Kali EventDialogue

Kali has an EventDialogue that is meant to trigger as their eventondeath. This is mostly a mini cutscene supplementing their death, but also to ensure that Beetle also dies with them.

Logic sequence

  • BreakIce called on Kali
  • Kali's isnumb and isasleep are set to false
  • Kali animstate set to 18 (KO)
  • Kali's notalk set to true
  • Yield for a second
  • SetText is called in dialogue with the following:
    • text: commondialogue[160]
    • fonttype: 0 (BubblegumSans)
    • linebreak: messagebreak
    • tridimensional: false
    • position: Vector3.zero
    • size: Vector3.one
    • parent: Kali
    • caller: null
  • Yield all frames until the message lock is released
  • Yield for 0.5 seconds
  • If Beetle is still present (they could have already died):
    • Their exp is set to 0
    • Their animstate is set to 11 (Hurt)
    • Their hp is set to 0
  • EndBattleWon is called with addexp and no skipids which will end the battle and switch to a terminal flow