The Dink Network

NPCs

February 23rd 2003, 06:27 PM
death.gif
Lavrik
Peasant They/Them
 
How do i make 2 npcs talk to each other while dink watches?
February 23rd 2003, 06:32 PM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
say_stop();
February 23rd 2003, 07:24 PM
death.gif
Lavrik
Peasant They/Them
 
Dont u name each npc something and then type that command between each one talking?
What does WC stand for btw? Weapons control?
February 23rd 2003, 08:31 PM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Well, are you looking for something like the bar scene in terris (while dink is walking around doing crap, others are talking), or where dink freezes and two people converse while he stands around and listens?

P.S. It stands for White Chocolate, or if you listen to a few stupid brits, it's Water Closet.
February 23rd 2003, 10:10 PM
death.gif
Lavrik
Peasant They/Them
 
the 2nd one
February 24th 2003, 02:47 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Get the sprites with:

int &spr_one = sp(xx);
int &spr_two = sp(yy);

where xx and yy are the sprite numbers (see editor for these). Then let them talk like this:

say_stop("`4Hi!", &spr_one);
// wait(250);
say_stop("`7Hi!", &spr_two);
February 24th 2003, 06:27 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
That's not exactly the best way to be doing it, since it won't work if you're using visions. Either put :
&spr_one = &current_sprite in the first sprite's main procedure and :
&spr_two = &current_sprite in that of the second and add these 2 variables to main.c. Mind you that I do not advice you to do this with every sprite since you only have a limited number of globals available.
The other way you can do this is create them inside a (base) script by doing :
int &spr_one = create_sprite(x, y, brain, seq, frame); and the same for &spr_two. Then you can access these sprites inside the current script. This probably makes it more complicated, but if you're working with visions there's no other way.
February 24th 2003, 04:18 PM
death.gif
Lavrik
Peasant They/Them
 
thanks guys ur the best!