Jump to content
Sign in to follow this  
Nicke

XS - Currency Limit

Recommended Posts

xs.png

Currency Limit

**** Old script. Use

Hero Control instead. ****

Introduction

A small script to limit the max_gold the player can get, you can even increase/decrease it ingame how much you want.

 

Features

  • Increase/decrease max_gold as you wish. This can be done ingame!
  • Will probably add more features later. :)

Screenshots

None.

 

How to Use

To install this script, open up your script editor and copy/paste this script to an open slot below Materials but above Main. Remember to save.

 

Script

 


#==============================================================================
#   XaiL System - Currency Limit
#   Author: Nicke
#   Created: 03/04/2012
#   Edited: 03/04/2012
#   Version: 1.0
#==============================================================================
# Instructions
# -----------------------------------------------------------------------------
# To install this script, open up your script editor and copy/paste this script
# to an open slot below â–¼ Materials but above â–¼ Main. Remember to save.
#
# Small script to increase/decrease max_gold ingame.
#
# To change the max_gold the player can get use the following method
# in a script call:
#
# $game_party.max_gold = 200 # // This will set the limit to 200.
#
## *** Only for RPG Maker VX Ace. ***
#==============================================================================
($imported ||= {})["XS-CURRENCY-LIMIT-SCENE"] = true
# *** Don't edit below unless you know what you are doing. ***
#==============================================================================#
# ** Game_Party
#==============================================================================#
class Game_Party < Game_Unit

 attr_accessor :max_gold

 alias xail_gm_party_init initialize
 def initialize(*args, &block)
#  // Method to initialize game_party.
xail_gm_party_init(*args, &block)
@max_gold = 99999999 # // Default max_gold value.
 end

 alias xail_gm_party_max_gold max_gold
 def max_gold(*args, &block)
#  // Method to return max_gold.
xail_gm_party_max_gold(*args, &block)
return @max_gold
 end

end # END OF FILE

#=*==========================================================================*=#
# ** END OF FILE
#=*==========================================================================*=#

 

 

Updates

None.

 

Credit

Do credit me, Nicke, if you are planing on using this script. Thanks.

Can be use in a commercial project.

Edited by Niclas

Share this post


Link to post
Share on other sites

@Patrick S. Ah yep, I got the idea from that and noticed there weren't anything that could change the max gold. You can probably do it with variables but one script call in a event seemed easier!

Share this post


Link to post
Share on other sites

Hey Niclas! love this script! its little things like this that can really set a game apart and make people have to think a little more ;) which is always good! The script does work perfectly. I do however have a customization question..

 

would it be possible or if it is would it be hard to make it so in the menu it displays how much gold you have out of how much your limit is?

 

Like lets say your limit is 250 gold, and you have 60 gold. when you open the menu is says. 60/250 and then if you were to get 10 more gold it would say 70/250 and so on.

 

Thanks again for the script! love your work!

 

-T

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted