HomeWikiSourceDownloadsDiscord

Kristal Wiki


General Information


These pages get you ready to use the engine.

  • Main Page
  • Downloading Kristal
  • Installing and Playing Projects
  • Glossary

General Project Creation


These pages teach you about project development.

  • Lua Tutorial
  • Understanding the Basics
  • Creating a Project
  • Writing Text
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • Releasing Projects

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes
  • Map Properties and Layers
  • Battle Areas

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Debugging
  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬ Back to Top ⮭

Kristal Wiki


General Information


These pages get you ready to use the engine.

  • Main Page
  • Downloading Kristal
  • Installing and Playing Projects
  • Glossary

General Project Creation


These pages teach you about project development.

  • Lua Tutorial
  • Understanding the Basics
  • Creating a Project
  • Writing Text
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • Releasing Projects

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes
  • Map Properties and Layers
  • Battle Areas

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Debugging
  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬ Back to Top ⮭

ActionBox

┗> Object > Class



Constructor


ActionBox(x: number, y: number, index: number, battler: number)

Arguments:

x: number
y: number
index: number
battler: number




Methods


ActionBox:animateBox()



ActionBox:createButtons()



ActionBox:draw()



ActionBox:drawActionBox()



ActionBox:drawSelectionMatrix()



ActionBox:getButtons(battler: any)

Arguments:

battler: any


ActionBox:getSelectableButtons()

Returns:

1: table


ActionBox:resetHeadIcon()



ActionBox:select()



ActionBox:setHeadIcon(icon: any)

Arguments:

icon: any


ActionBox:unselect()



ActionBox:update()




Undocumented



ActionBox.battler: number



ActionBox.box: ActionBoxDisplay



ActionBox.buttons: table



ActionBox.data_offset: integer



ActionBox.force_head_sprite: boolean



ActionBox.head_offset_x: unknown



ActionBox.head_offset_y: unknown



ActionBox.head_sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.



ActionBox.hp_sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.



ActionBox.index: number



ActionBox.name_sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.



ActionBox.revert_to: integer



ActionBox.selected_button: integer



ActionBox.selection_siner: integer


DELTARUNE by Toby Fox. Website designed by NyakoFox. © 2026 Kristal Team. All rights reserved.