oolite/script.plist
Dylan Smith 8b456c000b oolite initial import
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1 127b21dd-08f5-0310-b4b7-95ae10353056
2005-04-19 19:53:18 +00:00

340 lines
13 KiB
Plaintext

{
"thargoid_plans" = (
{
conditions = (
"dockedAtMainStation_bool equal YES",
"galaxy_number equal 2",
"mission_conhunt equal MISSION_COMPLETE",
"mission_thargplans undefined",
"score_number greaterthan 1280"
);
do = (
setGuiToMissionScreen,
"addMissionText: thargoid_plans_intro_brief",
"set: mission_thargplans PRELUDE",
"setMissionDescription: thargplans_short_desc1"
);
},
{
conditions = (
"status_string equal STATUS_DOCKED",
"galaxy_number equal 2",
"mission_thargplans equal PRELUDE",
"planet_number equal 83"
);
do = (
setGuiToMissionScreen,
"showShipModel: thargoid",
"addMissionText: thargoid_plans_main_brief",
"set: mission_thargplans RUNNING",
"setMissionDescription: thargplans_short_desc2"
);
},
{
conditions = (
"mission_thargplans equal RUNNING",
"status_string equal STATUS_IN_FLIGHT",
"scriptTimer_number lessthan 60"
);
do = (
"checkForShips: thargoid",
{
conditions = ("shipsFound_number lessthan 2");
do = (
"addSystemShips: thargoid 1 0.66",
"addSystemShips: thargoid 1 0.33"
);
},
{
conditions = (
"shipsFound_number lessthan 5",
"d100_number lessthan 50"
);
do = ("addShips: thargoid 1");
}
);
},
{
conditions = (
"dockedAtMainStation_bool equal YES",
"galaxy_number equal 2",
"mission_thargplans equal RUNNING",
"planet_number equal 36"
);
do = (
setGuiToMissionScreen,
"showShipModel: thargoid",
"addMissionText: thargoid_plans_debrief",
"set: mission_thargplans MISSION_COMPLETE",
"awardShipKills: 256",
"awardEquipment: EQ_NAVAL_ENERGY_UNIT",
clearMissionDescription
);
}
);
"constrictor_hunt" = (
{
conditions = (
"dockedAtMainStation_bool equal YES",
"galaxy_number lessthan 2",
"mission_conhunt undefined",
"score_number greaterthan 255"
);
do = (
setGuiToMissionScreen,
"showShipModel: constrictor",
"addMissionText: constrictor_hunt_brief1",
{
conditions = ("galaxy_number equal 0");
do = ("addMissionText: constrictor_hunt_brief1a");
},
{
conditions = ("galaxy_number equal 1");
do = ("addMissionText: constrictor_hunt_brief1b");
},
"set: mission_conhunt STAGE_1",
"setMissionDescription: conhunt_short_desc1"
);
},
{
conditions = (
"mission_conhunt equal STAGE_1",
"gui_screen_string equal GUI_SCREEN_SYSTEM_DATA"
);
do = (
{
conditions = ("galaxy_number equal 0");
do = (
{
conditions = ("planet_number equal 150");
do = ("addMissionText: constrictor_hunt_0_150");
},
{
conditions = ("planet_number equal 36");
do = ("addMissionText: constrictor_hunt_0_36");
},
{
conditions = ("planet_number equal 28");
do = ("addMissionText: constrictor_hunt_0_28");
}
);
},
{
conditions = ("galaxy_number equal 1");
do = (
{
conditions = ("planet_number equal 3");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 5");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 16");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 26");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 32");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 68");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 106");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 107");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 162");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 164");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 184");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 192");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 220");
do = ("addMissionText: constrictor_hunt_1_A");
},
{
conditions = ("planet_number equal 253");
do = ("addMissionText: constrictor_hunt_1_253");
},
{
conditions = ("planet_number equal 79");
do = ("addMissionText: constrictor_hunt_1_79");
},
{
conditions = ("planet_number equal 53");
do = ("addMissionText: constrictor_hunt_1_53");
},
{
conditions = ("planet_number equal 118");
do = ("addMissionText: constrictor_hunt_1_118");
},
{
conditions = ("planet_number equal 193");
do = ("addMissionText: constrictor_hunt_1_193");
}
);
}
);
},
{
conditions = (
"mission_conhunt equal STAGE_1",
"status_string equal STATUS_IN_FLIGHT",
"galaxy_number equal 1",
"planet_number equal 193"
);
do = (
"checkForShips: constrictor",
{
conditions = ("shipsFound_number equal 0");
do = ("addShips: constrictor 1");
}
);
},
{
conditions = (
"dockedAtMainStation_bool equal YES",
"mission_conhunt equal CONSTRICTOR_DESTROYED"
);
do = (
setGuiToMissionScreen,
"showShipModel: constrictor",
"awardCredits: 5000",
"setLegalStatus: 0",
"awardShipKills: 256",
"addMissionText: constrictor_hunt_debrief",
"set: mission_conhunt MISSION_COMPLETE",
clearMissionDescription
);
}
);
nova = (
{
conditions = ("galaxy_number equal 3", "mission_novacount undefined");
do = ("set: mission_novacount 0");
},
{
conditions = ("galaxy_number equal 3", "status_string equal STATUS_EXITING_WITCHSPACE");
do = (
"increment: mission_novacount",
"testForEquipment: EQ_GAL_DRIVE",
{
conditions = (
"foundEquipment_bool equal YES",
"mission_novacount greaterthan 3",
"mission_nova undefined"
);
do = (
"set: mission_nova 2HRS_TO_ZERO",
"setFuelLeak: 25",
"setSunNovaIn: 7200",
"setPlanetinfo: market = none",
"setPlanetinfo: sun_gone_nova = YES"
);
}
);
},
{
conditions = ("mission_nova equal 2HRS_TO_ZERO", "status_string equal STATUS_IN_FLIGHT");
do = (
{conditions = ("sunWillGoNova_bool equal NO"); do = ("reset: mission_nova"); },
{conditions = ("sunWillGoNova_bool equal YES"); do = (sendAllShipsAway); }
);
},
{
conditions = (
"mission_nova equal 2HRS_TO_ZERO",
"dockedAtMainStation_bool equal YES",
"missionChoice_string undefined"
);
do = (
"setMissionImage: solar.png",
setGuiToMissionScreen,
"addMissionText: nova_1",
"setMissionChoices: nova_yesno"
);
},
{
conditions = (
"mission_nova equal 2HRS_TO_ZERO",
"dockedAtMainStation_bool equal YES",
"missionChoice_string equal YES"
);
do = (
"useSpecialCargo: A hold full of %I refugees.",
"setMissionDescription: nova_missiondesc",
launchFromStation,
"set: mission_nova NOVA_ESCAPE_HERO",
"setSunNovaIn: 12"
);
},
{
conditions = (
"mission_nova equal 2HRS_TO_ZERO",
"dockedAtMainStation_bool equal YES",
"missionChoice_string equal NO"
);
do = (
launchFromStation,
"set: mission_nova NOVA_ESCAPE_COWARD",
"commsMessage: Coward! You chose not to help the refugees!",
"setSunNovaIn: 3"
);
},
{
conditions = ("mission_nova equal NOVA_ESCAPE_HERO", "dockedAtMainStation_bool equal YES");
do = (
removeAllCargo,
"awardCargo: 100 Gem-Stones",
"setMissionImage: solar.png",
setGuiToMissionScreen,
"addMissionText: nova_hero",
"set: mission_nova NOVA_HERO",
clearMissionDescription
);
}
);
"cloaking-device" = (
{
conditions = (
"galaxy_number equal 4",
"status_string equal STATUS_EXITING_WITCHSPACE",
"mission_cloak undefined"
);
do = (
{
conditions = ("mission_cloakcounter undefined");
do = ("set: mission_cloakcounter 0");
},
"increment: mission_cloakcounter",
"checkForShips: asp-cloaked",
{
conditions = ("shipsFound_number equal 0", "mission_cloakcounter greaterthan 6");
do = ("addShips: asp-cloaked 1", "addShips: asp-pirate 2");
}
);
}
);
}