magic_level and magic_cost
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)
&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.
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.
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?
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?
magic_cost can be greater than 100, but yeah, when it is between 0 and 100 Dink crashes.
oh ok so you make it bigger than 100 when you want the bar to take longer to refill, for like stronger spells.