Mod:Knightcore/SceneKC

From PMDOWiki
Revision as of 19:35, 30 September 2025 by Imbion (talk | contribs) (Created page with "{{stub}} The following functions are found in the <code>SceneKCC.lua</code> file in Knightcore. These functions can be called from other lua script files by including the line <code>require 'knightcore.SceneKC'</code>, and then called with the prefix <code>SceneKC</code>. Note: Functions with an asteric next to their headers are imported from Halycon. == DirToNum*== Translates a direction into a corresponding number. == NumToDir*== Translates a num...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This article is a stub. You can help PMDO Wiki by expanding it.

The following functions are found in the SceneKCC.lua file in Knightcore. These functions can be called from other lua script files by including the line require 'knightcore.SceneKC', and then called with the prefix SceneKC.

Note: Functions with an asteric next to their headers are imported from Halycon.

DirToNum*

Translates a direction into a corresponding number.

NumToDir*

Translates a number into a corresponding direction.

GroundWarpInZone

Fading out, warp to another ground map within the current zone.

FadeOutRefreshParty

Fade out and then refresh the party.

OneDungeonJunction

Create a single dungeon junction (with only one dungeon as an option to enter) that asks if the player wants to enter the dungeon. If the player said yes, then send them to the dungeon. If they said no, return right away.

Coroutines can be run depending on a boolean variable, or alternatively every time the player chooses to enter the dungeon.

Kangashkhan_Rock_No_Look*

Called inside of a ground map function, pulls up the menu that is previewed when opening a Kangashkhan Rock or other store points.

obj = Variable of the same name passed from the action function calling this function.

activator = Variable of the same name passed from the action function calling this function.