edited August 2014 in ORK Support
I use a formula to calculate the MaxHealth and when I press "Play" after creating my Party the MaxHealth value is correct but the current Health which is set to 100% of MaxHealth in the "Status" tab is one?!?!?

If I add code to change that to the character creation script then the current Health is correct until I load a game. Then it is one again.


help=ORK.Game.ActiveGroup.GetMember(currentCharacter-1).Status[12].GetValue();
ORK.Game.ActiveGroup.GetMember(currentCharacter-1).Status[11].SetValue(help, false, false, false, false, false, false);
help=ORK.Game.ActiveGroup.GetMember(currentCharacter-1).Status[90].GetValue();
ORK.Game.ActiveGroup.GetMember(currentCharacter-1).Status[89].SetValue(help, false, false, false, false, false, false);


Adding the same lines but with "BaseValue" instead has no effect.

Also after loading a game the amount of "Player Prefab (Clone)" objects goes from 6 to 18(!!). 6 of them have the names I typed in the character creation the others have "Player 1" to "Player 6".
  • edited August 2014
    Are you using Combined Value for your MaxHP or the Formula status development?

    Both work fine for me, but you need to keep in mind that the Formula status development is only used on level up to calculate what will be added to the status value - you need to use the Initial Value to define the start value.
    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!
  • edited August 2014
    Yes, I use "Combined Value". "Status Development" is set to "None" except for "Experience".

    EDIT: The "Status Development" set to "None" is the problem. Because it takes the initial value below then as the value of "MaxHealth" for the "Health" status. Changed the initial value to 17 in the "Status Development" and now the character has 17 "Health".

    So somehow the "Combined Value" formula for "MaxHealth" is ignored.

    Another EDIT: I changed it from "None" to "Formula" for the "MaxHealth" status development and it still save the initial value in that entry for current health.
    Post edited by Kashrlyyk on
  • Still working fine on my end, I'll need a test project from you to see what's going 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!
  • edited August 2014
    "MaxHealth" has to be ABOVE "Health" in the status list in the ORK Framework Editor and the code from above has to be used because "Health" does not update after the initialization at the start before I change the status values that are used to calculate "MaxHealth".







    Post edited by Kashrlyyk on
  • Yeah, that's correct - will fix this in the next update :)
    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.