Game Development Reference
In-Depth Information
the default character, eric, cannot equip the longbow in his current state. i'll cover how to allow him to do so
in the next chapter.
Note
Now, right-click that event and click Edit. What we want to do is make it so the chest is
invisible until the player has taken a look at all five of the trees. To do that, check the Variable
condition on the first page of the event and set it so it says “Tree is 5 or above.” Once that is
ready, you're done!
Check Figure 2-16 to see how the relevant part of the second map looks for me. Besides the five trees and the
road, your map will probably look different.
Figure 2-16. The final second area map, showing the events
Before I close this chapter, here's one final application of variables that will most likely be of great use to you as
you work on your RMVXA game.
Advanced Challenge: Using Variables to Handle an Area
Transition!
Up to now, we have dealt with area transitions that are one square wide. However, what happens if we make an
expansive area, such as a desert, and want to make exits for the player? It could take dozens of events to cover a single
direction. For those of you following this topic using the Lite version of RMVXA, that is unacceptable (as RMVXA Lite
 
 
Search WWH ::




Custom Search