The Dink Network

Reply to Re: Help with script please

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 12th 2006, 10:37 PM
custom_carrie2004.gif
carrie2004
Peasant She/Her Canada
*chomp* 
I got it to work!!
I went with this:

void main( void )
{
int &dumb = create_sprite(360, 300, 0, 64, 1);
sp_hard(&dumb, 0);
draw_hard_sprite(&dumb);
sp_disabled(&dumb, 1);

sp_base_walk(&current_sprite, 370);
sp_speed(&current_sprite, 3);
sp_timing(&current_sprite, 0);
}

void hit( void )
{
say("`3Wimp!", &current_sprite);

}

void talk( void )
{
freeze(1);
choice_start();
set_y 240
set_title_color 9
title_start();
"A tall man with brown hair and a sly grin stands here"
title_end();
"Pay the toll"
"Argue"
"Leave"
choice_end();

if (&result == 1)
{
if (&gold < 100)
{
wait(500);
say_stop("`3You don't have enough gold!", &current_sprite);
unfreeze(1);
return;
}

if (&gold > 99)
{
wait(500);
say_stop("`3Thanks. See ya.", &current_sprite);
&gold -= 100;
move_stop(&current_sprite, 4, -50, 1);
&story = 4;
force_vision(0);
unfreeze(1);
return;
}
}
if (&result == 2)
{
wait(500);
say_stop("How come I have to pay?",1);
wait(500);
say_stop("`3Just doing my job, kid.", &current_sprite);
wait(500);
say_stop("Well, 100 gold is a little high!", 1);
wait(500);
say_stop("`3Then leave!", &current_sprite);
wait(500);
say_stop("Jerk!", 1);
}
unfreeze(1);
}

Plus I had a vision script on the base.SO it's all good.
In fact, my game is now playable right through.Just want
to add some more 'new graphics' and then I guess I'll
submit it.YAY! I probably won't win but I'm glad I finally
worked out the glitches.Heh.

Thanks redink1 and magicman!