Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Garfield501

Changing step amount

Recommended Posts

..What? You want to change the "Step Amount"? What'd you mean? The amount of steps the player has taken? That is automatically changed.

Share this post


Link to post
Share on other sites

..What? You want to change the "Step Amount"? What'd you mean? The amount of steps the player has taken? That is automatically changed.

 

Yes, I know that.

But I want that when it hits a certain number, I want to reset it.

Share this post


Link to post
Share on other sites

I just tried messing with it. I tried 20 different script commands and it didn't work.

I thought it would be as simple as

$game_party.steps = Number

But no luck. i don't see why you cannot change it.

Share this post


Link to post
Share on other sites

I found out how it works.

 

first I needed to put this code in my script:

#==============================================================================
# ** Game_Party
#------------------------------------------------------------------------------
#  This scripts adds a method to reset your steps
#==============================================================================

class Game_Party
 #--------------------------------------------------------------------------
 # * Reset Steps
 #--------------------------------------------------------------------------
 def reset_steps
   @steps = 0
 end
end

 

Then to reset the step amount:

$game_party.reset_steps

 

Thank you all for the efforts, but it is solved now.

Again, thank you all.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...