Maps Script Pack
This is a map script pack created for those wanting to learn how to display map(s) in their developments. The current pack will allow you to display 1, 2, or 3 maps via the selected script. You can also choose from one of three map types.
REQUIREMENTS- FPSC v1.17+ since the scripts use "etimerstart/etimergreater". For FPSC v1.16 and below, the scripts will need to change "etimerstart/etimergreater" to "timerstart/timergreater".
--
Installation-
Copy the folders located in the "Files" folder of the archive into your FPS Creator\Files location. You should end up with the following:
files\gamecore\huds\NorthernFox\Maps
files\scriptbank\NorthernFox\Maps
--
Script Information-
There are 3 scripts for each map type, and 3 types (A-C) at this time.
Map_?_K_D01.fpi --> this script uses the face type (A-C) and will display 1 map only.
Map_?_K_D02.fpi --> this script uses the face type (A-C) and will display 2 maps only.
Map_?_K_D03.fpi --> this script uses the face type (A-C) and will display 3 maps only.
To use the desired script:
* Place trigger zone and assign the script to the trigger main AI script. The map(s) are displayed when the player presses the "M" key. Each script is already written and configured for the image name and type already- you just need to make the image(s) the script requires. Currently, the scripts use our examples to show how the script works.
To use the map template:
We have included the map type templates (PSD) so you can make your maps. You will need to use a screenshot(s) of the level you want to use as a map image. Ensure you scale and place your map image on the map face type template and save that file accordingly. For example, if you want to use Map A face and display three maps, then you need to:
1. Get a screenshot of the map image (we use
Gadwin PrintScreen which allows us to select a rectangular area for screenshot).
2. Open the Map A PSD. Notice the "black" area is designated for map images. Open your screenshot, select it, copy and paste into your Map A PSD. Move/scale the image to line up correctly. Save the first map you want as Map_A_01.png. Repeat the screenshot, copy and paste for your second map, scale/move, and save as Map_A_02.png. Do the same again for your third map and save as Map_A_03.png. Copy these files into the "files\gamecore\huds\NorthernFox\Maps" folder.
** NOTE ** If you name the map file something else, be sure to edit the script(s) accordingly to point to the correct filename.
--
How the map works-
When the player wants to view the map, they press the designated key in the script (M) and the map is displayed. When they press M again (for 2/3 map display), they will see the next map accordingly. At the last map when the player presses "M", the map is closed. You may want to label your map file(s) to indicate to the player to "press M to view next map" or "press M to close" when there are no more maps to view.
The included PSD template files have demo maps to show how we made the maps. The current pack scripts uses our demo maps as examples.
The template types are:
* Type A- WW2/Modern Style
** Type B- Scroll Style
*** Type C- SciFi Style
The idea behind this pack is to demonstrate how to display map(s) via key and will hopefully teach a technique we have used quite effectively. For those that understand the FPI scripting, it is easy to expand the scripts to display other maps. The scripts can also be altered to display map(s) via a different key, when player is in zone, etc.
--
Screenshots:
MAP TYPE A
MAP TYPE B
MAP TYPE C
--
Terms of Usage-
All scripts have been tested and work. You may use these for commercial, non-commercial, or private developments. You may alter the scripts to suit your own setup or requirements.
--
Download-
You can download the pack
here.
There's no problem that can't be solved without applying a little scripting.