Difference between revisions of "Repel & Lure Encounters (YEP)"

From Yanfly.moe Wiki
Jump to navigation Jump to search
(Created page with "{{MvPlugin |preview=<youtube>https://www.youtube.com/watch?v=xMyhTTbob9c</youtube> |link1=<html><iframe src="https://itch.io/embed/399676" height="167" width="552" frameborder...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{MvPlugin
 
{{MvPlugin
|preview=<youtube>https://www.youtube.com/watch?v=xMyhTTbob9c</youtube>
+
|preview = <youtube>https://www.youtube.com/watch?v=xMyhTTbob9c</youtube>
|link1=<html><iframe src="https://itch.io/embed/399676" height="167" width="552" frameborder="0"></iframe></html>
+
|link2 = <html><iframe src="https://itch.io/embed/508203" height="167" width="552" frameborder="0"></iframe></html>
|link2=[http://yanfly.moe/plugins/en/YEP_RepelLureEncounters.js Mirror]
+
|link3 = <html><iframe src="https://itch.io/embed/398158" height="167" width="552" frameborder="0"></iframe></html>
  
 
}}
 
}}
Line 9: Line 9:
 
{{Yanfly Engine Plugins}}
 
{{Yanfly Engine Plugins}}
  
== Help File ==
+
== Introduction ==
  
 
  <nowiki>
 
  <nowiki>
============================================================================
 
Introduction
 
============================================================================
 
 
 
In RPG Maker MV, you can either choose to enable encounters or disable them
 
In RPG Maker MV, you can either choose to enable encounters or disable them
 
completely. However, making a system that repels encounters for a certain
 
completely. However, making a system that repels encounters for a certain
Line 21: Line 17:
 
is a whole different matter. This plugin allows you to create ways to repel
 
is a whole different matter. This plugin allows you to create ways to repel
 
encounters, generate lures, and the rate at which lures are done.
 
encounters, generate lures, and the rate at which lures are done.
 +
</nowiki>
  
============================================================================
+
== Instructions ==
Instructions
 
============================================================================
 
  
 +
<nowiki>
 
In the plugin parameters, the Repel Variables and Lure Variables parameters
 
In the plugin parameters, the Repel Variables and Lure Variables parameters
 
are tied to. When the variables for those are adjusted in game, then the
 
are tied to. When the variables for those are adjusted in game, then the
Line 55: Line 51:
 
Now, for 100 steps, the player will encounter battles more often than if the
 
Now, for 100 steps, the player will encounter battles more often than if the
 
lure wasn't present.
 
lure wasn't present.
 +
</nowiki>
  
============================================================================
+
{{Plugin Commands MV}}
Plugin Commands
 
============================================================================
 
  
 +
<nowiki>
 
For those who would like to adjust the lure rates and lure flat values
 
For those who would like to adjust the lure rates and lure flat values
 
mid-game, you can use the following plugin commands.
 
mid-game, you can use the following plugin commands.
Line 72: Line 68:
 
   - Sets the flat value for encounters to x when the Lure Variable is active.
 
   - Sets the flat value for encounters to x when the Lure Variable is active.
 
   You can use JavaScript code for x if you are familiar with JavaScript.
 
   You can use JavaScript code for x if you are familiar with JavaScript.
 +
</nowiki>
  
============================================================================
+
== Changelog ==
Changelog
 
============================================================================
 
  
 +
<nowiki>
 
Version 1.02:
 
Version 1.02:
 
- Bypass the isDevToolsOpen() error when bad code is inserted into a script
 
- Bypass the isDevToolsOpen() error when bad code is inserted into a script
Line 88: Line 84:
 
- Finished Plugin!
 
- Finished Plugin!
 
</nowiki>
 
</nowiki>
 +
 +
<!-- This is a comment, remove the arrows surrounding this for the categories you want to show -->
 +
<!-- [[Category: RPG Maker MV Core Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Battle Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Item Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Skill Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Equip Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Status Menu Plugins]] -->
 +
