Thread: Script Help
View Single Post
 
Reply
Posted 2006-07-31, 10:39 AM in reply to Atnas's post starting "... Phylomortis is hard to understand,..."
I think I managed to pull off the side-view one kinda... then I gave up on it.

I'll give it a shot in a bit.

----

Right. As far as I can see it's pretty easy. Just follow the instructions at the top of the page:

- This script allows you to set up rectangular "areas", so that a seperate encounter list can be declared for each area.

- To use this script, add the new variable @enum_encounter_list to Game_Map (open up the script database, and scroll down to GAME_MAP using the menu on the left-hand side. Stick the variable at the end of the script).

- For the second code block, find the reference lines in Scene_Map and replace everything between them with the code in red (scroll down to SCENE_MAP on the left-hand menu, Ctrl + F and find the reference they give -- if $game_temp.message_window_showing -- and then copy and past the bits in red into it after the blue bits finish on the tutorial page).

- Finally, add the new method get_world_map_area_id to Scene_Map (same script, just copy and paste it to the bottom).

However, I haven't the foggiest about this bit:

- To define an area, create an array with four indexes. The first index should be the X tile coordinate of the upper-left corner of the rectangle. The second index should be the Y tile coordinate of the upper-left corner. The third index is the X tile coordinate of the lower-right corner, and the fourth index is the Y tile coordinate of the lower-right corner. Then, the array "rects" should be set up so that all the area rectangles are represented, in the order in which you would like them to be numbered, with the first index of the array being ID 1. The script will put the ID number of the area the hero currently occupies into the variable of your choice (the default is variable 1, if the hero is not in any area, 0 will be returned). To set up the encounter list, use a parallel process event on the map as shown in the image. If you like, you can put the numbers in the script rather than use an event. I just find the event method easier.

Last edited by Lenny; 2006-07-31 at 11:06 AM.
Old
Profile PM WWW Search
Lenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basics
 
 
Lenny