LuaMissions.lua
This commit is contained in:
16
EXE/REM/Lua/LuaMissions.lua
Normal file
16
EXE/REM/Lua/LuaMissions.lua
Normal 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
|
||||
Reference in New Issue
Block a user