Files
REM-Mod/EXE/REM/Lua/LuaMissions.lua
2025-08-10 01:23:22 +02:00

269 lines
20 KiB
Lua

-- 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
-- Tutorial Mission ===
--rem.mission.arc("Tutorial Liberty")
rem.mission.create("tutorial") -- Set mission name
rem.mission.missiontype("flyto") -- Set mission type to PVE
rem.mission.flyto_targetbase("Li01_10_Base") -- Target base (mission completes when docking here and confirming popup)
rem.mission.trigger("InitState") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter)
rem.mission.startbase("Li01_01_Base") -- Set mission startbase
rem.mission.thnconfig("manhattan_gen", "arc_tutorial") -- Set THN location and name
rem.mission.thntime(32) -- Set THN duration to x seconds
rem.mission.showpopup(475001, 475002) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 475003) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 475004) -- Show Mission Message after launch
rem.mission.trigger("SpaceEnter") -- Trigger: Activates when docking at target base
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.arc("StoryArc1")
rem.mission.create("rebus_liberty2") -- Set mission name
rem.mission.missiontype("pve") -- Set mission type to PVE
rem.mission.trigger("InitState") -- Trigger to setup thnconfig
rem.mission.startbase("Li01_12_base") -- Set mission startbase
rem.mission.pve_enemyfaction("li_p_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(-50000, 0, 5000) -- NPC Spawn Position
rem.mission.thnconfig("buffalo_gen", "arc_rebus3") -- Set THN location and name
rem.mission.thntime(57) -- Set THN duration to 57 seconds
rem.mission.showpopup(459010, 459011) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 459012) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 459013)
rem.mission.thnsave()
--rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter)
--rem.mission.thnconfig("buffalo_gen", "arc_rebus4") -- Set THN location and name
--rem.mission.thntime(20) -- Set THN duration to 20 seconds
--rem.mission.thnsave()
rem.mission.save()
-- === Rheinland Rebus Story Arc Mission 1 ===
-- rem.mission.arc("StoryArc5")
rem.mission.create("rebus_rheinland1") -- Set mission name
rem.mission.missiontype("flyto") -- Set mission type (pve, trade, flyto)
rem.mission.flyto_targetbase("Rh01_01_Base") -- Target base (mission completes when docking here and confirming popup)
rem.mission.trigger("InitState") -- Trigger: Starts immediately on mission acceptance
rem.mission.startbase("Rh05_04_Base") -- Starting base for THN
rem.mission.thnconfig("vogtland_gen", "arc_rebus1") -- THN location and name
rem.mission.thntime(67) -- THN duration in seconds
rem.mission.showpopup(471200, 471201) -- Infocard IDs for caption and content
rem.mission.missionmessage("popup", 471202) -- Message shown after popup
rem.mission.missionmessage("launch", 471203) -- 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("Rh01_01_Base") -- Target base for THN
rem.mission.thnconfig("newberlin_gen", "arc_rebus1") -- THN location and name
rem.mission.thntime(46) -- THN duration in seconds
rem.mission.showpopup(471200, 471204) -- Infocard IDs for caption and content
rem.mission.missionmessage("popup", 471205) -- Message shown after popup
rem.mission.missionmessage("launch", 471206)
rem.mission.thnsave() -- Save THN configuration
rem.mission.save()
-- Create and configure the first mission
-- rem.mission.arc("StoryArc5")
rem.mission.create("rebus_rheinland2") -- Set mission name
rem.mission.missiontype("pve") -- Set mission type to PVE
rem.mission.trigger("InitState") -- Trigger to setup thnconfig
rem.mission.startbase("Rh05_04_Base") -- Set mission startbase
rem.mission.pve_enemyfaction("rh_p_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(-8877, 0, -24804) -- NPC Spawn Position
rem.mission.thnconfig("vogtland_gen", "arc_rebus3") -- Set THN location and name
rem.mission.thntime(57) -- Set THN duration to 57 seconds
rem.mission.showpopup(471210, 471211) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 471212) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 471213)
rem.mission.thnsave()
--rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter)
--rem.mission.thnconfig("vogtland_gen", "arc_rebus4") -- Set THN location and name
--rem.mission.thntime(20) -- Set THN duration to 20 seconds
--rem.mission.thnsave()
rem.mission.save()
-- Create and configure the first mission
-- rem.mission.arc("StoryArc3")
rem.mission.create("rebus_kusari1") -- Set mission name
rem.mission.missiontype("flyto") -- Set mission type to FlyTo
rem.mission.flyto_targetbase("Ku05_02_Base") -- Target base (mission completes when docking here and confirming popup)
rem.mission.trigger("InitState") -- Trigger to setup thnconfig
rem.mission.startbase("Ku06_01_base") -- Set mission startbase
rem.mission.thnconfig("kyoto_gen", "arc_rebus1") -- Set THN location and name
rem.mission.thntime(61) -- Set THN duration to 59 seconds
rem.mission.showpopup(471100, 471101) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 471102) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 471103)
rem.mission.thnsave()
rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter)
rem.mission.startbase("ku05_02_base") -- Set mission startbase
rem.mission.thnconfig("ainu_gen", "arc_rebus1") -- Set THN location and name
rem.mission.thntime(120)
rem.mission.showpopup(471100, 471104) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 471105) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 471106)
rem.mission.thnsave() -- Save the thn config
-- rem.mission.startbase("ku05_02_base") -- Set mission startbase
-- rem.mission.thnconfig("kyoto_gen", "arc_rebus2") -- Set THN location and name
-- rem.mission.thntime(13) -- Set THN duration to 44 seconds
-- rem.mission.showpopup(471100, 471107) -- Set infocard IDs for caption and content
-- rem.mission.missionmessage("popup", 480000) -- Show Mission Message after Popup
-- rem.mission.thnsave() -- Save the thn config
rem.mission.save()
-- === 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.arc("StoryArc2")
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.arc("StoryArc2")
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.missionmessage("launch", 458763)
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, 458766) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 480000) -- Show Mission Message after Popup
rem.mission.thnsave() -- Save the thn config
rem.mission.save()
-- Create and configure the first mission
rem.mission.arc("StoryArc1")
rem.mission.create("rebus_liberty1") -- Set mission name
rem.mission.missiontype("flyto") -- Set mission type to PVE
rem.mission.trigger("InitState") -- Trigger to setup thnconfig
rem.mission.startbase("Li01_12_base") -- Set mission startbase
rem.mission.thnconfig("buffalo_gen", "arc_rebus1") -- Set THN location and name
rem.mission.thntime(61) -- Set THN duration to 59 seconds
rem.mission.showpopup(459000, 459001) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 459002) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 459003)
rem.mission.thnsave()
rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter)
rem.mission.startbase("Li01_12_Base") -- Set mission startbase
rem.mission.thnconfig("buffalo_gen", "arc_rebus2") -- Set THN location and name
rem.mission.thntime(43) -- Set THN duration to 44 seconds
rem.mission.showpopup(459000, 459004) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 480000) -- Show Mission Message after Popup
rem.mission.thnsave() -- Save the thn config
rem.mission.save()
-- Create and configure the first mission
rem.mission.arc("StoryArc20")
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.missionmessage("popup", 458782) -- Show Mission Message after Popup
rem.mission.missionmessage("launch", 458783)
rem.mission.thnsave() -- Save the thn config
rem.mission.trigger("SpaceEnter") -- Trigger to setup thnconfig (InitState, BaseEnter, SpaceEnter)
rem.mission.startbase("St01_01_base") -- Set mission startbase
rem.mission.showpopup(458780, 458788) -- Set infocard IDs for caption and content
rem.mission.missionmessage("popup", 480000) -- Show Mission Message after Popup
rem.mission.save()