Jump to content

Home

Any one knows a good BehavEd tutorial?


tFighterPilot

Recommended Posts

Originally posted by imyourfather

I already looked at them, but they did not help much.

 

They'll help you once you are on your way to understanding what it all does. And to understand it look at those tutorials I posted previously and make yourself a few test cutscenes. Then you can start to see the light...

Link to comment
Share on other sites

It's been a long time since i've done this stuff, so my scripting is a little rusty. :)

 

But to get a charector to say a line, place an "affect" in for him and also throw in a "task" for good measure. Then when you want him to say his line simply activate it with a "do" command. ;)

 

Like this:

 

affect ( "boss", /*@AFFECT_TYPE*/ FLUSH )

{

 

task ( "BOSS_LINE1" )

{

sound ( CHAN_AUTO, "sound/tragingalo/l2.mp3" );

}

 

do ( "BOSS_LINE1" );

}

Link to comment
Share on other sites

Yes, "CHAN_AUTO" works but it's best to use "CHAN_VOICE" for charectors speaking.

 

If you're using custom sounds for your voices then try checking that they are encoded correctly, which I think if memory serves is into Mono 16bit sound running at 44100 Hz. :)

 

Also, try checking that your charectors are named "npc_targetname" and not "targetname";)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...