MZ Hearts of Iron 4 National Focus Style Skill Tree

Hello, can someone please a skill tree system based off the National Focus system from Hearts of Iron 4. Basically it is a tree that progresses downward with the tree having branches that are conditional or mutually exlcusive.

Spoiler: Example: Generic Focus Tree
1920px-NF_tree_Generic.jpg

The tree should be able to change an actor's class, add skills, activate plugin commands (for example doing a tree section unlocks a crafting recipe through the CGMZ Crafting plugin via a plugin command), and manipulate switches and variables.

I figure this might be a fun project for adding more Hoi4 mechanics to RPG Maker games.

Original thread: https://forums.rpgmakerweb.com/threads/hearts-of-iron-4-national-focus-style-skill-tree.138970/