SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-21-11, 04:18 PM   #11
Paris_England
Soundman
 
Join Date: Aug 2010
Posts: 144
Downloads: 79
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Yes there is!

In the \data\Scripts\AI\Crew\init.aix you can define them. Here is a sample of what I have defined so far:

#these are variable IDs to be used with the Wp:SetGlobalVariable and Wp:GetGlobalVariable functions

# TDW Crash Dive
TDW_BED01_CRASH_DIVE_ORDERED = 9000;
TDW_BED02_CRASH_DIVE_ORDERED = 9001;
TDW_BED03_CRASH_DIVE_ORDERED = 9002;
TDW_BED04_CRASH_DIVE_ORDERED = 9003;
TDW_BOSUN_CRASH_DIVE_ORDERED = 9004;
TDW_COOK_CRASH_DIVE_ORDERED = 9005;

# TDW man the deck gun
TDW_MAN_DECKGUN = 9006;
# for manning, at deck gun, and unmanning
# manning = 1, atdeckgun = 2, unmanning = 3, idle = 0
TDW_BED01_DECKGUN = 9007;
TDW_BED02_DECKGUN = 9008;
I've gotten that far -- what I can't figure out is how to set these variables from the UI.

It would just be SOOO easy to control the crew if we could do that.
For example, in your real nav you do a check for precipitation:

# check precipitations
if cando:
wc = GetWeatherInfo( "precipitations" )
#ScriptManagerManaged.Trace( "precipitations: wc=" + wc + "\twc!=None: " + str( wc != Menu.GetLocalizedText( 4120 ) ) )
if wc != Menu.GetLocalizedText( 4120 ):
cando = False

If we could set a variable in this routine, say Rain = 0, that could be read by the AIX files then we'd be in business.

Same goes for Battlestations or any other command.

I've been combing the files to see if I can find a hint as to how the IsCrewState() gets defined, but I've yet to come across it. It's this kind of thing I'm talking about.
Paris_England is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.