HomeWikiSourceDownloadsDiscord

Kristal Wiki


Getting Started


These pages get you ready to use the engine.

  • Downloading Kristal
  • Installing and Playing Mods

General Mod Creation


These pages teach you about mod development.

  • Understanding the Basics
  • Creating a Mod
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • The UI System

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes

Battles


Everything related to creating battles.

  • Battlers
  • Encounters

API Reference


An auto-generated API reference for Kristal.

⮬Back to Top⮭

NPC

┗> Character > Object > Class


Constructor


NPC(actor: any, x: any, y: any, properties: any)

Arguments:

actor: any
x: any
y: any
properties: any




Methods


NPC:onInteract(player: any, dir: any)

Arguments:

player: any
dir: any

Returns:

1: boolean


NPC:onTextEnd()




Fields



Undocumented



NPC.cutscene: unknown



NPC.idle_animation: unknown



NPC.idle_sprite: unknown



NPC.interact_buffer: number



NPC.interact_count: integer



NPC.interact_count: integer



NPC.script: unknown



NPC.set_flag: unknown



NPC.set_value: unknown



NPC.solid: true



NPC.start_facing: string



NPC.talk: boolean



NPC.talk_sprite: unknown



NPC.text: table



NPC.turn: boolean


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