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...")
 
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>
+
|link1 = <html><iframe src="https://itch.io/embed/399676" height="167" width="552" frameborder="0"></iframe></html>
|link2=[http://yanfly.moe/plugins/en/YEP_RepelLureEncounters.js Mirror]
+
|link2 = [http://yanfly.moe/plugins/en/YEP_RepelLureEncounters.js Mirror]
  
 
}}
 
}}
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 ==
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

Revision as of 01:29, 22 June 2019

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.


Masterarbeit Writer

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

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!