Well, I'm a bit rusty, but i think what works in tk2 should work in tk3 so maybe something like this:
#if(darkwar!=0)
{
#mwin("young lady: Hey I'm a nameless NPC in this demonstration!")
#wait
}
#if(darkwar!=1)
{
#mwin("young lady: gosh now that the darkwar has happened, i should probably be less cheerful!")
#wait
}
That's what you would do for a young lady talking (or just about anyone else). Just put the variable you're using in the program that makes whatever has happened happen.
For a locked door:
#if(darkwar!=0)
{
#mwin("door: hey biyatch I'm not gonna open yet because the dark war hasn't happend! I suppose you'll just have to occupy yourself until then!")
#wait
}
#if(darkwar!=1)
{
#mwin("door: alright you've waiting long enough, but the gold makes me happy so please don't take any or i'll hate you for the rest of my life.")
#wait
#wav("doorcreak.wav")
#send("board_inside_door.brd",1,1,1)
}
That's for if you want a particularly foul door.
And if you want several different things that one character can say:
#random(4,randomint!)
#if(randomint!=1)
{
#mwin("guy: go boil your bottoms, sons of a silly person!")
#wait
}
#if(randomint!=2)
{
#mwin("guy: let's be freinds.")
}
#if(randomint!=3)
{
#mwin("guy: Du! du hast! du hast mich! du hast mich gefragt! du hast mich gefragt, und ich hab nichts gesagt!)
#wait
*if you want your guy to sing RAMMSTEIN
}
#if(randomint!=4)
{
#mwin("guy: joo f00l i r0x0rz 1n my b0x0rz!")
#wait
*for the weird ultra 1337 guy
}
keep in mind though, that this is all untested.