• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Event wild Pokémon on certain day

  • 66
    Posts
    7
    Years
    • Seen May 2, 2020
    Alright so I want to make an event (not an RPG Maker XP event, I mean an actual Pokémon event) where if its a certain day, lets say on Halloween, then a wild Haunter would appear in any map as a wild Pokémon with a 1/4000 chance. But this would only happen on 31st October and not any other day. Also I want the Haunter to be a 100% chance shiny and form 1.
     
    Make a new script above "Main" and past this code:
    Code:
    def pbTrickorTreat
      m = Time.new.month
      d = Time.new.day
      if m == 10 && d == 31 #Checks if it is October 31th
        $halloween = true
      else
        $halloween = false
      end
    end

    On the map with the Haunter create an event in Parallel Process running the script: pbTrickorTreat

    This has the game check if it is Halloween as soon as you load the map.
    Now go to Pokemon_Forms and make a section for Haunter, it should look something like this.
    Code:
    MultipleForms.register(:HAUNTER,{
    "getFormOnCreation"=>proc{|pokemon|
       if $halloween == true
         pokemon.makeShiny
         next 1
       else
         next 0
       end
    }
    })

    I am not sure how to just make one species shiny =/
    also I have not fully tested this so
    if it throws up an error let me know.
    I hope this helps!
     
    Last edited:
    Would
    Code:
    Events.onWildPokemonCreate+=proc {|sender,e|
       pokemon=e[0]
       if $game_switches[Halloween]
         pokemon.makeShiny
       end
    perhaps help although I'm not sure how you'd incorporate it into your script, there is something in settings that sets all wild Pokemon to be shiny, perhaps you can change that around to be solely for your switch.
     
    Last edited:
    Thank you Trick Tester!
    I have updated my post to include Haunter being shiny.
     
    Thank you Trick Tester!
    I have updated my post to include Haunter being shiny.

    No worries, I'm super new to coding and I took it just from the basic shiny script on essentials already so I didn't really do much ^^
     
    I took the more difficult path and opened the script editor and used the Ctrl + Shift + F to search for shiny, and after finding a few shiny bit that didn't change just 1 pokemon shiny I said screw it, someone else can do this part XD
     
    Thanks guys, I'm testing it now.
     
    Back
    Top