⌘K

Importing Scripts

Updated 16 Mar 2026

Share functions between scripts using import.

# In helpers.kode
define formatCoins($amount):
    return "&6$amount coins"

# In shop.kode
import helpers

set $display = formatCoins($playerCoins)
send $display to player

import makes the target script's functions available in the current script. It does not re-run the imported script's top-level block.