The Dink Network

Reply to Re: magic_level and magic_cost

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
March 7th 2005, 01:20 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
&magic_cost is the cost of the spell in 'mana' (as I'll call it for this purpose) and &magic_level is your current amount of mana.

The green bar around the magic icon is the mana-proportion of &magic_cost you currently have.

Typically &magic_level increases up to &magic_cost. If they're equal you can cast the spell (the green bar is full). The higher your &magic, the faster &magic_level increases. I don't in what timespan &magic is added to &magic_level.

You might notice that in void use( void ), one of the last lines is &magic_level = 0; This resets your mana so it can start refilling again.

redink1 onced noticed that weird stuff happens when &magic_cost is less than 100, but I've never tried it, so I wouldn't know.