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.
  • edited January 2023
    Well, your Call Function node uses a string parameter, but none of your functions (at least those you showed) fits the defind parameters.

    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.
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Wow, Yes it`s set as a local data. I will redo it as global
Sign In or Register to comment.