The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: dricc on February 23, 2011, 04:06:14 PM

Title: FFTA-like world map
Post by: dricc on February 23, 2011, 04:06:14 PM
This script will help you to display a world map like in FFTA .

I mean something like this :
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi79.servimg.com%2Fu%2Ff79%2F11%2F59%2F23%2F52%2Ffftali10.png&hash=f201c2eb23b0a443ef91b08ab16d2d6753548f43) (http://www.servimg.com/image_preview.php?i=127&u=11592352)
The player is simply moving from location to location .
Before someone ask me : Yes , most of this can be made in event . But i think it is easier to setup with my script (and my personal objective was to work on sprites) .

Every location is an event . the directions are setup with labels .
These labels are something like this :
right,3,Red,12,true

that means :
- This location is on the right
- The destination is the event number 3
- the road is in color red (uppercase or lowercase , it doesn't matter)
- The road is open only if the swtch 12 is on (-1 if always open)
- true : this road is available from the destination event .
You can have 4 labels in a location . But you cannot have 2 for the left for exemple (including a "right" road from another location ) .

next to the labels , you can put all that will happen when the hero reach the location .

You can use this :
$game_system.previous_event
to know from which location you are coming .
On the volcano event for exemple you have a condition :
$game_system.previous_event == 5

You can also use :
$game_system.current_event
to know on which location the hero is (check the forest in the demo) .

There is some setup inside the script . you can change the thickness or the transparency of the line for exemple . Or maybe add some colors . You can also choose if the hero is animated or not .

Thanks balbi' for the idea
Thanks to berka and cacao for some piece of code
And thanks to SD-Arius for the icons .

Here is a small demo :
V1.0 english (5 megas)
http://www.mediafire.com/?2abnrs304uwjzjz
V1.0 french (5megas)
http://www.mediafire.com/?1enkxlyghj8jqus

Use only standard 17*13 maps . I am working to make it work on larger ones . But for the moment , it doesn't display well .

If you have any suggestions or questions , you're welcome .
This script is a "1.0" , but i am still working on it .
Title: Re: FFTA-like world map
Post by: Nessiah on February 27, 2011, 02:29:51 PM
nice work :D
Title: Re: FFTA-like world map
Post by: modern algebra on March 03, 2011, 12:14:40 AM
Nice work dricc. Keep it up!