Hey,
I'm trying to get hold of the class info on the equipped class slot for a gimmick on my Action Point battle, but so far have got nowhere. I setup the schematic like this:
and the last version of the script:
I have tried to check if he passes the classSlot Info, the class name as string and so far nothing.
If your equipped class is stored in the schematics Local selected data, you'll not be able to access it in your script. E.g. use Global selected data instead and you can access it via Maki.Game.SelectedData.
Or, to make it a lot easier, if your script is attached to the combatant, you can simply get the combatant from the game object like this:
Combatant combatant = ORKComponentHelper.GetCombatant(gameObject);
And afterwards make all the changes on it however you like. Learn more about combatant scripting in this documentation.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!