i want to make a level open when a player take over the trunk port in the first level
i have looked at a few other mods but im still not sure how it works
please help
how to use the setmission command?
Moderators: jelco, bert_the_turtle
- trickfred
- level5
- Posts: 1691
- Joined: Sat Jul 24, 2004 5:01 am
- Location: The Great White North, Eh?
- Contact:
...It's not that hard, really.
From game.txt:
Maps 1 and 2 will be visible on the world map, map 0 will not. But, notice the mission file for map 2 is set to 'null' - so only map 1 will actually be available for selection on the world map. Map 2 will be greyed out, and inaccessible.
To make map 2 available for selection (and thus entrance), either call a script that has this line:
Or, add this line to an event in game.txt:
You can use this command to re-visit levels with different scenarios, or to create 'save points' partway through a level.
From game.txt:
Code: Select all
Locations_StartDefinition
# Id Avail mapFile missionFile
# ==================================================================
0 0 map_test.txt mission_test.txt
1 1 map_maint.txt mission_maint_intro.txt
2 1 map_mp1138.txt null
Maps 1 and 2 will be visible on the world map, map 0 will not. But, notice the mission file for map 2 is set to 'null' - so only map 1 will actually be available for selection on the world map. Map 2 will be greyed out, and inaccessible.
To make map 2 available for selection (and thus entrance), either call a script that has this line:
Code: Select all
SetMission mp1138 mission_mp1138_whatever.txt
Or, add this line to an event in game.txt:
Code: Select all
Action SetMission mp1138 mission_mp1138_whatever.txt
You can use this command to re-visit levels with different scenarios, or to create 'save points' partway through a level.
Who is online
Users browsing this forum: No registered users and 17 guests