• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

How to make an event that only appears on a certain day

  • 36
    Posts
    8
    Years
    • Seen Apr 4, 2018
    On the wiki it said I could do this but didn't tell me how and I couldn't find out how from anywhere so I will ask here:
    How do I make an event that only appears on a certain day of the week?
     
    It is a little odd, and took me a while to figure it out.
    So first, you must convert the weekday(s) into a number. Sunday is 0, Monday is 1, Tuesday is 2, etc, Saturday is 6, yeah.
    Next, we create a conditional switch and put this in it as a script: pbIsWeekday((variable number),(a comma separated list of weekday numbers)). So, an NPC that appears on Friday only and does not store the day would be pbIsWeekday(-1,5), while an event that only takes place on Mondays and Wednesdays and stores the day in variable 1 would be pbIsWeekday(1,1,3). But if you want an event that appears everyday but Mondays and Wednesdays, we would invert it, so !pbIsWeekday(1,1,3).
    If you want an in-game example, open Map id 29, the Natural Park Entrance, and look at the guard.

    Wiki on Timed Events and setting them up.
     
    That works great. Thanks.

    I have something that I can't figure out how to do: I want this event pokemon to appear Tueday night at 8pm. I want the event to disappear for a week if it is defeated, caught or the battle ends in a draw and I want it to stay if you lose to it or run. I want it to disappear at midnight that night.

    Figured the rest out on my own.
     
    Last edited by a moderator:
    Back
    Top