From 313121ea5e415424076487ffaa5fc92e73cb4100 Mon Sep 17 00:00:00 2001
From: D4rkl1ght3r <86805404+D4rkl1ght3r@users.noreply.github.com>
Date: Fri, 13 Jun 2025 19:01:54 +0200
Subject: [PATCH] Update LuaMissions & Infocards
---
EXE/REM/Lua/Infocards.lua | 66 ++++++++++++++++-
EXE/REM/Lua/LuaMissions.lua | 144 +++++++++++++++++++++++++++++-------
2 files changed, 182 insertions(+), 28 deletions(-)
diff --git a/EXE/REM/Lua/Infocards.lua b/EXE/REM/Lua/Infocards.lua
index 9bd91553..64ddb44d 100644
--- a/EXE/REM/Lua/Infocards.lua
+++ b/EXE/REM/Lua/Infocards.lua
@@ -48,6 +48,13 @@ rem.AddInfoCard(458785, "Loot the Relic")
rem.AddInfoCard(458786, "Bring Sinclair the Chronos Relic to Toledo")
rem.AddInfoCard(458789, [[I discover the asteroid field in the sector D3 in Omicron Minor and found a non-natural big Nomad asteroid. Within this ancient ruin, believed to be remnants of the Daam K'vosh - I uncovered the hidden Chronos Relic.Doctor Sinclair investigates this powerful item to understand its usage. For now, I did my job.]])
+-- Story Arc - Trade Mission (Planet Manhattan - Li01_01_Base)
+rem.AddInfoCard(458790, "Story Arc - Water Delivery")
+rem.AddInfoCard(458791, [[California Minor requires an urgent supply of 200 water units to alleviate the drought that has been plaguing the planet for several rotations. California Minor has issued an appeal to neighboring planets and galactic organizations to provide assistance in the form of water shipments or innovative solutions to address the crisis. ]])
+rem.AddInfoCard(458792, "Buy 200 Water Units")
+rem.AddInfoCard(458793, "Transport Water to California Minor")
+
+
-- Infocards Bases
rem.AddInfoCard(262040, "Safe Dock") -- Bw11_01_Base
@@ -61,6 +68,62 @@ rem.AddInfoCard(480001, [[AlpacaThe Alpaca's cargo hold is a marvel of modern engineering, with multiple compartments and storage options that allow for efficient and secure transportation of goods. The ship's advanced life support systems and comfortable crew quarters also make it an attractive option for longer hauls and more extended voyages.]])
rem.AddInfoCard(480003, [[ 0/016001000/069CM]])
+-- Banshee
+rem.AddInfoCard(480004, "Banshee MKII") -- rh_fighter_mk2
+rem.AddInfoCard(480005, [[]])
+rem.AddInfoCard(480006, [[]])
+rem.AddInfoCard(480007, [[]])
+
+-- Blood Hound MK2
+rem.AddInfoCard(480008, "Bloodhound MKII") -- pi_fighter_mk2
+rem.AddInfoCard(480009, [[]])
+rem.AddInfoCard(480010, [[]])
+rem.AddInfoCard(480011, [[]])
+
+-- Cavalier MK2
+rem.AddInfoCard(480012, "Cavalier MKII") -- br_fighter_mk2
+rem.AddInfoCard(480013, [[StatsGun/Turret Mounts: 4/0Armor: 4600Cargo Space: 50Max. Batteries/Nanobots: 32/32Optimal Weapon Class: 5Maximum Weapon Class: 7Additional Equipment: M, CM, CD]])
+rem.AddInfoCard(480014, [[B-224-F Series "Cavalier" MKII Bretonia Light FighterExpertly fast and agile, this fighter design is based on the “Bee-One,” the class that cleared the Bretonian frontier and set the stage for the colonization of Sirius. Though patterned after this timeless classic, the Cavalier MKII has many significant improvements and modern attributes that make it a true-blue asset.]])
+rem.AddInfoCard(480015, [[4/046005032/3257M, CM, CD]])
+
+-- Dagger MK2
+rem.AddInfoCard(480016, "Dagger MKII") -- bw_fighter_mk2
+rem.AddInfoCard(480017, [[StatsGun/Turret Mounts: 4/1Armor: 4800Cargo Space: 50Max. Batteries/Nanobots: 36/36Optimal Weapon Class: 5Maximum Weapon Class: 7Additional Equipment: M, CM, CD]])
+rem.AddInfoCard(480018, [[Series X "Dagger" MKII Border Worlds Light FighterIt may be classified as a light fighter, but there is nothing light about this ship. With its expanded power capacity and armor rating the Dagger MKII has all of the muscle required to survive in the harsh frontier of the Border Worlds, while still being moderately priced. An excellent choice for those craving adventure.]])
+rem.AddInfoCard(480019, [[4/148005036/3657M, CM, CD]])
+
+-- Drake MKII
+rem.AddInfoCard(480020, "Drake MKII") -- ku_fighter_mk2
+rem.AddInfoCard(480021, [[StatsGun/Turret Mounts: 4/0Armor: 4500Cargo Space: 50Max. Batteries/Nanobots: 32/32Optimal Weapon Class: 5Maximum Weapon Class: 7Additional Equipment: M, CM, CD]])
+rem.AddInfoCard(480022, [[J7P-7Q "Drake" MKII Kusari Light FighterIn an environment in which the smallest mistake can cost lives, this fighter takes maximum advantage of years of Kusari research and technology all distilled down and compressed into one deceptively small package. That, along with its recently modified power systems, makes the Drake MKII a superior value in its class.]])
+rem.AddInfoCard(480023, [[4/045005032/3257M, CM, CD]])
+
+-- Hawk MKII
+rem.AddInfoCard(480024, "Hawk MKII") -- ku_fighter_mk2
+rem.AddInfoCard(480025, [[]])
+rem.AddInfoCard(480026, [[]])
+rem.AddInfoCard(480027, [[]])
+
+-- Legionare MK2
+rem.AddInfoCard(480028, "Legionare MKII") -- pi_fighter_mk2
+rem.AddInfoCard(480029, [[]])
+rem.AddInfoCard(480030, [[]])
+rem.AddInfoCard(480031, [[]])
+
+--Patriot MK2
+rem.AddInfoCard(480032, "Patriot MKII") -- pi_fighter_mk2
+rem.AddInfoCard(480033, [[]])
+rem.AddInfoCard(480034, [[]])
+rem.AddInfoCard(480035, [[]])
+
+-- Piranha MK2
+rem.AddInfoCard(480036, "Piranha MKII") -- bh_fighter_mk2
+rem.AddInfoCard(480037, [[]])
+rem.AddInfoCard(480038, [[]])
+rem.AddInfoCard(480039, [[]])
+
+-- rem.AddInfoCard(480039, [[]])
+
-- Orca
rem.AddInfoCard(526309, [[ Stats Gun/Turret Mounts: 0/0Armor: 125000Cargo Space: 500Max Batteries/NanoBots: 0/0Optimal Weapon Class: 0Max. Weapon Class: 0Additional Equipment: CM]])
rem.AddInfoCard(221771, [[OrcaThis ship is a testament to the ingenuity of its owners, who have optimized its design for efficiency and reliability.
@@ -71,7 +134,8 @@ rem.AddInfoCard(221776, [[ Stats Gun/Turret Mounts: 2/1Armor: 8600Cargo Space: 350Max Batteries/NanoBots: 42/42Optimal Weapon Class: 0Max. Weapon Class: 0Additional Equipment: -]])
rem.AddInfoCard(524296, [[ 2/1860035042/4289CM]])
--- Items
+
+-- Infocards Items
-- Jack O'Latern
rem.AddInfoCard(50021, "Jack O'Latern Event")
diff --git a/EXE/REM/Lua/LuaMissions.lua b/EXE/REM/Lua/LuaMissions.lua
index 341ccd54..8f4ee3f4 100644
--- a/EXE/REM/Lua/LuaMissions.lua
+++ b/EXE/REM/Lua/LuaMissions.lua
@@ -1,32 +1,122 @@
-- LuaMissions.lua
--- Script to create and configure missions using the rem.mission feature
+-- 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(200) -- 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("lismallstation_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("DoubleMission") -- Set mission name
-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_juni") -- Set THN location and name
-rem.mission.thntime(58) -- 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.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(12) -- 4 enemies per wave
+rem.mission.pve_wavecount(1) -- 2 waves
+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("lismallstation_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(12) -- 4 enemies per wave
+rem.mission.pve_wavecount(1) -- 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("lismallstation_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.startbase("Li01_09_Base") -- Set mission startbase
-rem.mission.thnconfig("lismallstation_gen", "arc_juni") -- Set THN location and name
-rem.mission.thntime(35) -- 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 mission
-rem.mission.create("Blubberbernd") -- Set mission name
-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_juni") -- Set THN location and name
-rem.mission.thntime(58) -- Set THN duration to x seconds
-rem.mission.showpopup(458770, 458771) -- Set infocard IDs for caption and content
-rem.mission.thnsave() -- Save the thn config
-rem.mission.save() -- Finalize and save mission to the list
+rem.mission.save()
\ No newline at end of file