Updated Adding Time Based Encounters (markdown)

Iceman8911 2023-02-28 16:44:54 +01:00
parent 707b492638
commit 313c79371d
1 changed files with 2 additions and 1 deletions

@ -1,6 +1,7 @@
# Adding Time Based Encounters # Adding Time Based Encounters
In this tutorial, I'll be focusing on 4 encounter periods i.e Morning, Afternoon, Evening and Night. In this tutorial, I'll be focusing on 4 encounter periods i.e Morning, Afternoon, Evening and Night.
You can do literally as much as you wish once you get the basics down. You can do literally as much as you wish once you get the basics down, besides you can use this for other special encounter conditions such as weather.
Note that this isn't my idea, its based off the work of [Martyk](https://www.pokecommunity.com/showthread.php?p=10450677#post10450677) and [AmbientDinosaur](https://www.pokecommunity.com/showpost.php?p=10315616&postcount=236).
*** ***
Firstly, we'll need a way to keep track of what time period it is. We can make a function called **SetTimeBasedEncounters()** and use a variable (you can use any unused variable in _include/constants/vars.h_, I've renamed one of them to **VAR_TIME_BASED_ENCOUNTER**) for that: Firstly, we'll need a way to keep track of what time period it is. We can make a function called **SetTimeBasedEncounters()** and use a variable (you can use any unused variable in _include/constants/vars.h_, I've renamed one of them to **VAR_TIME_BASED_ENCOUNTER**) for that: