//Magic Meter v1.1 - Renounce4
//<Renounce4> DO NOT COPY ANY OF MY SCRIPTS OR TEXTURES WITHOUT MY PERMISION!

//to configure this script, just change the values below. 
var MAGIC_CAP1 = 50 //The max amount of magic before recieving the upgrade
var MAGIC_CAP2 = 100 //The max amout of magic after recieving the upgrade
var MAGIC_ITEM_SMALL = 289 //the item that will restore the lesser amount of magic when picked up
var MAGIC_ITEM_SMALL_AMOUNT = 10 //the amount of magic restored by the small item
var MAGIC_ITEM_LARGE = 337 //the item that will restore the greater amount of magic when picked up
var MAGIC_ITEM_LARGE_AMOUNT = 25 //the amount of magic restored by the large item
var MAGIC_ITEM_MAX = 331 //the item that will fill the players magic
var MAGIC_UNLOCK_AMOUNT = 100 //the amount of magic that will be given to the player when their magic is unlocked (make it greater than MAGIC_CAP2 to always have full magic)
var MAGIC_METER_XPOS = 0 //how far from the left the magic meter will start
var MAGIC_METER_YPOS = 10 //how far from the top the magic meter will start
var MAGIC_METER_HEIGHT = 7 //how tall the magic bar is (you must change the /gui/magicbar.png to fit the height if it is changed [remove/add extra height to/from the bottom of the image])
var MAGIC_METER_COLOR_RED = 0 //how red the magic bar is (0-1)
var MAGIC_METER_COLOR_GREEN = .6 //how green the magic bar is (0-1)
var MAGIC_METER_COLOR_BLUE = 0 //how blue the magic bar is (0-1)
var MAGIC_METER_COLOR_ALPHA = 1 //how transparent the magic bar is (0-1)
var MAGIC_METER_COLOR_BACKGROUND_RED = 0 //how red the background of the magic bar is (0-1)
var MAGIC_METER_COLOR_BACKGROUND_GREEN = 0 //how green the background of the magic bar is (0-1)
var MAGIC_METER_COLOR_BACKGROUND_BLUE = 0 //how blue the background of the magic bar is (0-1)
var MAGIC_METER_COLOR_BACKGROUND_ALPHA = .5 //how transparent the background of the magic bar is (0-1)
var MAGIC_METER_COLOR_INFINITE_RED = 1 //how red the magic bar is while the player has infinite magic (0-1)
var MAGIC_METER_COLOR_INFINITE_GREEN = 1 //how green the magic bar is while the player has infinite magic (0-1)
var MAGIC_METER_COLOR_INFINITE_BLUE = 1 //how blue the magic bar is while the player has infinite magic (0-1)
var MAGIC_METER_COLOR_INFINITE_ALPHA = 1 //how transparent the magic bar is while the player has infinite magic (0-1)

var magcnt = MAGIC_CAP1 //set this and the next variable to 0 to start with no magic (or whatever value you want)
var magdly = MAGIC_CAP1 //set this and the previous variable to 0 to start with no magic (or whatever value you want)
var magupg = false //whether or not the player starts off with upgraded magic (false = no/true = yes)
var maglock = true //whether or not the player starts off with locked magic (false = no/true = yes)
var maginf = false //whether or not the player starts off with infinite magic (false = no/true = yes)