The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: Euphoria on August 17, 2014, 04:28:30 PM

Title: Euphoria - Alternate Currencies
Post by: Euphoria on August 17, 2014, 04:28:30 PM
ALTERNATE CURRENCIES
V1.1
 
 
(https://euphoria337.files.wordpress.com/2014/08/untitled-12.png)

(https://euphoria337.files.wordpress.com/2014/08/untitled-21.png)
 
Introduction
This script gives you the ability to create new and separate currencies for your game to use. Up to seven of these currencies can be shown in the menu, and a currency view scene can be added to the menu as well. By using script calls, you can change the amount of each currency the party has, and through a conditional branch check to see if the player can buy items with this currency. Use your imagination a bit and there are lots of possibilities!
 
Suggestions/Errors?
If you notice any errors or have any suggestions for this script, feel free to comment them here or on my website, thanks!
 
Special Thanks
TheoAllen

Credits
Credit me (Euphoria) if you want to use this script. The rest of the terms of use are in the scripts header.
 
Download Below
Alternate Currencies Download (http://euphoria337.wordpress.com/2014/08/17/alternate-currencies-v1-0/)

Add-Ons:
Alternate Currency Shops (http://euphoria337.wordpress.com/2014/08/20/alternate-currency-shops-v1-0/)
Title: Re: Euphoria - Alternate Currencies
Post by: Arrow on August 17, 2014, 08:00:16 PM
This is a neat idea, Euphoria. Good on you for coming up with something unique and interesting- it's the little touches like this that make a game stand out.
Title: Re: Euphoria - Alternate Currencies
Post by: Euphoria on August 17, 2014, 09:08:29 PM
Thanks :) I really appreciate it. I do have plans to add shops that take the currencies and maybe even a currency exchange scene with varying exchange rates!
Title: Re: Euphoria - Alternate Currencies
Post by: modern algebra on August 17, 2014, 09:49:36 PM
Hey, I didn't give it a full read or anything, but as I was glancing through your code I noticed this:

Code: [Select]
#┌──────────────────────────────────────────────────────────────────────────────
#│■ ExtraCurrencies
#└──────────────────────────────────────────────────────────────────────────────
class NewCurrency
  attr_accessor :name
  attr_accessor :symbol
  attr_accessor :desc
  attr_accessor :icon
  attr_accessor :max
  attr_accessor :amount
  attr_accessor :enabled
   
  #NEW - INITIALIZE
  def initialize(name, symbol, desc, icon, max, amount, enabled)
    @name = name
    @symbol = symbol
    @desc = desc
    @icon = icon
    @max = max
    @amount = amount
    @enabled = enabled
  end
   
end

I recommend that you take a look at structs (http://ruby-doc.org/core-1.9.3/Struct.html).
Title: Re: Euphoria - Alternate Currencies
Post by: Arrow on August 17, 2014, 10:04:32 PM
Thanks :) I really appreciate it. I do have plans to add shops that take the currencies and maybe even a currency exchange scene with varying exchange rates!

Excellent idea, you'll definitely benefit from capitalizing on the groundwork you've already laid down. These are some general concepts that I feel like most people using this system will want to implement, and having a structure for them to build off of, and helpful tools for them to use will make your script all the more indispensable.
Title: Re: Euphoria - Alternate Currencies
Post by: Euphoria on August 17, 2014, 11:19:43 PM
Thanks for the info MA! I'll definitely look into it.

And yeah, there really is a lot that can be done with this script with a bit of thinking, I just hope that the add-ons I want to create aren't too tough for me xD
Title: Re: Euphoria - Alternate Currencies
Post by: yuyu! on August 18, 2014, 01:01:54 AM
Very cool! :-) The currency info viewing is optional, right? I like it, but I always keep my menus simple. ;o
Title: Re: Euphoria - Alternate Currencies
Post by: PhoenixFire on August 18, 2014, 01:41:50 AM
Love the idea, just wish it were an XP script =p

I can also see this being used for many different scenarios, such as keeping track of gold for use with merchants, and maybe gems like rubies and sapphires for use with vendors of other races? I can see alot of uses for this :)
Title: Re: Euphoria - Alternate Currencies
Post by: Euphoria on August 18, 2014, 04:13:04 AM
Very cool! :-) The currency info viewing is optional, right? I like it, but I always keep my menus simple. ;o

Yup completely optional, and you can always call it from an event as well! Thanks :)

And thank you Phoenix! That's basically what I had in mind was different currencies for special vendors or different countries/areas! I was just hoping other people would see the potential as well, which so far they have! It is a bit hard to use right now without a working full store, but that's being worked on!
Title: Re: Euphoria - Alternate Currencies
Post by: Euphoria on August 20, 2014, 02:26:20 PM
1.1) Adds compatibility with my new script "Alternate Currency Shops" which allows shops to be made for alternate currencies!
Title: Re: Euphoria - Alternate Currencies
Post by: PhoenixFire on August 20, 2014, 06:42:37 PM
Seriously though, someone needs to make this in XP (actually, I wonder if it's simple enough for the ace engine to handle.. I will have to try it out that way first!)

I saw the oter script, and it looks fantastic as well :P
Title: Re: Euphoria - Alternate Currencies
Post by: Euphoria on August 20, 2014, 06:56:20 PM
Thanks, this one was actually made with quite a bit of reference material, the currencies shop was made with very little. So I'm gradually learning to code better xD

I would port it to XP if I new the differences in coding for RGSS and 3. Sadly, I don't :/
Title: Re: Euphoria - Alternate Currencies
Post by: PhoenixFire on April 25, 2015, 02:26:15 AM
Quick update to link this post to one I just put up about this part:

I do have plans to add shops that take the currencies and maybe even a currency exchange scene with varying exchange rates!



As Euphoria seems to have fallen off the face of the earth, at least temporarily, I have made an event system for currency exchange. More info and download link on this post: http://rmrk.net/index.php?topic=50042.0