Zum Hauptinhalt gehen

Suche

Max variable persistent

  • TAPgiles

    Yes. Or at least, the variable settings have to be "similar"; I haven't experimented with which settings have to be the same, but my guess is the initial value, and perhaps minimum and maximum.

    Did you want the min and max to be different for some reason?

  • SanFoxerken

    Yes, I'm using the variables as hp, sp, attack power. The minimum value stay at 0 but I want the maximum value to increase by 5 or 2 when the player upgrades one of the 3 stats. I know the current value of a variable will persist but im not sure if the maximum or minimum will persist as well.

  • TAPgiles

    Ah. The only thing that actually persists is the value of the variable. I think you'll need to just have the maximum be larger than you need at the start, and use other logic to control how the "maximum" affects things. For example, have a "maximum SP" variable as well, that kind of thing.

  • SanFoxerken

    Oh, well that's a bummer, I'll need some help with that then. I'm good at logic but not that good

  • CreamSohda

    I made a small example Dream to help explain the logic. It consists of 2 remixable scenes, and carries the player-entered value of "MaxHP" from one scene to the next.

    Full Dream: https://indreams.me/dream/mGcvUyjrWZw

    Remixable Scene 1: https://indreams.me/scene/djzywNpgntY

    Remixable Scene 2: https://indreams.me/scene/dGdnQyPXrBN

    Hope that helps!

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.