The Dink Network

Talking enemies questions

May 24th 2003, 08:12 AM
fish.gif
Binirit
Peasant She/Her
 
1. How do I make enemies say something (like 1 sentence) at random while they're moving around in screenlock?

2. I want Dink and the enemy have conversation before they engage in screenlocked battle. How do I do that?
May 24th 2003, 08:24 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
I use say and say_stop..
May 24th 2003, 08:32 AM
old.gif
Example:

Enemy script:

void main(void)
{
freeze(1);
freeze(&current_sprite);
say_stop("Hey thanks man! You've killed milder!", 1);
say_stop("Now I will kill you!", &current_sprite);
unfreeze(1);
unfreeze(&current_sprite);
}
May 24th 2003, 12:28 PM
spike.gif
1. E.g.

void main( void )
{
set_callback_random("blah",1000,5000);
}

void blah( void )
{
say_stop("I'll get u stupid scumhead!", &current_sprite);
}

2. Very simple. After creating the enemy, (if it's not placed in the screen by editor) just make the conversation before you init the enemy's brain, strength etc.
May 24th 2003, 04:22 PM
fish.gif
Binirit
Peasant She/Her
 
Thanks!

(No thanks for WC though... )
May 24th 2003, 04:41 PM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
May 25th 2003, 11:48 PM
death.gif
Lavrik
Peasant They/Them
 
Thats the spirit never say thanks to WC