16 lines
923 B
Lua
16 lines
923 B
Lua
-- 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 |