Making a carriable weight system on the stats page

I’m making a zombie game (link to demo here Demo for Outbreak Infected ), and I’ve hit a problem. Firstly, I don’t know how to set up the stats page in the first place. I thought about using a percent chart that would show the weight they’re carrying along with the max weight that’s allowed, but that poses it’s own issues. Do I have to rename the percent chart each time their carried weight increases/decreases? Is there a better way to do this?

I also want there to a carriable weight limit that’s define by 3 different factors: their strength stat, their exhaustion level, and their bag/carrying options. Strength is fairly easy to understand. The higher their strength stat, the more they can carry. However, you can’t exactly carry 200 pounds of canned food without a bag, so the player will technically be able to lift more but not be able to carry those items without something to hold them in. I was planning on making it so that the further into the game they went, the better bags they could find by scavenging, therefore making some sort of upgrade system with their inventory as they play. As for their exhaustion level, characters can become exhausted by carrying more weight in their bags then they can physically handle, thus making it harder for them to carry their items.

TLDR: I’m having trouble setting up the stats page for carrying capacity, and I don’t know how to make 3 different factors affect the carrying capacity after I’m done setting it up.

5 Likes
You have five cans of food.

*choice
  #Get two more cans.
    *if (capacity="hands")
      *if (carrying="5")
        You get the cans and walk on.
        *set action "carrying_7"
        *set exhaustion +10

      *if (carrying="7")
        You are starting to get full but you walk on.
        *set action "carrying_9"
        *set exhaustion +15

    *if (capacity="bag")
      You get the cans and walk on.
      *if (carrying="5")
        *set action "carrying_7"
        *set exhaustion +2

      *if (carrying="7")
        *set action "carrying_9"
        *set exhaustion +5

  #Get ten more cans.
    *if (capacity="hands")
      You end up getting too many cans AND YOU DIE FROM EXHAUSTION.

    *if (capacity="bag")
      You get the cans and walk on.
      *if (carrying="5")
        *set action "carrying_15"
        *set exhaustion +10

      *if (carrying="7")
        *set action "carrying_17"
        *set exhaustion +15 

If someone can come up with an upgrade, I’M ALL EARS.

5 Likes

Look no want to give you a choicescript programming advice but I think a narrative idea can help the question. You can make the MC find at the beginning of the story a backpack to carry and automatically have it with him to carry things or on the other hand with what little I remember programming is that you configure an equation that represents quantities that are relevant to the final result such as strength or endurance to give results to the total load you can carry but I will inquire about it to learn more.

1 Like

This gave me a pretty good basis to work off of, and I appreciate the effort you put into it. I’ll have to mess around with the coding to include the strength stat as a factor, but you’ve really helped

5 Likes

Your welcome, i’m happy to help :slight_smile:

4 Likes

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.