Astral's Profile
I Like Lemonade...
void main( void )
{
int &talker;
&talker = 0;
int &smell;
&smell = random(3, 1);
if (&smell == 1)
{
say_stop("`6he say this when you enter the screen", ¤t_sprite);
}
if (&smell == 2)
{
say_stop("`6 2em choice ", ¤t_sprite);
}
}
void buys1( void)
{
int &junk = free_items();
if (&junk < 1)
{
choice_start()
set_y 240
title_start();
You are carrying too much.
title_end();
"Ok"
choice_end()
return;
}
if (&gold < 400)
{
choice_start()
set_y 240
set_title_color 6
title_start();
You don't have enough gold to buy this sword, landlubber!
title_end();
"Ok"
choice_end()
return;
}
&gold -= 400;
add_item("item-sw1",438, 7);
}
void buy( void )
{
buy:
choice_start()
set_y 240
set_title_color 6
title_start();
"Arrr, feast your eyes on these fine tools..."
title_end();
"Longsword - $400"
"Bomb - $20"
"Clawsword - $2000"
"Leave"
choice_end()
if (&result == 1)
{
buys1();
unfreeze(1);
goto mainloop;
return;
}
if (&result == 2)
{
buybomb();
unfreeze(1);
goto mainloop;
return;
}
if (&result == 3)
{
buysw2();
unfreeze(1);
goto mainloop;
return;
}
unfreeze(1);
goto mainloop;
return;
}
void buybomb( void)
{
int &junk = free_items();
if (&junk < 1)
{
choice_start()
set_y 240
title_start();
You are carrying too much.
title_end();
"Ok"
choice_end()
return;
}
if (&gold < 20)
{
choice_start()
set_y 240
set_title_color 6
title_start();
You don't have enough gold to buy this bomb, mate!
title_end();
"Ok"
choice_end()
return;
}
&gold -= 20;
add_item("item-bom",438, 3);
}
void buysw2( void)
{
int &junk = free_items();
if (&junk < 1)
{
choice_start()
set_y 240
title_start();
You are carrying too much.
title_end();
"Ok"
choice_end()
return;
}
if (&gold < 2000)
{
choice_start()
set_y 240
set_title_color 6
title_start();
Arr! You don't have enough gold to buy the Clawsword!
title_end();
"Ok"
choice_end()
return;
}
&gold -= 2000;
add_item("item-sw2",438, 20);
}
void talk( void )
{
freeze(1);
freeze(¤t_sprite);
choice_start()
if (&Shop_Keeper == 0)"Ask about stuff you want him to say only one time!"
if (&Shop_Keeper == 1)"other stuff he will say only after you talked to him one time"
"See what's for sale"
"Leave"
choice_end()
if (&result == 1)
{
say_stop("`6seller choice1 he say only this onse ", ¤t_sprite);
wait(250);
say_stop("dink too ", 1);
&Shop_Keeper = 1;
}
if (&result == 2)
{
say_stop("`6he will always say that ", ¤t_sprite);
wait(250);
say_stop("dink too ", 1);
}
if (&result == 3)
{ f
goto buy;
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit( void )
{
say_stop("`6stuff he say when you hit it!.", ¤t_sprite);
}
it only work if you have &Shop_Keeper as a global variable...
try it ok!
-Astral
{
int &talker;
&talker = 0;
int &smell;
&smell = random(3, 1);
if (&smell == 1)
{
say_stop("`6he say this when you enter the screen", ¤t_sprite);
}
if (&smell == 2)
{
say_stop("`6 2em choice ", ¤t_sprite);
}
}
void buys1( void)
{
int &junk = free_items();
if (&junk < 1)
{
choice_start()
set_y 240
title_start();
You are carrying too much.
title_end();
"Ok"
choice_end()
return;
}
if (&gold < 400)
{
choice_start()
set_y 240
set_title_color 6
title_start();
You don't have enough gold to buy this sword, landlubber!
title_end();
"Ok"
choice_end()
return;
}
&gold -= 400;
add_item("item-sw1",438, 7);
}
void buy( void )
{
buy:
choice_start()
set_y 240
set_title_color 6
title_start();
"Arrr, feast your eyes on these fine tools..."
title_end();
"Longsword - $400"
"Bomb - $20"
"Clawsword - $2000"
"Leave"
choice_end()
if (&result == 1)
{
buys1();
unfreeze(1);
goto mainloop;
return;
}
if (&result == 2)
{
buybomb();
unfreeze(1);
goto mainloop;
return;
}
if (&result == 3)
{
buysw2();
unfreeze(1);
goto mainloop;
return;
}
unfreeze(1);
goto mainloop;
return;
}
void buybomb( void)
{
int &junk = free_items();
if (&junk < 1)
{
choice_start()
set_y 240
title_start();
You are carrying too much.
title_end();
"Ok"
choice_end()
return;
}
if (&gold < 20)
{
choice_start()
set_y 240
set_title_color 6
title_start();
You don't have enough gold to buy this bomb, mate!
title_end();
"Ok"
choice_end()
return;
}
&gold -= 20;
add_item("item-bom",438, 3);
}
void buysw2( void)
{
int &junk = free_items();
if (&junk < 1)
{
choice_start()
set_y 240
title_start();
You are carrying too much.
title_end();
"Ok"
choice_end()
return;
}
if (&gold < 2000)
{
choice_start()
set_y 240
set_title_color 6
title_start();
Arr! You don't have enough gold to buy the Clawsword!
title_end();
"Ok"
choice_end()
return;
}
&gold -= 2000;
add_item("item-sw2",438, 20);
}
void talk( void )
{
freeze(1);
freeze(¤t_sprite);
choice_start()
if (&Shop_Keeper == 0)"Ask about stuff you want him to say only one time!"
if (&Shop_Keeper == 1)"other stuff he will say only after you talked to him one time"
"See what's for sale"
"Leave"
choice_end()
if (&result == 1)
{
say_stop("`6seller choice1 he say only this onse ", ¤t_sprite);
wait(250);
say_stop("dink too ", 1);
&Shop_Keeper = 1;
}
if (&result == 2)
{
say_stop("`6he will always say that ", ¤t_sprite);
wait(250);
say_stop("dink too ", 1);
}
if (&result == 3)
{ f
goto buy;
}
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit( void )
{
say_stop("`6stuff he say when you hit it!.", ¤t_sprite);
}
it only work if you have &Shop_Keeper as a global variable...
try it ok!
-Astral
Astral has released 1 file
Title | Category | Avg | Updated |
---|---|---|---|
Matoya | D-Mod, Romp | 7.3 | July 20th, 2004 |