mirror of https://github.com/pret/pokeemerald.git
Updated Adding Time Based Encounters (markdown)
parent
f63a9492ff
commit
7acd1079ed
|
@ -34,7 +34,7 @@ Firstly, we'll need a way to keep track of what time period it is. We can make a
|
||||||
|
|
||||||
Paste that into a file like _src/script.c_.
|
Paste that into a file like _src/script.c_.
|
||||||
|
|
||||||
**RtcCalcLocalTime()** calculates and stores the real time in **gLocalTime** while the remaining conditionals set the variable to a number depending on whether the time is between 6am - 8:59am, 9am - 17:59am, 18am - 20:59am, and the last time period (21:00am - 5:59am) which is night (You can edit the time periods as you wish). We are going to use this variable later.
|
**RtcCalcLocalTime()** calculates and stores the real time in **gLocalTime** while the remaining conditionals set the variable to a number depending on whether the time is between 6am - 8:59am, 9am - 17:59pm (5:59pm), 18:00pm - 20:59pm (6:00pm - 8:59pm), and the last time period 21:00pm - 5:59am (9:00pm - 5:59am) which is night (You can edit the time periods as you wish). We are going to use this variable later.
|
||||||
|
|
||||||
### Prepare your encounter groups.
|
### Prepare your encounter groups.
|
||||||
This can be done by going to PoryMap then clicking "Wild Pokemon" in the second highest bar, and then clicking the "+" button. Say, you're working with route 101, you could have your encounter groups as _gRoute101_Morning_, _gRoute101_Afternoon_, _gRoute101_Evening_, _gRoute101_Night_. Now add all the mons you want and then we can move on to the fun part :).
|
This can be done by going to PoryMap then clicking "Wild Pokemon" in the second highest bar, and then clicking the "+" button. Say, you're working with route 101, you could have your encounter groups as _gRoute101_Morning_, _gRoute101_Afternoon_, _gRoute101_Evening_, _gRoute101_Night_. Now add all the mons you want and then we can move on to the fun part :).
|
||||||
|
|
Loading…
Reference in New Issue