tnh - this will help some beginners
Ive added a HUGE amount of gold secrets in the game, because chain armor costs 10000 and plate 75000 youll need to find them. Also, ive added a large amount of life secrets and potions too. New script for the lifemax extra: ( the golden heart)
//this script fills life up, touch_damage must be set to -1. (run script mode)
void main( )
{
sp_seq(¤t_sprite, 53);
sp_frame(¤t_sprite, 1); //so the seq will start
sp_brain(¤t_sprite, 6);
sp_touch_damage(¤t_sprite, -1);
sp_nohit(¤t_sprite, 1);
}
void touch( void )
{
&lifemax += &level;
Playsound(10,22050,0,0,0);
Playsound(22,22050,0,0,0);
//grow to this percent then die
sp_brain_parm(¤t_sprite, 500);
sp_brain(¤t_sprite, 12);
sp_touch_damage(¤t_sprite, 0);
sp_timing(¤t_sprite, 0);
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
{
//this was placed by the editor, lets make it not come back
editor_type(&hold, 1);
//kill food forever
}
}
//this script fills life up, touch_damage must be set to -1. (run script mode)
void main( )
{
sp_seq(¤t_sprite, 53);
sp_frame(¤t_sprite, 1); //so the seq will start
sp_brain(¤t_sprite, 6);
sp_touch_damage(¤t_sprite, -1);
sp_nohit(¤t_sprite, 1);
}
void touch( void )
{
&lifemax += &level;
Playsound(10,22050,0,0,0);
Playsound(22,22050,0,0,0);
//grow to this percent then die
sp_brain_parm(¤t_sprite, 500);
sp_brain(¤t_sprite, 12);
sp_touch_damage(¤t_sprite, 0);
sp_timing(¤t_sprite, 0);
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
{
//this was placed by the editor, lets make it not come back
editor_type(&hold, 1);
//kill food forever
}
}