The Dink Network

magic_level and magic_cost

March 7th 2005, 12:46 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
anyone know and can explain in detail how this whole magic thing works (the green bar around the magic thing that dissapears and grows back)
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.
March 7th 2005, 06:27 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
for me &magic_cost being below 100 = dink crashes and cant be rebooted until windows is.

so &magic_cost being 0 means you dont have any green bar (no spell equipped) and is 100 when you have a spell out and when you use the spell &magic_level is set to 0 and it has to get back up to &magic_cost to use the spell again. but is magic_cost ever anything besides 0 or 100?
March 7th 2005, 08:02 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
magic_cost can be greater than 100, but yeah, when it is between 0 and 100 Dink crashes.
March 8th 2005, 09:44 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
oh ok so you make it bigger than 100 when you want the bar to take longer to refill, for like stronger spells.
March 8th 2005, 04:58 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Correcto.