Mod:Knightcore/Knightcore
From PMDOWiki
Main Page: Mod:Knightcore
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.
zone, string: The zone to set a checkpoint at.segment, string: The index of the segment to set a checkpoint at.map, string: The name of the map to set a checkpoint at.entry, string: The entry point of the map itself to place the checkpoint at.
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, please do not use yet.
