New Scripts: tnhScript 2.1 [final] Public Scripts 2.1 [second test] - by Telliamed
Yandros on 8/4/2009 at 14:50
I need to find time to play with this, especially the new and improved OnScreenText. I am going to use it to display translated subtitles for the conversations in DCE and want one book file per conversation instead of per line. I know some folks (R Soul) are proficient at that, does anyone have a tut on best practices for changing pages etc. using this script?
Yandros on 8/4/2009 at 16:21
Thanks for the info and tuts. With over 250 spoken lines, I'm going to need all the help I can to make it simple to implement subtitles.
Zontik on 9/4/2009 at 05:17
I made the conversation using Tnhscript ver 1.5.4: one text file with new page for each phrase, and combined 'book' with button linked via ControlDevice to itself. (Scripts are: TrigWorldFrob, OnScreenText.) Works fine: each frob of a button reads the next page of text file.
Later I realized that new pre-version of scripts released and it had problems with this way of using OnScreenText (combined with button). I was curious, downloaded the latest (!!!) version of Tnhscript, loaded mission, dropped Tnhscript and loaded another module instead (I named it Tnhscript2). And checked conversation.
Everything worked fine!
Yandros on 9/4/2009 at 12:38
Very clever, Zontik. I'll probably do something similar and have the conversation actors frob their book object just before speaking each line.
Zontik on 9/4/2009 at 13:22
I stole this method from 'Broken Triad'.
Yandros on 9/4/2009 at 14:01
Wow, there's a surprise! I stole the method used for thrown weapons and the "hidden" weapon in Deathmatch from the Staff of Far Reach.
R Soul on 9/4/2009 at 14:11
It's been a while since I redid one aspect of the conv, so I thought I'd also converted it to using ScriptController to show the right page. Now that I've just looked again, I can see that I'm still using the repeating frob method.
Telliamed on 10/4/2009 at 00:46
Here's a tip if you're using script.osm. TrapSMTrans and Forwarder are good for handling the ScrMessage action in conversations.
Telliamed on 10/4/2009 at 20:48
Bump for final release.
I've been using the new scripts, both TNH and Pub, in a number of existing FMs and so far not a single glitch. Finally got an excuse to play DP2. After being killed by the scarecrow right off the bat... I got as far as the shadow room before getting stuck. Worried that it might have been a script, I checked in Dromed and see that it's just an undersized OBB trigger. I walked right by the thing but must've only clipped a corner. Those things are really unreliable.
Anyway, here's the official tnhScript and a preview of Public Scripts.