I have a Character Creation Screen, made with Unity's new UI and it's working fine and returning the Various Status Values and Abilities perfectly.

Unfortunately, I have no Idea how to assign stats I received via the Character Creation Script as the Status Values. I have created the status values in the ORK Framework Editor.
How can I access the "Initial Value" field in the status development via Script? If that's where the immutable status values go.
  • edited November 2017
    First of all, you'll need the Combatant class of your combatant's instance. If you already have your combatant spawned in the scene, you can get it from the spawned game object of the combatant.
    Or you can create a new combatant via script.

    Once you've got your combatant instance, you can initialize a status value like this:

    combatant.Status[index].InitValue(value);
    The index is the ID/index of the status value in the editor. The value is the value you want to initialize it to.
    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!
Sign In or Register to comment.