• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Missable events and gifts!

v18 Missable events and gifts! 2025-05-01

This resource pertains to version 18 of Pokémon Essentials.
Pokémon Essentials Version
v18.1 ➖
Im sure this script will work for most essentials versions but i made it in 18.1-2

have you ever wanted to have a holliday give away that fully rewards the players who participate? and i dont mean put something in an update and then remove it and as long as the save file exists they still have it, i mean they can have the reward after the update even if they click new game while the other new players permantly missed their shot!
well this can be done by saving it as data (rather than using switches which delete when u click new game)

here put this script above main!
Ruby:
Expand Collapse Copy
#===============================================================================
# Global EventData System
# Persists across all save files
#By Lemiho19 or InTheLight
#===============================================================================
module GlobalEventSystem
  SAVE_FILE = RTP.getSaveFileName("EventData.rxdata")

  def self.init
    $EventData ||= {}
  end

  def self.save
    begin
      File.open(SAVE_FILE, "wb") { |f| Marshal.dump($EventData, f) }
    rescue
      print "Error: Failed to save EventData."
    end
  end

  def self.load
    if File.exist?(SAVE_FILE)
      begin
        File.open(SAVE_FILE, "rb") { |f| $EventData = Marshal.load(f) }
      rescue
        print "Error: Failed to load EventData."
        $EventData = {}
      end
    else
      $EventData = {}
    end
  end
end

# Load EventData before the title screen
GlobalEventSystem.load
GlobalEventSystem.init

now in an event go Insert>script
Code:
Expand Collapse Copy
if !$EventData["PetililGifted"]
  pbAddPokemon(:PETILIL, 10)
  $EventData["PetililGifted"] = true
  GlobalEventSystem.save
end

set "PetililGifted" to what u want the event to be named (change both spots)
the line "pbAddPokemon(:PETILIL, 10)" can be changed to for instance pbReceiveItem(:MASTERBALL) ect

Now this can be used in a conditional branch (but only if the condition is true if its not yet true then the event doesnt exist and is neither false or true)
Code:
Expand Collapse Copy
$EventData["PetililGifted"]

now on their pc they have permantly done the event "PetililGifted" even if they click new game!


examples of when to use this!!!

so say Christmas ends and you update your game to not have the event anymore so new players missed it, you can now use the event data to reward the people who didnt miss the even and got the saved event data, how you choose to reward them is up to you weather it be replaying the event or just reclaiming the end prize somehow

I want to clarify that this saves even in new games so if you want to use this to make it so people have to do an event 1 time and then every future playthrough they can skip it and just claim the prize this can also be used for that so lets say your game has teleport tiles that need to be "activated" well you can save "teletab1Activated" as an event and then when someone hits new game its almost like hitting new game plus, now they can start out with the teleport without all the work of getting to it!

there shouldnt be any limit to how many events u can have

If this interest you i also edited a script to have wild nicknamed pokemon here: https://eeveeexpo.com/resources/1489/
Credits
Lemiho19, InTheLight
Author
InTheLight
Views
634
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from InTheLight

Back
Top