i thought to use the mana recharge code for a phaser recharge, however for some reason it starts off fully charged and does not build up slowly, could you please advise me on this george?
Code:
starter init_player()
{
while (player == null) {wait (1);}
///player.strength = 74;
///player.experience = 0;
player.mana = 0;
while (1)
{
player.mana += 0.5 * time;
player.mana = min(259, player.mana);
wait (1);
}
}
your code there.
Code:
panel phaser_pan
{
bmap = phaserpan_tga;
pos_x = 680;
pos_y = 580;
button 20, 30, but2_tga, but3_tga, but2_tga, fnct_phaser1, null, null;
window = 24,59,259,9,charge_tga,0,player.mana;
button 20, 90, but2_tga, but3_tga, but2_tga, fnct_phaser2, null, null;
window = 24,119,259,9,charge_tga,0,null;
button 70, 140, but2_tga, but3_tga, but2_tga, null, null, null;
flags = overlay, refresh, visible;
}
the panel, at the moment it is not tied to the phaser code, i wanted to get it rechargeing first before i tried that.
thanks for any help.