Reply to Full script here:
If you don't have an account, just leave the password field blank.
Since I still haven't been able to figure it out by myself, I've included the whole torch.c, so you have more to work with. The problem might be something trivial like forgotten semicolons or brackets, or a misspelled name, but EasyDinkC doesn't find any bracket/semicolon errors, and the only uncolored things are the say-strings and the sp_gold();
void main( void )
{
int &brap;
int &junk = sp_editor_num(¤t_sprite);
sp_hard(¤t_sprite, 0);
draw_hard_sprite(¤t_sprite);
int &crap = editor_seq(&junk, -1);
sp_gold(¤t_sprite, 10);
if (&crap == 0)
{
unburn();
return;
}
if (&duntimer < &crap)
{
unburn();
return;
}
&brap = &duntimer;
&brap -= &crap;
say("&duntimer - &crap = &brap",1);
if (&brap <= 60)
{
sp_gold(¤t_sprite, 0);
sp_pseq(¤t_sprite, 916);
sp_brain(¤t_sprite, 6);
sp_seq(¤t_sprite, 916);
sp_frame(¤t_sprite, 1);
goto timecheck;
}
goto timecheck;
}
void unburn( void )
{
int &junk = sp_editor_num(¤t_sprite);
sp_gold(¤t_sprite, 10);
sp_brain(¤t_sprite, 0);
sp_pseq(¤t_sprite, 850);
sp_pframe(¤t_sprite, 23);
editor_seq(&junk, 0);
&crap = 0;
}
void burn( void )
{
int &junk = sp_editor_num(¤t_sprite);
editor_seq(&junk, &duntimer);
int &crap = &duntimer;
int &brap;
sp_gold(¤t_sprite, 0);
sp_pseq(¤t_sprite, 916);
sp_brain(¤t_sprite, 6);
sp_seq(¤t_sprite, 916);
sp_frame(¤t_sprite, 1);
goto timecheck;
}
void check( void )
{
timecheck:
&crap = editor_seq(&junk, -1);
wait(100);
&brap = &duntimer;
&brap -= &crap;
say("Global time: &duntimer. Local time: &crap. Difference time: &duntimer - &crap = &brap.",¤t_sprite);
if (&brap < 60)
{
goto timecheck;
}
unburn();
}
void main( void )
{
int &brap;
int &junk = sp_editor_num(¤t_sprite);
sp_hard(¤t_sprite, 0);
draw_hard_sprite(¤t_sprite);
int &crap = editor_seq(&junk, -1);
sp_gold(¤t_sprite, 10);
if (&crap == 0)
{
unburn();
return;
}
if (&duntimer < &crap)
{
unburn();
return;
}
&brap = &duntimer;
&brap -= &crap;
say("&duntimer - &crap = &brap",1);
if (&brap <= 60)
{
sp_gold(¤t_sprite, 0);
sp_pseq(¤t_sprite, 916);
sp_brain(¤t_sprite, 6);
sp_seq(¤t_sprite, 916);
sp_frame(¤t_sprite, 1);
goto timecheck;
}
goto timecheck;
}
void unburn( void )
{
int &junk = sp_editor_num(¤t_sprite);
sp_gold(¤t_sprite, 10);
sp_brain(¤t_sprite, 0);
sp_pseq(¤t_sprite, 850);
sp_pframe(¤t_sprite, 23);
editor_seq(&junk, 0);
&crap = 0;
}
void burn( void )
{
int &junk = sp_editor_num(¤t_sprite);
editor_seq(&junk, &duntimer);
int &crap = &duntimer;
int &brap;
sp_gold(¤t_sprite, 0);
sp_pseq(¤t_sprite, 916);
sp_brain(¤t_sprite, 6);
sp_seq(¤t_sprite, 916);
sp_frame(¤t_sprite, 1);
goto timecheck;
}
void check( void )
{
timecheck:
&crap = editor_seq(&junk, -1);
wait(100);
&brap = &duntimer;
&brap -= &crap;
say("Global time: &duntimer. Local time: &crap. Difference time: &duntimer - &crap = &brap.",¤t_sprite);
if (&brap < 60)
{
goto timecheck;
}
unburn();
}