Inscryption
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
5 years ago
Downloads
721
Size
141KB

NodeAPI

NodeAPI is a BepInEx plugin that allows for easy creation of custom nodes. To use NodeAPI in your mod, just add it as a reference in your project. Custom node creation example:

new NewNode("Nodes_Name_For_Code_Purposes", NewNode.MapNodeType.Other /*Can be NewNode.MapNodeType.Other or NewNode.MapNodeType.SpecialCardChoice*/, new List<Texture2D> { framesForMapAnimation }, typeof(NodeSequenceHandler), new List<NodeData.SelectionCondition> { nodeAppearancePrerequisites /*can be empty*/ }, new List<NodeData.SelectionCondition> { forceGenerationConditions /*conditions at which the node always generates instead of other nodes, can be empty*/ /*you can use something like new CustomPreviousNodesContent("Nodes_Name_For_Code_Purposes", false) (this type is built into nodeapi) for it to always generate once for debug*/ });

NodeSequenceHandler here would be a class that inherits from CustomSpecialNodeSequencer. To make something happen when you arrive at the map event, just override the DoCustomSequence method. You don't need to manually return the player to the map, CustomSpecialNodeSequencer does it for you when DoCustomSequence ends.

Installation

To use NodeAPI, put NodeAPI.dll inside of your BepInEx plugins folder. It also probably works for Thunderstore Mod Manager or r2modman but I don't know for sure (I don't use them)

NOTE: This mod was developed for Kaycee's Mod beta but it should work for the normal game.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.