LuaMissions.lua

This commit is contained in:
Nekura
2025-06-08 23:32:27 +02:00
parent 7504fdf41e
commit 9b3e230bbb
3 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
-- LuaMissions.lua
-- Script to create and configure missions using the rem.mission feature
-- Create and configure the first mission
rem.mission.create("TestMission") -- Set mission name
rem.mission.thnconfig("manhattan_gen", "arc_juni") -- Set THN location and name
rem.mission.thntime(58) -- Set THN duration to 58 seconds
rem.mission.showpopup(458759, 458760) -- Set infocard IDs for caption and content
rem.mission.save() -- Finalize and save mission to the list
-- Example of an incomplete mission (will trigger error in save)
rem.mission.create("") -- Set empty mission name (invalid)
rem.mission.thnconfig("manhattan_gen", "arc_juni") -- Set THN location and name
rem.mission.thntime(30) -- Set THN duration
rem.mission.showpopup(458763, 458764) -- Set infocard IDs
rem.mission.save() -- Will fail due to empty name