Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   RPGMaker (http://zelaron.com/forum/forumdisplay.php?f=188)
-   -   Script Help (http://zelaron.com/forum/showthread.php?t=40038)

phsyco025 2006-07-13 04:00 PM

Script Help
 
UGH i found this script for defining encounter areas on a website and i tried to use it but i have no &^#^%&% clue on how! can some plz look at this and give me a little help with it here is the link its... thx

http://www.phylomortis.com/resource/script/scr035.html

*SUMMONS BLUECUBE*

phsyco025 2006-07-25 01:08 PM

any1 wanna help me out plz?

caj800 2006-07-25 01:11 PM

Which one are you using? RPG Maker 2000, RPG Maker 2003 or XP?

phsyco025 2006-07-25 01:12 PM

im useing RMXP all i need to no is where to put in the script

caj800 2006-07-25 01:13 PM

Ah, sorry. really. I don't use RPG Maker XP. 2003 is better in my opinion. I'll have a look but i'm not certain i'll understand it.

phsyco025 2006-07-25 01:14 PM

kk thx

phsyco025 2006-07-26 03:32 PM

so have u done it yet?

phsyco025 2006-07-29 07:28 PM

so can any1 else help me?

Atnas 2006-07-31 10:24 AM

... Phylomortis is hard to understand, I never got a single one of those scripts working.

Lenny 2006-07-31 10:39 AM

I think I managed to pull off the side-view one kinda... then I gave up on it. :p

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.

Atnas 2006-07-31 01:07 PM

array... Oh! that's a set of numbers used in ruby, such as

[1,2,3,4]

Basically, all you have to do is put the four corners of the box there...kinda...

And you use events to tell the script where to put those boxes(rects? who the hell calls them rects?!?! damn morty...)

I still don't have a lick of an idea...

phsyco025 2006-07-31 01:41 PM

Quote:

Originally Posted by Lenny
I think I managed to pull off the side-view one kinda... then I gave up on it. :p

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.

ok i got some of wut the instructions were but could u plz put it into steps for me with more detail coz i have no clue wut a methode is or how to make one and stuff like that

Atnas 2006-08-01 09:48 AM

A method is a way of doing something, and in programming, it is what you tell the computer to do when something happens... I think... I'm thinking he's just using the word as an english term, not anything reffering at all to ruby.
So, if someone would like to do this, go ahead, it would be helpful to many people... I admit I have no clue what he's talking about for the most part, I probably have to refresh my memory on the syntax of ruby...
*goes to ruby help file*

phsyco025 2006-08-08 03:56 PM

so could somebody here plz do it and show me how coz im still confused


All times are GMT -6. The time now is 07:18 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.