// ############# TRIGGER FUNCTIONS ############### /* * //####### Available Conditions * * //#### Test step * && Dialogs.OnboardingStep == 0 * * //#### Test time * && Dialogs.timeIs(65.0f) // Global Clock is 65s * && TimeSinceLastDialogIs(15.0f) // Time since last dialog ENDED is 15s * * //#### Test Activity * && Dialogs.isWaterTankActive() * && Dialogs.isGeneratorActive() * && Dialogs.isPotatoFieldActive() * * //#### Test Module info * && GetModuleHealth("water") >= 80.0f // Water module is at 80% health or more * && GetAmount("potatoes") > 112 // Stock of potatoes is more than 112 units * * //#### Test Player state * && IsPlayerDead() * && GetPlayerHunger() >= 95.0f // Hunger is at 95% or MORE * && GetPlayerThirst() < 50.0f // Thirst is at 50% or LESS * */ static bool WaitScreen() { return(Dialogs.OnboardingStep == 0 && Dialogs.timeIs(4.0f)); }
static bool Step20() { return(Dialogs.OnboardingStep == 20 && Dialogs.timeIs(1.0f)); }
// Step 950 Drop5 static bool Step950() { return(Dialogs.timeIs(380.0f)); }
// Step 2000 PlayerVictory static bool Step2000() { return(Dialogs.timeIs(420.0f)); }
// Step 940 Drop4 static bool Step940() { return(Dialogs.timeIs(340.0f)); }
// Step 930 Drop3 static bool Step930() { return(Dialogs.timeIs(300.0f)); }
// Step 920 Drop2 static bool Step920() { return(Dialogs.timeIs(250.0f)); }
// Step 910 Drop1 static bool Step910() { return(Dialogs.timeIs(200.0f)); }
// ############# TRIGGER FUNCTIONS ############### /* * //####### Available Conditions * * //#### Test step * && OnboardingStep == 0 * * //#### Test time * && Dialogs.timeIs(65.0f) // Global Clock is 65s * && TimeSinceLastDialogIs(15.0f) // Time since last dialog ENDED is 15s * * //#### Test Activity * && isWaterTankActive() * && isGeneratorActive() * && isPotatoFieldActive() * * //#### Test Module info * && GetModuleHealth("water") >= 80.0f // Water module is at 80% health or more * && GetAmount("potatoes") > 112 // Stock of potatoes is more than 112 units * * //#### Test Player state * && IsPlayerDead() * && GetPlayerHunger() >= 95.0f // Hunger is at 95% or MORE * && GetPlayerThirst() < 50.0f // Thirst is at 50% or LESS * */ // Step 500 BeforeMarsStorm static bool TestStormIn() { return(Dialogs.timeIs(10.0f)); }