The Dink Network

How can i make people talk in background??

August 18th 2008, 09:53 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
Hey guys how can i make people talk randomly in the background like in the bar in Terris in the original game? P.S: Loops don't work on my computer for some reason; they just crash the whole computer!! (goto loops i mean).
August 18th 2008, 10:03 AM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Simple way (script attached to the character):

void main( void )
{
say_stop_npc("`%Background gossip, whatever");
}

Even better:

void main( void )
{
mainloop:
wait(2000);
&randy = random(5, 1);
if(&randy == 1)
{
say_stop_npc("`%Background gossip, whatever");
}
if(&randy == 2)
{
say_stop_npc("`%bla bla bla");
}

goto mainloop;
}

You could make them more complicated, but these are just simple ways to do it.
August 18th 2008, 01:36 PM
dinkdead.gif
Your loops probably don't work because there's no wait() in them, without a pause the loop keeps going round and there's no time for the engine to do anything else, so it freezes.

This works:
loop:
wait(anytime);
say("baa", 1);
goto loop;

So does this:
loop:
say_stop("baa", 1);
goto loop;

This will crash/freeze/destroy:
loop:
say("baaaaa!!", 1);
goto loop;
August 19th 2008, 02:35 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
ok what's the difference between the last 2?
August 19th 2008, 02:58 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
The difference between a say(); command and a say_stop(); command.
August 19th 2008, 06:50 AM
maiden.gif
nawal
Peasant She/Her Egypt
 
ah thanks