Paybot I'm designing
I'm making a savebot where you have to pay to use (please don't steal my idea ;(), and if I did something wrong, please tell me.
{
choice_start();
set_y 240
set_title_color 0
title_start();
"5 You can save for 50 gold."
title_end();
"Save"
"Leave"
choice_end();void main( void )
{
if (&result == 1)
{
if (&gold < 50)
{
say("I don't have enough money!", 1);
}
else
}
}
sp_seq(¤t_sprite, 449);
sp_sound(¤t_sprite, 34);
sp_brain(¤t_sprite, 6);
sp_hitpoints(¤t_sprite, 0);
if (&duck == 1)
{
push_active(0);
}
if (&rain == 1)
{
kill_all_sounds();
&sofr = playsound(67, 11025, 0, 0, 1);
sound_set_survive(&sofr, 1);
turn_midi_off();
stopmidi();
}
if (&game == 5)
{
init("load_sequence graphics\inter\mon\stat- 34");
}
int &diefoo = compare_weapon("item-bt");
if (&diefoo != 1)
{
set_dink_speed(3);
sp_frame_delay(1, 0);
}
if (&story >= 40)
{
&nuts = 667;
}
&buttstomp = 0;
&timer = 0;
}
void hit( void )
{
say("Die, strange machine that doesn't belong here!", 1);
}
void talk( void )
{
Playsound(18,22050,0,0,0);
freeze(1);
choice_start();
"Save your game"
"Leave the strange machine"
choice_end();
unfreeze(1);
if (&result == 2)
{
unfreeze(1);
return;
}
choice_start();
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"Nevermind"
choice_end();
unfreeze(1);
if (&result < 11)
{
save_game(&result);
if (&game == 5)
{
&poksv = &result;
}
say_xy("'%Game saved", 1, 30);
}
}
{
choice_start();
set_y 240
set_title_color 0
title_start();
"5 You can save for 50 gold."
title_end();
"Save"
"Leave"
choice_end();void main( void )
{
if (&result == 1)
{
if (&gold < 50)
{
say("I don't have enough money!", 1);
}
else
}
}
sp_seq(¤t_sprite, 449);
sp_sound(¤t_sprite, 34);
sp_brain(¤t_sprite, 6);
sp_hitpoints(¤t_sprite, 0);
if (&duck == 1)
{
push_active(0);
}
if (&rain == 1)
{
kill_all_sounds();
&sofr = playsound(67, 11025, 0, 0, 1);
sound_set_survive(&sofr, 1);
turn_midi_off();
stopmidi();
}
if (&game == 5)
{
init("load_sequence graphics\inter\mon\stat- 34");
}
int &diefoo = compare_weapon("item-bt");
if (&diefoo != 1)
{
set_dink_speed(3);
sp_frame_delay(1, 0);
}
if (&story >= 40)
{
&nuts = 667;
}
&buttstomp = 0;
&timer = 0;
}
void hit( void )
{
say("Die, strange machine that doesn't belong here!", 1);
}
void talk( void )
{
Playsound(18,22050,0,0,0);
freeze(1);
choice_start();
"Save your game"
"Leave the strange machine"
choice_end();
unfreeze(1);
if (&result == 2)
{
unfreeze(1);
return;
}
choice_start();
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"&savegameinfo"
"Nevermind"
choice_end();
unfreeze(1);
if (&result < 11)
{
save_game(&result);
if (&game == 5)
{
&poksv = &result;
}
say_xy("'%Game saved", 1, 30);
}
}