Game Development Reference
In-Depth Information
Creating an Enemy with a Shifting Anti-element Barrier
Some of the most classic RPG battles involve a boss that has the ability to become immune to a certain element. That
is as easy as creating a skill that grants an appropriate state. However, what happens if we want a shifting barrier?
That's where common eventing comes in. Here's what we'll need:
Creating the skill : It will have no other effects besides executing a common event.
A monster to use the skill : We'll want it to begin battle with an anti-element barrier already, as
the shifting skill changes the barrier that the user already has.
Three states that represent the elemental barriers : Taking a look at Noah, we see that he has
relatively easy access to Earth, Thunder, and Water magic, so let's have states for a barrier for
each of those types.
The common event to govern the skill itself
A small troop event for the monster that will use the barrier change skill
I have future plans for the monster we're creating. (They'll be added as an encounter in Chapter 10.) For now,
let's complete this exercise. Check Figure 9-4 , to see our Barrier Change skill.
Figure 9-4. The Barrier Change skill details
Besides a simple message being displayed when someone uses the skill and calling the Barrier Change common
event, the skill does nothing else. Check Figure 9-5 to see the monster that will use the Barrier Change skill.
 
Search WWH ::




Custom Search