Code: Select all
{
"Trumblerevenge" = (
{
conditions = (
"mission_trumbles TRUMBLE_BOUGHT",
"mission_trumblerevenge equal undefined",
"set: mission_variable_hesperus_lives 9"
);
do = (
"set: mission_trumblerevenge equal INCUBATING"
);
},
/** Determine trumble status **/
{
conditions = ("status_string equal STATUS_DOCKED");
do = ("testForEquipment: EQ_TRUMBLE",
{
conditions = ("foundEquipment_bool equal YES");
do = ("set: mission_variable_trumblecheck GOT_TRUMBLE");
else = ("set: mission_variable_trumblecheck NOT_TRUMBLE");
},
);
},
/** Block docking at Hermits with pets **/
{
conditions = (
"mission_local_variable_trumblecheck equal GOT_TRUMBLE",
"status_string equal STATUS_DOCKED",
"dockedStationName_string equal rock-hermit"
);
do = (
"showShipModel: none",
"setMissionImage: screamcat.png",
setGuiToMissionScreen,
"set: local_variable_hermitreply_die [d100_number]",
{
conditions = ("local_variable_hermitreply_die lessThan 11");
do = ("addMissionText: trumble_getout1");
},
{
conditions = ("local_variable_hermitreply_die moreThan 10");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 21");
do = ("addMissionText: trumble_getout2");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 20");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 31");
do = ("addMissionText: trumble_getout3");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 30");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 41");
do = ("addMissionText: trumble_getout4");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 40");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 51");
do = ("addMissionText: trumble_getout5");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 50");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 61");
do = ("addMissionText: trumble_getout6");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 60");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 71");
do = ("addMissionText: trumble_getout7");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 70");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 81");
do = ("addMissionText: trumble_getout8");
},
);
},
{
conditions = ("local_variable_hermitreply_die moreThan 80");
do = (
{
conditions = ("local_variable_hermitreply_die lessThan 91");
do = ("addMissionText: trumble_getout9");
else = ("addMissionText: trumble_getout10");
},
);
},
launchFromStation
);
},
/** Incubating script. **?
{
conditions = (
"status_string equal STATUS_EXITING_WITCHSPACE",
"mission_trumblerevenge equal INCUBATING",
"d100_number lessthan 5"
);
do = ("set: mission_trumblerevenge: OFFER");
},
/** Offer choice: get hesperus or ignore. **/
{
conditions = (
"status_string equal STATUS_DOCKED",
"dockedAtMainStation_bool equal YES",
"mission_trumblerevenge equal OFFER",
"missionChoice_string undefined"
);
do = (
{
conditions = ("mission_local_variable_trumblecheck equal GOT_TRUMBLE");
do = (
"showShipModel: dubious_profit.dat",
"setMissionImage: none",
setGuiToMissionScreen,
"addMissionText: trumble_get_hesperus",
"setMissionChoices: trumble_revenge_yesno",
"set: mission_trumblesrevenge CHOICE_OFFERED"
);
},
{
conditions = ("mission_local_variable_trumblecheck equal NOT_TRUMBLE");
do = (
"showShipModel: dubious_profit.dat",
"setMissionImage: none",
setGuiToMissionScreen,
"addMissionText: trumble_help_hesperus",
"setMissionChoices: trumble_revenge_yesno",
"set: mission_trumblesrevenge CHOICE_OFFERED"
);
},
);
},
/** Choice made, now decide missiontext depending on galaxy and trumble-state **/
{
conditions = (
"status_string equal STATUS_DOCKED",
"dockedAtMainStation_bool equal YES",
"mission_trumblerevenge equal CHOICE_OFFERED"
);
do = (
{
conditions = (
"status_string equal STATUS_DOCKED",
"mission_trumbles equal CHOICE_OFFERED",
"missionChoice_string equal NO"
);
do = (
resetMissionChoice, "reset: mission_trumblerevenge"
);
},
{
conditions = (
"status_string equal STATUS_DOCKED",
"mission_trumbles equal CHOICE_OFFERED",
"missionChoice_string equal YES"
);
do = (
resetMissionChoice,
"setMissionImage: none",
setGuiToStatusScreen,
"set: mission_trumblerevenge CHASE",
{
conditions = ("galaxy_number equal 0");
do = ("addMissionText: trumble_chase_0_0", "setMissionDescription: Chase_Hesperus_description");
},
{
conditions = ("galaxy_number equal 1");
do = ("addMissionText: trumble_chase_1_0");
},
{
conditions = ("galaxy_number equal 2");
do = ("addMissionText: trumble_chase_2_0");
},
{
conditions = ("galaxy_number equal 3");
do = ("addMissionText: trumble_chase_3_0");
},
{
conditions = ("galaxy_number equal 4");
do = ("addMissionText: trumble_chase_4_0");
},
{
conditions = ("galaxy_number equal 5");
do = ("addMissionText: trumble_chase_5_0");
},
{
conditions = ("galaxy_number equal 6");
do = ("addMissionText: trumble_chase_6_0");
},
{
conditions = ("galaxy_number equal 7");
do = ("addMissionText: trumble_chase_7_0");
},
);
},
);
},
/** location hints galaxy one **/
{
conditions = (
"status_string equal STATUS_DOCKED",
"mission_trumblerevenge equal CHASE",
"gui_screen_string equal GUI_SCREEN_SYSTEM_DATA");
do = (
{
conditions = ("galaxy_number equal 0", "status_string equal STATUS_DOCKED");
do = (
{
conditions = ("planet_number equal 63");
do = ("addMissionText: trumblechase_0_63");
},
{
conditions = ("planet_number equal 143");
do = ("addMissionText: trumblechase_0_143");
},
{
conditions = ("planet_number equal 199");
do = ("addMissionText: trumblechase_0_199",
"addMissionText: dubious_cargo_query",
"set: local_variable_dubious_cargo CHOOSE");
},
{
conditions = ("status_string equal STATUS_DOCKED", "planet_number equal 199", "local_variable_dubious_cargo CHOOSE", "missionChoice_string equal YES");
do = ("awardCargo: food 2", "awardEquipment: EQ_TRUMBLE", resetMissionChoice, "addMisionText: dubious_cargo1");
else = (
{
conditions = ("status_string equal STATUS_DOCKED", "planet_number equal 199", "local_variable_dubious_cargo CHOOSE", "missionChoice_string equal NO");
do = (resetMissionChoice, );
},
);
},
{
conditions = ("planet_number equal 150");
do = ("addMissionText: trumblechase_0_150");
},
{
conditions = ("planet_number equal 85");
do = ("addMissionText: trumblechase_0_85");
},
{
conditions = ("planet_number equal 247");
do = ("addMissionText: trumblechase_0_247");
},
{
conditions = ("planet_number oneof ");
do = ("addMissionText: trumblechase_0_Lave");
},
{
conditions = ("planet_number equal 7");
do = ("addMissionText: trumblechase_0_Lave");
},
);
},
);
},
/** Hesperus found at Tianve, galaxy 0 **/
/** Checking for Tianve_OXP **/
{
conditions = (
"status_string equals IN_FLIGHT",
"galaxy_number equal 0",
"planet_number equal 247",
"mission_trumblerevenge oneof CHASE, INCUBATING"
);
do = ( "checkForShips: station-pulsar",
{
conditions = ("shipsFound_number greaterThan 0");
do = ("checkForShips: Dubious_Profit",
{
conditions = ("shipsFound_number equal 0", "mission_variable_hesperus_lives greaterThan 0");
do = ("addShipsAtPrecisely: Dubious_Profit 1 pwm -4381198.00 2271925.50 623546.50");
},
);
else = ("set: mission_variable_TianvePulsar NONE", "checkForShips: Dubious_Profit",
{
conditions = ("shipsFound_number equal 0", "mission_variable_hesperus_lives greaterThan 0");
do = ("addShips: dubious_profit 1");
},
);
},
);
},
/** WRAP IT UP **/
{
conditions = (
"status_string equal STATUS_DOCKED",
"galaxy_number equal 0",
"planet_number equal 247");
do = (
"showShipModel: dubious_profit.dat",
"setMissionImage: none",
setGuiToMissionScreen,
{
conditions = ("mission_trumblerevenge oneof COMPLETED_SHIP_DESTROYED, COMPLETED_DEAD, COMPLETED_ESCAPED");
do = ("addMissionText: trumble_got_Hesperus");
},
{
conditions = ("mission_trumblerevenge oneof COMPLETED_CAPTURED, COMPLETED_MERCY");
do = ("addMissionText: trumble_Hesperus_negotiations");
},
);
},
/** Reactivating trumbles **/
{
conditions = ("mission_trumble equal TRUMBLE_BOUGHT", "dockedAtMainStation_bool equal YES");
do = (
{
conditions = ("score_number greaterThan 5000");
do = ();
else = (
{
conditions = ("score_number greaterThan 4000");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
else = (
{
conditions = ("score_number greaterThan 3000");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
else = (
{
conditions = ("score_number greaterThan 2000");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
else = (
{
conditions = ("score_number greaterThan 1500");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
else = (
{
conditions = ("score_number greaterThan 1000");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
else = (
{
conditions = ("score_number greaterThan 750");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
else = (
{
conditions = ("score_number greaterThan 500");
do = ("reset: mission_trumble", "reset: mission_trumblerevenge");
},
);
},
);
},
);
},
);
},
);
},
);
},
);
},
);
},
/** Damaged station temporary **/
{
conditions =("mission_trumblerevenge equal CHASE");
do = ("setSpecificPlanetInfo: 0=179=station=coriolis-station-two");
else = (
{
conditions =( "mission_trumble equal TRUMBLE_BOUGHT" );
do = ("setSpecificPlanetInfo: 0=179=station=coriolis-station-two" );
},
);
},
);
}