Game Development Reference
In-Depth Information
To pull this off with eventing, we'll have to set up each treasure chest individually, as well as create the NPC and
the Parallel Process event that triggers when the game is over. I'm going to start with the chest in the upper-left corner.
Let's call that chest the master, as the rewards listed previously will be placed into the event in the same order. As the
chests will be present even while the game is not active, we have to make sure that the player cannot open them.
Each chest will be a two-page event, in which page 1 has a treasure chest graphic and Direction Fix has been toggled.
(This makes it so that the chest does not appear to open slightly if the player interacts with it from certain angles).
If the player tries to interact with the chest, the event will show a text box declaring that it is locked. Page 2 has the
TreasureChestStart switch conditional, meaning that it will not trigger unless the minigame is currently active.
As with page 1, this page will have an Action Button trigger.
@>Set Move Route: This event (Wait)
: : $>Direction Fix OFF
: : $>Turn Left
: : $>Wait: 3 frame(s)
: : $>Turn Right
: : $>Wait: 3 frame(s)
@>Conditional Branch: Variable [0009:TreasureChestSeed] == 1
@>Change Items: [Potion], + 1
@>Text: -, -, Normal, Bottom
: : Got a Potion!
@>
: Branch End
@>Conditional Branch: Variable [0009:TreasureChestSeed] == 2
@>Change Gold: + 1
@>Text: -, -, Normal, Bottom
: : Got a single Gold piece!
@>
: Branch End
@>Conditional Branch: Variable [0009:TreasureChestSeed] == 3
@>Change Items: [Elixir], + 1
@>Text: -, -, Normal, Bottom
: : Got an Elixir!
@>
: Branch End
@>Conditional Branch: Variable [0009:TreasureChestSeed] == 4
@>Change Gold: + 1
@>Text: -, -, Normal, Bottom
: : Got a single Gold piece!
@>
: Branch End
@>Conditional Branch: Variable [0009:TreasureChestSeed] == 5
@>Change Items: [Hi-Potion], + 1
@>Text: -, -, Normal, Bottom
: : Got a Hi-Potion!
@>
: Branch End
@>Conditional Branch: Variable [0009:TreasureChestSeed] == 6
@>Change Gold: + 200
@>Text: -, -, Normal, Bottom
: : Got 200 Gold!
@>
: Branch End
 
Search WWH ::




Custom Search