Expanded Encounter Areas
#1
Expanded Encounter Areas
Version: 1.0



Introduction

This script allows the game developer to designate areas within one or more field maps to have designated areas where additional enemy troops may be encountered by way of random encounters.

It allows for a change of the number of steps required to trigger any such random encounters and is compatible with Big Maps by DerVVulfman.



Script

˂Paste the actual code here, using the CODE tag. This section is optional if you have a demo, but highly recommended for simple to moderately complex scripts.˃

The Script



Instructions

Contained within the script.



FAQ

If compared to other scripts of this nature, it is much less invasive.



Add-On Tool: Colored Encounter Areas

This script allows you to press the [SHIFT] key to highlight any area you define on the map. Helpful so you know where your expanded areas really are. Paste it below Expanded Encounter Areas for it to work.
Colored Encounter Areas



Compatibility

Designed solely for RPGMaker XP.

This system rewrites the 'encounter_list' and 'encounter_steps' methods within Game_Map.



Terms and Conditions

Free for use, even in commercial projects. Only due credit is required.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#2
# Each defined AREA hash must have a unique key. If two or more AREA hashes
# have the same key, the last one will take prescedent.

Perhaps you should word it in a different manner like "the latter will replace the former" because that's the default hash class behavior. If it's actually using hashes, people should know that they SHOULD NOT REPEAT KEYS unless they need to replace such a value on purpose.

By the way, your comments have got several typos. Sad

As a side note, people, this script overwrites methods, alias trashed the original ones and replaced them with a redefinition, I used in my KMap scripts so be careful and place this script above mine. I do think I've aliased them so my changes should not alter the final outcome.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#3
I prefer wording my instructions in my manner. I certainly give more information than some on how a script is to be used.

Quote:By the way, your comments got several typos.
It is: By the way, your comments have several typos. Good grammar... Tongue sticking out

This requires a forced change to these methods. But I had identified such changes, and added quite descriptive and helpful comments as to their functions. And no, I will not receive any 'suggestions' towards any changes to the methods. Any suggestions would be deemed as argumentative and erased.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#4
An unobtrusive
UPDATE
has been made.


The script itself had not been altered.  There is no reason to do so.  However, the topic was altered to include a helpful developer's tool.

This tool is a simple little script allows you to visually 'see' the areas you define within 'Expanded Encounter Areas'.  When installed, you can simply press the [Shift] key on a map and the defined areas will be highlighted in various random colors.

It does nothing else but show the rectangular areas.  Still, it should prove useful.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Dynamic Maps Expanded DerVVulfman 11 13,415 07-06-2021, 04:31 PM
Last Post: Mel
   Diablo II Waypoints - Expanded DerVVulfman 1 3,892 06-18-2020, 04:36 AM
Last Post: DerVVulfman
   RM2K Defined Encounters Areas RPG Advocate 0 4,771 03-03-2008, 05:56 AM
Last Post: RPG Advocate



Users browsing this thread: 1 Guest(s)