• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
XY Trash Cans

Resource XY Trash Cans 1.0.2

RiqueRique

the rique
Member
Joined
Aug 4, 2020
Posts
47
RiqueRique submitted a new resource:

XY Trash Cans - Adds a new way of finding items and Pokémon

In Pokémon XY there are a few Trash Cans in specific maps where you can find daily items or Pokémon, so I decided to make a script for that.

It's very easy to install, just drag the plugin to your project plugin folder and it will be done.

To call the script you just use the Call Script event command and call "pbTrashCan". You need to define your own item table and encounter table though, but it's very easy and there's a small tutorial on how to do that in the script.

The...​

Read more about this resource...
 

MrRetro

Veteran Gamer
Member
Joined
Feb 13, 2022
Posts
27
This is rather useless, as this can all be done within the event itself without requiring any plugins.
 

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
550
This is rather useless, as this can all be done within the event itself without requiring any plugins.
Strongly disagree. While you can do this sort of thing in events, this plugin allows for more flexibility and ease of configuration than doing things like a bunch of Conditional Branches in an event (which can get quite hard to manage).
 

TaxFraug

Novice
Member
Joined
Jan 3, 2024
Posts
12
This is rather useless, as this can all be done within the event itself without requiring any plugins.
most events can, BUT that's why we have plugins. It's for the quality of life improvement.
It's like if someone releases a new power drill but then complaining that we already have screwdrivers and we don't need this.
 

RiqueRique

the rique
Member
Joined
Aug 4, 2020
Posts
47
It's possible to give a player random quantity of items?
Cool idea, I just released a new update that adds support to that! Now you can define the max amount of each item you can get and when running the script the amount you get is a number from 1 to the max amount that you defined! Thanks for the suggestion.
 

RiqueRique

the rique
Member
Joined
Aug 4, 2020
Posts
47
This is rather useless, as this can all be done within the event itself without requiring any plugins.
You're right, it can be done with events, in fact even though the plugin works it still requires you to work with events to limit the usage of the trash cans daily or weekly. The thing is, I made the script because someone on RC discord was having issues to make this with events, so maybe more people were having the same issue + it's easy to work and organize your encounter or item tables and it keeps your events clean.
 

ardicoozer

Cooltrainer
Member
Joined
Sep 29, 2020
Posts
180
Cool idea, I just released a new update that adds support to that! Now you can define the max amount of each item you can get and when running the script the amount you get is a number from 1 to the max amount that you defined! Thanks for the suggestion.
Your welcome
 

ardicoozer

Cooltrainer
Member
Joined
Sep 29, 2020
Posts
180
How to solve it?
Code:
Expand Collapse Copy
=================

[2024-03-17 05:55:37 +0700]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.7]
Script error in event 18 (coords 7,5), map 15 (Home)
Exception: NoMethodError
Message: undefined method `sample' for nil:NilClass

***Full script:
pbTrashCan
pbSetEventTime

Backtrace:
[Pokémon XY Trash Cans] trash can script.rb:173:in `pbTrashCan'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'
[Following Pokemon EX] Refresh.rb:268:in `update'
 

RiqueRique

the rique
Member
Joined
Aug 4, 2020
Posts
47
How to solve it?
Code:
Expand Collapse Copy
=================

[2024-03-17 05:55:37 +0700]
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.7]
Script error in event 18 (coords 7,5), map 15 (Home)
Exception: NoMethodError
Message: undefined method `sample' for nil:NilClass

***Full script:
pbTrashCan
pbSetEventTime

Backtrace:
[Pokémon XY Trash Cans] trash can script.rb:173:in `pbTrashCan'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:1177:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
Interpreter:86:in `update'
[Following Pokemon EX] Refresh.rb:268:in `update'
Looks like the array for the specific map is not properly defined, check if you defined an array of items and pokemon encounters for the map you're trying to call the script in
 
Back
Top