Re: scripting help pls.
Ok I know the basics of scripting but i don't know the multipal choice stuff such as asking diffrent ?'s and shops pls show me how to script this stuff or tell me a good tutorial for this.
thx a lot
thx a lot
Pretty self explanatory stuff here. You don't need the title if you don't want it.
void talk( void )
{
//so Dink doesn't move around while you're selecting
freeze(1);
choice_start();
title_start();
What you want the person to say, or a description
title_end();
"Choice 1"
"Choice 2"
"Leave"
choice_end();
if (&result == 1)
{
//this is choice 1, &result is your choice number
say_stop("This is my first choice", 1);
}
if (&result == 2)
{
say_stop("This is my second choice", 1);
}
unfreeze(1);
}
void talk( void )
{
//so Dink doesn't move around while you're selecting
freeze(1);
choice_start();
title_start();
What you want the person to say, or a description
title_end();
"Choice 1"
"Choice 2"
"Leave"
choice_end();
if (&result == 1)
{
//this is choice 1, &result is your choice number
say_stop("This is my first choice", 1);
}
if (&result == 2)
{
say_stop("This is my second choice", 1);
}
unfreeze(1);
}
You know, you could save alot oof time if you looked at the DinkC.chm file which is located in the develop directory in you Dink Smallwood directory. If it isn't there download the latest version of Dink Smallwood 1.08 I think and check it out. Tonnes of useful stuff in there.