How do i make choice require stat?


#1

Hey, it’s me again xD
Ok, so what i want to do is this:

Walking: 40%

# I walk over there
You failed because you needed 60% walking

Walking: 60%

# I walk over there
 Success! You walked over there!

But i couldn’t find any guide for this.


#2

First make the stat (whatever way you want it doesn’t matter, just using *temp as an example):

*temp walking 40

Then use this as your *choice:

*choice
  #I walk over there.
    *if walking >= 60
      Success! You walked over there!
      *goto somewhere
    *else
      You failed because you needed 60% walking
      *goto somewhere_else

#3

You are a god. Thank you!


#4

Can i just ask, why do i need *temp there?


#5

Oh, that was just so you could copy and paste the code and it will work. You’d normally have the walking stat tracked and changes however before doing that.

There, some clarification.


#6

Oh, ok :slight_smile: Thanks for the help.