The Dink Network

scripting help pls.

February 15th 2007, 08:41 PM
dragon.gif
drath
Peasant He/Him United States
Humans are crunchy and filled with Katchup. 
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
February 15th 2007, 08:53 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
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);
}
March 18th 2007, 01:30 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
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.
March 22nd 2007, 07:44 PM
dinkdead.gif
Volcom
Peasant He/Him
 
Also, I found that the file with the Title "Learning Stuff" was very helpful with scripting, though I do not know if it covers this.

~Jake~