Livingdeadjedi Posted April 14, 2003 Share Posted April 14, 2003 ive made a script which has a Rodian talking but how do i add text to the screen so you can see what hes saying ? ive tried subtitles and other stuff but nothing appears to work properley ?? Link to comment Share on other sites More sharing options...
starunner Posted April 14, 2003 Share Posted April 14, 2003 Subtitles are .sp files that go in the /strip directory. You can find Raven's examples in assets1.pk3. Here's the first part of the kejim_post.sp file: VERSION 1 CONFIG W:\bin\striped.cfg ID 58 REFERENCE KEJIM_POST <<this points to the map name DESCRIPTION "kejim_post" COUNT 111 INDEX 0 { REFERENCE 01JAO001 <<this point to the wave file TEXT_LANGUAGE1 "Preparing for final approach. Whatever's causing those transmissions, it's not showing up on any of the sensors. This Imperial outpost looks as abandoned as reported." TEXT_LANGUAGE2 "Préparation pour l'approche finale. Aucune trace de l'origine de ces transmissions sur les détecteurs. Cet avant-poste impérial a l'air aussi abandonné qu'on nous l'avait annoncé." TEXT_LANGUAGE3 "Vorbereitung auf den Landeanflug. Was auch immer für diese Übertragungen verantwortlich ist, es zeigt sich nicht auf den Sensoren. Dieser imperiale Außenposten wirkt genau so verlassen, wie er sein soll." } INDEX 1 { REFERENCE 01KYK001 TEXT_LANGUAGE1 "It's as dead as the rest of Kejim. Mon Mothma must be getting paranoid. She never used to send pros like us out on blue milk runs like this." TEXT_LANGUAGE2 "Il est mort, comme tout le reste sur Kejim. Mon Mothma doit devenir parano. Elle n'est pas du genre à envoyer des pros sur des missions de débutants!" TEXT_LANGUAGE3 "Er ist so tot wie der Rest von Kejim. Mon Mothma muss langsam paranoid werden. Sie hat noch nie Profis wie uns auf so eine Vergnügungstour geschickt." } (And so on) Make sure that your "reference" info is in caps, and that the you point to the right wave file. You might also have to call the .sp file the same name as your .bsp, but I'm not certain. Also, remember to force subtitles during the Rodian's talky-bits (use the Set /*@SET_TYPES*/ "SET_USE_SUBTITLES", /*@BOOL_TYPES*/ "true" ); command in behaved), so that the player can read them whether subtitles are on or off. Link to comment Share on other sites More sharing options...
clu Posted April 14, 2003 Share Posted April 14, 2003 You can also use the "Print" command in BehavEd, but here are a couple of points to keep in mind: 1) It seems you must have an exclamation point in the beginning of your string. So if you wanted to say "Hello world", your string would actually have to say "!Hello world" 2) The print command doesn't seem to work when placed within an "affect" statement. It has to be outside in the main body of the script. 3) This can be problematic if you have a dialogue between two characters and you want to insert a line of text within a nested "affect" statement. I get around this by calling another script with the "use" command ("use" a target scriptrunner in your level that targets your print script) Hope this helps. -clu Link to comment Share on other sites More sharing options...
Livingdeadjedi Posted April 14, 2003 Author Share Posted April 14, 2003 cool thanks alot guys Link to comment Share on other sites More sharing options...
000nate Posted April 14, 2003 Share Posted April 14, 2003 Jeez I asked the forum this like a month ago and no one knew how to do it! Wha... Well w/e atleast I can use this post. Link to comment Share on other sites More sharing options...
Leslie Judge Posted April 14, 2003 Share Posted April 14, 2003 Originally posted by clu 3) This can be problematic if you have a dialogue between two characters and you want to insert a line of text within a nested "affect" statement. I get around this by calling another script with the "use" command ("use" a target scriptrunner in your level that targets your print script) Then why not use target_prints instead of another scriptrunners? OKOK, I know. If you wanna print multiple lines the script is the good solution. /me stupid Link to comment Share on other sites More sharing options...
clu Posted April 14, 2003 Share Posted April 14, 2003 Then why not use target_prints instead of another scriptrunners? Actually all my scriptrunners does get a bit messy. I haven't tried target_print. How exactly do you use that? -clu Link to comment Share on other sites More sharing options...
000nate Posted April 14, 2003 Share Posted April 14, 2003 are you talking about target_print in radiant? Or in scripting (behaved) If you are talking about the target_print in radiant just type message in for the key than for the value type your message, however this will not work for subtitles if it is in a cutscene, than you will have to use the above so well'ly' stated Link to comment Share on other sites More sharing options...
clu Posted April 15, 2003 Share Posted April 15, 2003 OK cool. I'll probably stick to the print command. I like to keep all my text in scripts in one directory (also avoid compiling). Thanks much. -clu Link to comment Share on other sites More sharing options...
-=ReApEr=- Posted April 15, 2003 Share Posted April 15, 2003 I myself dont use complex stuff like that the only thing i do is make maps for jk2 mp Link to comment Share on other sites More sharing options...
Leslie Judge Posted April 15, 2003 Share Posted April 15, 2003 Originally posted by clu I like to keep all my text in scripts in one directory (also avoid compiling). Now that's a verrry good point. Link to comment Share on other sites More sharing options...
Livingdeadjedi Posted April 16, 2003 Author Share Posted April 16, 2003 print command never ever works ravens scripts dont use it starrunners way worked so good i fell off my seat but thanks for the help Link to comment Share on other sites More sharing options...
clu Posted April 16, 2003 Share Posted April 16, 2003 Quick question - do subtitles work in normal SP gameplay or only in cinematics? -clu Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.