-- LuaMissions.lua -- Script to create and configure missions using the rem.mission namespace -- Mission types: PVE (combat), Trade (sell goods), FlyTo (reach base) -- Triggers: InitState (on mission start), BaseEnter (on docking), SpaceEnter (on launch) -- Triggers change the config.lua -- === PVE Mission === rem.mission.create("XenoHunt") -- Set mission name rem.mission.missiontype("pve") -- Set mission type (pve, trade, flyto) rem.mission.pve_enemyfaction("fc_n_grp") -- Enemy faction rem.mission.pve_enemycount(2) -- Enemies per wave (max 20, scaled by group size) rem.mission.pve_wavecount(1) -- Enemy waves (max 6, scaled by group size) rem.mission.pve_spawnmethod("fixed") -- Spawn position (fixed or dynamic) rem.mission.pve_spawnpos(-29255, 0, -26907) -- Fixed position (x, y, z; required for fixed spawn) rem.mission.pve_enemyship("co_hsp_li_freighter_d1") -- Optional: Specific enemy ship (defaults to hardest FIGHTER of faction) rem.mission.trigger("InitState") -- Trigger: Starts immediately on mission acceptance rem.mission.startbase("Li01_01_Base") -- Starting base for THN rem.mission.thnconfig("manhattan_gen", "arc_juni") -- THN location and name rem.mission.thntime(56) -- THN duration in seconds rem.mission.showpopup(458763, 458764) -- Infocard IDs for caption and content (one popup per THN) rem.mission.missionmessage("popup", 458763) -- Message shown after popup rem.mission.missionmessage("launch", 458763) -- Message shown after launch rem.mission.thnsave() -- Save THN configuration rem.mission.save() -- Finalize and save mission -- === Trade Mission === rem.mission.create("WaterTrade") -- Set mission name rem.mission.missiontype("trade") -- Set mission type (pve, trade, flyto) rem.mission.trade_targetbase("li02_02_base") -- Target base to sell goods (valid base nickname required) rem.mission.trade_targetitem("commodity_water") -- Commodity to trade rem.mission.trade_targetamount(100) -- Amount to sell (scaled by group size) rem.mission.trigger("InitState") -- Trigger: Starts immediately on mission acceptance rem.mission.startbase("Li01_01_Base") -- Starting base for THN rem.mission.thnconfig("manhattan_gen", "arc_juni") -- THN location and name rem.mission.thntime(56) -- THN duration in seconds rem.mission.showpopup(458790, 458791) -- Infocard IDs for caption and content rem.mission.missionmessage("popup", 458792) -- Message shown after popup rem.mission.missionmessage("launch", 458793) -- Message shown after launch rem.mission.thnsave() -- Save THN configuration rem.mission.save() -- Finalize and save mission -- === FlyTo Mission === rem.mission.create("Westpoint") -- Set mission name rem.mission.missiontype("flyto") -- Set mission type (pve, trade, flyto) rem.mission.flyto_targetbase("Li01_09_Base") -- Target base (mission completes when docking here and confirming popup) rem.mission.trigger("InitState") -- Trigger: Starts immediately on mission acceptance rem.mission.startbase("Li01_01_Base") -- Starting base for THN rem.mission.thnconfig("manhattan_gen", "arc_juni") -- THN location and name rem.mission.thntime(56) -- THN duration in seconds rem.mission.showpopup(458763, 458764) -- Infocard IDs for caption and content rem.mission.missionmessage("popup", 458772) -- Message shown after popup rem.mission.missionmessage("launch", 458773) -- Message shown after launch rem.mission.thnsave() -- Save THN configuration -- Optional: Second THN entity for SpaceEnter at target base rem.mission.trigger("SpaceEnter") -- Trigger: Activates when docking at target base rem.mission.startbase("Li01_09_Base") -- Target base for THN rem.mission.thnconfig("westpoint_gen", "arc_juni") -- THN location and name rem.mission.thntime(35) -- THN duration in seconds rem.mission.showpopup(458763, 458764) -- Infocard IDs for caption and content rem.mission.missionmessage("popup", 458775) -- Message shown after popup rem.mission.thnsave() -- Save THN configuration rem.mission.save() -- Finalize and save mission -- Create and configure the mission rem.mission.create("reunion") -- Set mission name rem.mission.missiontype("pve") -- Set mission type to PVE rem.mission.trigger("InitState") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter) rem.mission.pve_enemyfaction("fc_n_grp") -- Set Enemy Faction to Nomads rem.mission.pve_enemycount(4) -- 4 enemies per wave rem.mission.pve_wavecount(2) -- 1 wave rem.mission.pve_spawnmethod("fixed") -- NPC spawn Method set to fixed Location rem.mission.pve_spawnpos(-16419, 0, 74074) -- NPC Spawn Position rem.mission.startbase("Li01_01_Base") -- Set mission startbase rem.mission.thnconfig("manhattan_gen", "arc_juni") -- Set THN location and name rem.mission.thntime(57) -- Set THN duration to x seconds rem.mission.showpopup(458770, 458771) -- Set infocard IDs for caption and content rem.mission.missionmessage("popup", 458772) -- Show Mission Message after Popup rem.mission.missionmessage("launch", 458773) -- Show Mission Message after launch rem.mission.thnsave() -- Save the thn config rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter) rem.mission.startbase("Li01_09_Base") -- Set mission startbase rem.mission.thnconfig("westpoint_gen", "arc_juni") -- Set THN location and name rem.mission.thntime(34) -- Set THN duration to x seconds rem.mission.showpopup(458770, 458774) -- Set infocard IDs for caption and content rem.mission.missionmessage("popup", 458775) -- Show Mission Message after Popup --rem.mission.missionmessage("launch", 458773) -- Show Mission Message after launch rem.mission.thnsave() -- Save the thn config rem.mission.save() -- Finalize and save mission to the list -- Create and configure the first mission rem.mission.create("duty") -- Set mission name rem.mission.missiontype("pve") -- Set mission type to PVE rem.mission.trigger("InitState") -- Trigger to setup thnconfig rem.mission.pve_enemyfaction("fc_x_grp") -- Set Enemy Faction to Xenos rem.mission.pve_enemycount(4) -- 4 enemies per wave rem.mission.pve_wavecount(2) -- 2 waves rem.mission.pve_spawnmethod("fixed") -- NPC spawn Method set to fixed Location rem.mission.pve_spawnpos(-30763, 0, -60216) -- NPC Spawn Position rem.mission.startbase("Li01_01_base") -- Set mission startbase rem.mission.thnconfig("manhattan_gen", "arc_harrison") -- Set THN location and name rem.mission.thntime(59) -- Set THN duration to 59 seconds rem.mission.showpopup(458760, 458761) -- Set infocard IDs for caption and content rem.mission.missionmessage("popup", 458762) -- Show Mission Message after Popup rem.mission.thnsave() rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter) rem.mission.startbase("Li01_13_Base") -- Set mission startbase rem.mission.thnconfig("rochester_gen", "arc_harrison") -- Set THN location and name rem.mission.thntime(43) -- Set THN duration to 44 seconds rem.mission.showpopup(458760, 458764) -- Set infocard IDs for caption and content rem.mission.thnsave() -- Save the thn config rem.mission.save() -- Create and configure the first mission rem.mission.create("relics") -- Set mission name rem.mission.trigger("InitState") -- Trigger to setup thnconfig rem.mission.startbase("St01_01_base") -- Set mission startbase rem.mission.thnconfig("toledo_gen", "arc_sinclair") -- Set THN location and name rem.mission.thntime(40) -- Set THN duration to 40 seconds rem.mission.showpopup(458780, 458781) -- Set infocard IDs for caption and content rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter) rem.mission.thnsave() -- Save the thn config rem.mission.save()