[[Category: RPG Maker MV Gameplay Plugins]]
 +
<!-- [[Category: RPG Maker MV Movement Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Quest Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Options Plugins]] -->
 +
[[Category: RPG Maker MV Eventing Plugins]]
 +
<!-- [[Category: RPG Maker MV Utility Plugins]] -->
 +
[[Category: RPG Maker MV Mechanical Plugins]]
 +
<!-- [[Category: RPG Maker MV Visual Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Menu Plugins]] -->
 +
<!-- [[Category: RPG Maker MV Message Plugins]] -->
 +
[[Category: RPG Maker MV Quality of Life Plugins]]
 +
<!-- [[Category: RPG Maker MV Plugin Tips & Tricks]] -->
 +
<!-- [[Category: Action Sequences (MV)]] -->
 +
<!-- [[Category: Comment Tags (MV)]] -->
 +
<!-- [[Category: Main Menu Manager Integration (MV)]] -->
 +
<!-- [[Category: Notetags (MV)]] -->
 +
<!-- [[Category: Options Core Integration (MV)]] -->
 +
<!-- [[Category: Plugin Commands (MV)]] -->
 +
<!-- [[Category: Script Calls (MV)]] -->
 +
<!-- [[Category: Text Codes (MV)]] -->

Latest revision as of 10:55, 13 June 2020

<

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.



Download

System

This is a plugin created for RPG Maker MV.

For help on how to install plugins, click here.

For help on how to update plugins, click here.

Got errors with your RPG Maker MV plugin? Click here.

Yanfly Engine Plugins

This plugin is a part of the Yanfly Engine Plugins library.


Introduction

In RPG Maker MV, you can either choose to enable encounters or disable them
completely. However, making a system that repels encounters for a certain
amount of steps or increase the encounter rate for a certain amount of steps
is a whole different matter. This plugin allows you to create ways to repel
encounters, generate lures, and the rate at which lures are done.

Instructions

In the plugin parameters, the Repel Variables and Lure Variables parameters
are tied to. When the variables for those are adjusted in game, then the
effects for those will also be adjusted. When the variable values are above
a zero value, they will be in effect and decrease by 1 per step.

---

For example, to make a Repel effect work from an item:

  1. Set the Repel Variable in the plugin parameter to variable 50.
  2. Create an item in the database.
  3. Have the item run a common event.
  4. Have this common event adjust variable 50 to a value of 100.

Now, the player will be able to walk 100 steps without encountering a battle
unless it is an evented battle.

---

To make a Lure effect work from an item:

  1. Set the Lure Variable in the plugin parameter to variable 60.
  2. Create an item in the database.
  3. Have the item run a common event.
  4. Have this common event adjust variable 60 to a value of 100.
  5. Optionally, use plugin commands to adjust the rate of the lure.

Now, for 100 steps, the player will encounter battles more often than if the
lure wasn't present.

Plugin Commands

PluginCommandsMV.png

Plugin Commands are event commands that are used to call upon functions added by a plugin that aren't inherently a part of RPG Maker MV.

Here is a list of Plugin Command(s) that you may use:

For those who would like to adjust the lure rates and lure flat values
mid-game, you can use the following plugin commands.

Plugin Commands:

  SetLureRate x
  - Sets the lure rate for encounters to x when the Lure Variable is active.
  You can use JavaScript code for x if you are familiar with JavaScript.

  SetLureFlat x
  - Sets the flat value for encounters to x when the Lure Variable is active.
  You can use JavaScript code for x if you are familiar with JavaScript.

Changelog

Version 1.02:
- Bypass the isDevToolsOpen() error when bad code is inserted into a script
call or custom Lunatic Mode code segment due to updating to MV 1.6.1.

Version 1.01:
- Updated for RPG Maker MV version 1.5.0.
- Added new parameters: 'Repel Variables List' and 'Lure Variables List'

Version 1.00:
- Finished Plugin!