Mod:Knightcore/Knightcore: Difference between revisions

From PMDOWiki
Imbion (talk | contribs)
Created page with "{{stub}} The following functions are found in the <code>Knightcore.lua</code> file in Knightcore. These functions can be called from other lua script files by including the line <code>require 'knightcore.Knightcore'</code>. == SetCheckpoint == Sets the checkpoint in the save file to the given parameters. == IsBagFull == Returns true if the bag is full, false if it is not. == ObtainItem == Gives the player an item. If they bag is full, it will be put..."
 
Imbion (talk | contribs)
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
The following functions are found in the <code>Knightcore.lua</code> file in [[Mod:Knightcore|Knightcore]]. These functions can be called from other lua script files by including the line <code>require 'knightcore.Knightcore'</code>.
The following functions are found in the <code>Knightcore.lua</code> file in [[Mod:Knightcore|Knightcore]]. These functions can be called from other lua script files by including the line <code>require 'knightcore.Knightcore'</code>, and then called with the prefix <code>Knightcore</code>.


== SetCheckpoint ==
== SetCheckpoint ==

Revision as of 19:24, 30 September 2025

This article is a stub. You can help PMDO Wiki by expanding it.

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

SetCheckpoint

Sets the checkpoint in the save file to the given parameters.

IsBagFull

Returns true if the bag is full, false if it is not.

ObtainItem

Gives the player an item. If they bag is full, it will be put into storage.

Note: Not fully implemented/tested yet, please do not use yet.