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/)
Hey, I didn't give it a full read or anything, but as I was glancing through your code I noticed this:
#┌──────────────────────────────────────────────────────────────────────────────
#│■ 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).