NodeAPI
NodeAPI is a BepInEx plugin that allows for easy creation of custom nodes.
| Date uploaded | 4 years ago |
| Version | 1.0.0 |
| Download link | SpecialAPI-NodeAPI-1.0.0.zip |
| Downloads | 185 |
| Dependency string | SpecialAPI-NodeAPI-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_Inscryption
BepInEx pack for Inscryption. Preconfigured and ready to use.
Preferred version: 5.4.1701README
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.