[Plugin] Permanent Repel - Toggle Wild Encounters
Permanent Repel adds a Key Item (the Repel Charm) that allows players to completely disable random wild encounters at will. Perfect for late-game exploration or players who just want to focus on the story!
Key Features
- Toggle on/off: Use the item from your bag or register it for quick access.
- Visual Feedback: Messages confirm when the charm is activated or deactivated.
- Zero Consumption: It's a key item, not a consumable. Infinite use!
- Save Compatible: Remembers the state even after saving and reloading.
Configuration
1. Define the Item (PBS)
You need to add the item to your [FILE]PBS/items.txt[/FILE] so the game recognizes it.
Code:
[REPELCHARM]
Name = Repel Charm
NamePlural = Repel Charms
Pocket = KeyItems
Price = 0
Description = A mysterious charm that keeps wild Pokémon away indefinitely. Use it to toggle this effect.
CouldBeHeld = false
Note: You can name the item whatever you want (e.g., "Silver Wing"), just make sure the internal ID matches the script (:REPELCHARM).
2. Give it to the Player
Simply give the item via an event:
Ruby:
pbReceiveItem(:REPELCHARM)
Installation
- Download the plugin.
- Extract the folder Permanent Repel into your project's Plugins directory.
- Add the item definition to your PBS/items.txt.
- Start your game and compile the new data.
- Credits
- Nononever