16
Tutorial Collection / (V5B) Creating Map Creator Cards for your maps!
« on: January 24, 2017, 06:29:25 PM »
Map creator cards are little boxes that pop up for players at the start of each map to let them know who created the map, what song is playing and where the song is from. They can be toggled off by player clients. They can also be used to define what boss music/victory music will be played in the map, without the need of including a complicated script for every map. Core MM8BDM will handle them with a global script but mappers can easily include their own by defining them in an OPEN script! Here's what they look like in game:
To define a map card, paste the following code into an OPEN script in your map. You can use a new OPEN script or one you happen to use (but it should not be looping).
Replace the second argument (the text in CAPS) to customize the card. Note that you can use color codes here for non-graphic entries if you like:
mm8bdm_map_creator - The name of the creator of the map.
mm8bdm_map_icon - 32 x 32 icon. This can be any core graphic or new graphic in your wad/pk3 file. For some examples look in the mm8bdm pk3 under patches/faces. They don't have to be robot master mugshots, be creative! Default is MAPCARDI.
mm8bdm_map_background - 264 x 92 background image of the card. You can make your own or use one included in the mm8bdm pk3. Click here for an image gallery of all title cards and their graphic codes. Default is "MAPCD10".
mm8bdm_map_musicname - The name of the default song of your map. Note that it is not actually set here, this is just for player convenience without having to look up the name.
mm8bdm_map_musiccomposer - The composer of the default song of your map.
mm8bdm_map_musicgame - The song/movie/whatever your default map music is from.
The following are unrelated to the map card and can be used on their own to define music for your map:
mm8bdm_map_bossmusic - The music code for the Boss music you wish to play when the game is almost over.
mm8bdm_map_victorymusic - The music code for the Victory theme you wish to play when the game is over.
mm8bdm_map_intensemusic - The music code for an "intense" scenario. Currently used when both teams are tied in TLMS and only 2 players remain.
Now let's look at an example of a map card that works in V5B:
Produces:
(click to show/hide)
To define a map card, paste the following code into an OPEN script in your map. You can use a new OPEN script or one you happen to use (but it should not be looping).
Code: [Select]
SetCvarString("mm8bdm_map_creator", "NAME");
SetCvarString("mm8bdm_map_icon", "ICON");
SetCvarString("mm8bdm_map_background", "BACKGROUND");
SetCvarString("mm8bdm_map_musicname", "MUSIC NAME");
SetCvarString("mm8bdm_map_musiccomposer", "MUSIC COMPOSER");
SetCvarString("mm8bdm_map_musicgame", "MUSIC GAME");
SetCvarString("mm8bdm_map_bossmusic", "BOSS THEME");
SetCvarString("mm8bdm_map_victorymusic", "VICTORY THEME");
SetCvarString("mm8bdm_map_intensemusic", "INTENSE THEME");
Replace the second argument (the text in CAPS) to customize the card. Note that you can use color codes here for non-graphic entries if you like:
mm8bdm_map_creator - The name of the creator of the map.
mm8bdm_map_icon - 32 x 32 icon. This can be any core graphic or new graphic in your wad/pk3 file. For some examples look in the mm8bdm pk3 under patches/faces. They don't have to be robot master mugshots, be creative! Default is MAPCARDI.
mm8bdm_map_background - 264 x 92 background image of the card. You can make your own or use one included in the mm8bdm pk3. Click here for an image gallery of all title cards and their graphic codes. Default is "MAPCD10".
mm8bdm_map_musicname - The name of the default song of your map. Note that it is not actually set here, this is just for player convenience without having to look up the name.
mm8bdm_map_musiccomposer - The composer of the default song of your map.
mm8bdm_map_musicgame - The song/movie/whatever your default map music is from.
The following are unrelated to the map card and can be used on their own to define music for your map:
mm8bdm_map_bossmusic - The music code for the Boss music you wish to play when the game is almost over.
mm8bdm_map_victorymusic - The music code for the Victory theme you wish to play when the game is over.
mm8bdm_map_intensemusic - The music code for an "intense" scenario. Currently used when both teams are tied in TLMS and only 2 players remain.
Now let's look at an example of a map card that works in V5B:
(click to show/hide)
Produces: