View Single Post
Old 12-06-11, 02:48 PM   #12
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by sober View Post
Cheers blokes . I will have a go and get back to you if i need help
No worries .
I would suggest starting with making the script display text and pictures, just to get the feel for how it works.

When I made some, I would just have TDWs readme open and a blank text doc open - then just type in some commands and test


Here is an example for a test:-


This is a .SHT file (Testing_Tutorials.SHT) in the tutorial folder

[TITLE]
Testing_Tutorials
[TITLE_END]

[DESCRIPTION]
Testing script to display text and pictures
[DESCRIPTION_END]

[UISTYLE]
SH5Enhanced
[UISTYLE_END]

[HISTORICMISSION]
Any
[HISTORICMISSION_END]

[COMMANDS]
CommandsEnabled|1|0|0|0|0|0
CommandsVisible|1|0|0|0|0|0
DisplayText|Mary had a little lamb.|0|0|0|0|10
DisplayText|whose fleece was white as snow|0|0|0|0|10
SetTutorialImage|Mary_Lamb|0|0|0|0|0
DisplayTutorialImage|1|0|0|0|0|0
SetTutorialImageSize|550|464|0|0|0|0
WaitForNext|0|0|0|0|0|0
[COMMANDS_END]



Mary_Lamb.dds image (550 x 464 - this is picture size, can be set to anything) into C:\Ubisoft\Silent Hunter 5\data\Menu\Gui\Tutorial Images




This is a .SHA file (Testing_Tutorials.SHA) in the automation folder

[AS]
Testing_Tutorials
[DESCRIPTION]
Testing script to display text and pictures
[DESCRIPTION_END]
[CATEGORY]
Tutorials
[SUBCATEGORY]
Sub
[COMMANDS]
Play_tutorial,0,0,Testing_Tutorials,0,0,0,0
[COMMANDS_END]
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote