Hello,
I want to change a combatant's status values when their class changes, but am not seeing this happen when I expect it.

I have a combatant with a "Knight" Class that "Can Level Up", and a few Status Values set such as "ATK", "STR", "INT", etc. but "No Status Development" checked.

image

In the "Knight" Class I have a Status Development with ATK, STR, etc. values that increase as the class levels up.

image
image

When I trigger the "Change Class" node from my player menu with both "Remove Old Bonuses" and "Get New Bonuses" checked, the stats do not change according to the values indicated in the class' status development.

For example, if my combatant's STR is 14, and the STR for my "Knight" Class at Level 5 is 10, then when I change to that class I expect my combatant's STR value to be 14 + 10 = 24. This appears to be true with the class I initially set the combatant to, but I do not see it update when I change to other classes.

I've read through the posts here and here but I don't understand how this is supposed to work.

Appreciate your help. Thanks
  • Did a quick test and should work fine.
    I assume the classes have different status developments set up?
    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!
  • Hey, yes the classes each have status developments set up.

    I did some more testing and I think what's happening is when the player leaves and then rejoins the active party something gets messed up. I see the class status development values still applied, but when I change classes I don't see the stats change. I have a script that logs the status development values and I can see they're all 0, whereas when it's working I can see the expected values logged for the class level.

    Am I doing this right? I just want the combatant to join how they were when they left the party. I'm a bit confused why there are all these options despite me selecting "Use Inactive". Thanks for your help.

    image
  • Should be fine - the options are there even if Use Inactive is enabled in case there's no inactive combatant.
    When leaving the group using a Leave Group node, I assume you have Delete disabled? When that's enabled, the combatant will be removed completely and not join the inactive group.
    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!
  • Note: I've made changes to the combatant status and class status development values, so numbers will be different than screenshots above, but fundamental problem persists.

    I can confirm Delete is disabled when the player leaves my party. See below but does not appear to be related.

    I've been trying to dig into this and it appears changing the classes works fine until I save the game and load from that save file. Once the save file is loaded, the combatant's stats largely match the combatant + class stat values, except for an extra 2 points in ATK which the class status development does not contribute. I can reproduce this as the class levels up if I save and reload the class's status development appears to get saved to the combatant itself, and changing the class has no effect (except for ATK).

    Combatant status + Class status development values
    Class level 3
    Max HP: 90 + 5 = 95
    Max AP: 8 + 1 = 9
    ATK: 14 + 0 = 14 (but displayed as 16)
    STR: 16 + 1 = 17
    INT: 12 + 0 = 12
    SPD: 15 + 3 = 18

    When I switch between classes I expect to see the combatant's status values updated relative the class level and status development, however actual behaviour is only the attack stat changes by 2 points, which looks like was increased at class level 3 even though the status development does not specify any increase (only 1point at level 5).

    I'm not sure what's going on, but it seems like the class's status development values are getting saved onto the combatant itself. I don't where the extra 2 ATK is coming from.

    Any idea what might be causing this? Also is there a way to log the class status values so I can verify what the game thinks is the combatant's vs class status values?

    Please let me know what I can do to help get to the bottom of this. Appreciate your help.
  • Class development stats are added to the combatant - changing class with removing the old bonuses will simply remove them from the combatant's status values again. So, this being saved on the combatant is correct, since that's where it's always located. This is for single-class use (e.g. Change Class node), not when using class slots.

    I'd need a Unity test project to check it out.
    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.