-
Notifications
You must be signed in to change notification settings - Fork 0
API
player.Location()
Prints current location of player.
Example: player.Location()
Returns: x,y
player.SetLock(bool b)
Locks/Unlocks the player
Example: player.SetLock(True)
Returns: Null
player.Teleport(int x, int y)
Teleports player to coordinates x, y
Example: player.Teleport(0,0)
Returns: Null
world.ChangeTile(Player.Location, int index)
world.ChangeTile(int x, int y, int index)
Changes tile on current location to index
Example: world.ChangeTile(player.Location(), 0)
Returns: Null
this.AddNpc(double index, string name, string gender, double age, double height, double weight, double x, double y, double maxx, double maxy)
Adds an NPC to the game
Example: this.AddNpc(0, "name", "m", 0, 0, 0, 0, 0, 10, 10)
Returns: Null
this.Clear()
Clears the console interface
Example: this.Clear()
Returns: Null
this.ClearStory()
Clears the story panel
Example: this.ClearStory()
Returns: Null
this.CreateButton(string label, string action, object[] param = null)
Creates a button with label, that does action on clicked. param are arguments for the action.
Example: this.CreateButton("Example", "Clear")
Returns: Button button
this.DrawInv()
ReDraws the inventory panel
Example: this.DrawInv()
Returns: Null
this.PrintStory(string[] s)
this.PrintStory(string s)
Prints an array of strings to the story panel.
Example: this.PrintStory(Array[str](['1', '2', '3']))
Returns: Null
this.RunScript(string s)
Runs a script in the Scripts folder.
Example: this.RunScript("test.lua")
Returns: String
this.SetMapZoom(int i)
Sets the minimap zoom level.
Example: this.SetMapZoom(10)
Returns: Null
this.StoryButtons(Button button)
Adds a button to the story panel.
Example: this.StoryButtons(button)
Returns: Null
this.Testing()
Enables/Disables testing mode
Example: this.Testing()
Returns: Null
inventory.AddItem(Item item)
inventory.AddItem(int i)
Adds item to inventory
Example: tool = this.NewItem("tool", 0, "axe", 0, 1); inventory.AddItem(tool)
Returns: Null
inventory.BuildDatabase()
Rebuilds the inventory database
Example: inventory.BuildDatabase()
Returns: Null
inventory.Clear()
Clears the inventory
Example: inventory.Clear()
Returns: Null
inventory.ListInventory()
Lists current inventory
Example: inventory.ListInventory()
Returns: String(n)
inventory.MakeActive(int i)
Makes item at index i the active item
Example: inventory.MakeActive(6)
Returns: Null
inventory.NewItem(string type, int id, string name, int weight, string[] args)
Creates new Item of type. args = additional parameters as need per item type.
Example: item = this.NewItem("tool", 0, "axe", 0, "0")
Returns: Item item
inventory.ChangeScreens(GameScreen currrent, GameScreen target)
inventory.ChangeScreens(string current, string target)
Changes the active screen
Example: base.ChangeScreens("Menu", "Play")
Returns: Null