■ Index
Terrain tags and tilesets, 86–87 hidden passages, 187–189
Time, enemies hidden treasure
Action Patterns, 47 chests, 176–177
battle events, 49 notes creation, 182–183
Change Battleback, 48 note shop, 178–179, 181
Dragon Quest, 47 NPC, 177
Troops tab, 47–48 RMVXA, 175–176
Treasure chest game secret passage events, 190
Action Button trigger, 139 sequence breaking, 190
intermission, 144 shop, 173
NPC, 142–143
room, 137 W , X, Y, Z
seven-number lists, 140
Treasure hunting World map
arena, 185–186 area transfers, 85
Compass, 174–175, 182 NPC, 86
hidden location, 183–184, 186 self-switch, 86
307
Beginning RPG Maker
VX Ace
Darrin Perez
Beginning RPG Maker VX Ace
Copyright © 2014 by Darrin Perez
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material
is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting,
reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval,
electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material
supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the
purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the
Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from
Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are
liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4842-0785-7
ISBN-13 (electronic): 978-1-4842-0784-0
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion
and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified
as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither
the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may
be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Managing Director: Welmoed Spahr
Lead Editor: Ben Renow-Clarke
Technical Reviewer: Michael Lin
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Louise Corrigan,
Jim DeWolf, Jonathan Gennick, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie,
Jeff Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing,
Matt Wade, Steve Weiss
Coordinating Editor: Christine Ricketts
Copy Editor: Michael Laraque
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor,
New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit
www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science +
Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail [email protected], or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook
Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this text is available to readers at
www.apress.com. For detailed information about how to locate your book’s source code, go to
www.apress.com/source-code/.
This book is dedicated to the important people in my life; my family and my friends.
You are the reason why I press on.
Contents
About the Author�������������������������������������������������������������������������������������������������������������� xvii
About the Technical Reviewer������������������������������������������������������������������������������������������� xix
Acknowledgments������������������������������������������������������������������������������������������������������������� xxi
Introduction��������������������������������������������������������������������������������������������������������������������� xxiii
■■Part I: Creating a Solid Foundation��������������������������������������������������������������� 1
■■Chapter 1: Starting Out with RPG Maker VX Ace���������������������������������������������������������������3
Where Can I Get RMVXA?��������������������������������������������������������������������������������������������������������������3
What Restrictions Does RMVXA Lite Have?����������������������������������������������������������������������������������������������������������� 3
So, I Downloaded a Copy of RMVXA/RMVXA Lite. What Next?������������������������������������������������������������������������������� 4
I Got RMVXA Lite!��������������������������������������������������������������������������������������������������������������������������������������������������� 4
I Got RMVXA!���������������������������������������������������������������������������������������������������������������������������������������������������������� 4
So, I’m Done.���������������������������������������������������������������������������������������������������������������������������������������������������������� 4
Story����������������������������������������������������������������������������������������������������������������������������������������������4
Game Play�������������������������������������������������������������������������������������������������������������������������������������6
Summary�������������������������������������������������������������������������������������������������������������������������������������11
■■Chapter 2: Switches and Variables����������������������������������������������������������������������������������13
Switches? Variables? Pizza?�������������������������������������������������������������������������������������������������������13
Switches and Variables Do the Same Thing, Then?��������������������������������������������������������������������������������������������� 13
Ready?����������������������������������������������������������������������������������������������������������������������������������������������������������������� 19
Creating the Events��������������������������������������������������������������������������������������������������������������������������������������������� 21
Creating Your Second Map����������������������������������������������������������������������������������������������������������25
Why Is the Map Empty?��������������������������������������������������������������������������������������������������������������������������������������� 27
vii
■ Contents
Cool! Now, About Those Variables . . .�����������������������������������������������������������������������������������������29
What’s the Point?������������������������������������������������������������������������������������������������������������������������������������������������� 32
Advanced Challenge: Using Variables to Handle an Area Transition!�������������������������������������������33
Let’s Crunch Those Map Boundaries, Shall We?�������������������������������������������������������������������������������������������������� 35
But You Don’t Have Anything Inside the Branches!���������������������������������������������������������������������35
Summary�������������������������������������������������������������������������������������������������������������������������������������36
■■Chapter 3: Of Friends and Foes���������������������������������������������������������������������������������������37
Time for Enemies!�����������������������������������������������������������������������������������������������������������������������46
Playing with the Database�����������������������������������������������������������������������������������������������������������49
I Want My Monster to Do More Than Just Attack with a Weapon!����������������������������������������������������������������������� 51
An Explanation of Ratings������������������������������������������������������������������������������������������������������������������������������������ 52
Regions���������������������������������������������������������������������������������������������������������������������������������������56
Damage Formulas�����������������������������������������������������������������������������������������������������������������������58
Parameter Abbreviations������������������������������������������������������������������������������������������������������������������������������������� 58
Back to Damage Formulas?�������������������������������������������������������������������������������������������������������������������������������� 61
So, About That Winter up There . . .��������������������������������������������������������������������������������������������������������������������� 62
Summary�������������������������������������������������������������������������������������������������������������������������������������65
■■Chapter 4: Fleshing Out Your World���������������������������������������������������������������������������������67
Adding Content to Our Game World���������������������������������������������������������������������������������������������67
Populating the World Map����������������������������������������������������������������������������������������������������������������������������������� 69
Populating the Port Town������������������������������������������������������������������������������������������������������������������������������������� 71
Creating Characters to Populate Seaside������������������������������������������������������������������������������������������������������������ 73
Creating Random Encounters for the World Map������������������������������������������������������������������������������������������������ 82
A Discussion on Battlebacks�������������������������������������������������������������������������������������������������������83
Adding Transfer Events to the World Map�����������������������������������������������������������������������������������85
A Little More on Terrain Tags and Tilesets!����������������������������������������������������������������������������������86
A Discussion of Floor Damage����������������������������������������������������������������������������������������������������88
Additional Exercises��������������������������������������������������������������������������������������������������������������������88
Summary�������������������������������������������������������������������������������������������������������������������������������������89
viii
■ Contents
■■Chapter 5: Your First Dungeon�����������������������������������������������������������������������������������������91
Random or Static?�����������������������������������������������������������������������������������������������������������������������91
Random��������������������������������������������������������������������������������������������������������������������������������������������������������������� 91
Static������������������������������������������������������������������������������������������������������������������������������������������������������������������� 91
Creating Static Encounters����������������������������������������������������������������������������������������������������������91
The Change Encounter Event Command�������������������������������������������������������������������������������������94
Our First Boss������������������������������������������������������������������������������������������������������������������������������96
Additional Exercises��������������������������������������������������������������������������������������������������������������������99
Summary�����������������������������������������������������������������������������������������������������������������������������������101
■■Part II: Increasing the Complexity������������������������������������������������������������ 103
■■Chapter 6: Your Second Dungeon����������������������������������������������������������������������������������105
Updating Our NPCs��������������������������������������������������������������������������������������������������������������������105
The First Two Floors of Our Second Dungeon���������������������������������������������������������������������������106
Interacting with the Dragon Statue�������������������������������������������������������������������������������������������107
Drawing a Perimeter������������������������������������������������������������������������������������������������������������������������������������������ 108
Moving Our Interaction Event���������������������������������������������������������������������������������������������������������������������������� 109
Checking Our Player’s Directional Facing���������������������������������������������������������������������������������������������������������� 112
Our Second Boss�����������������������������������������������������������������������������������������������������������������������114
Creating a Bookcase Interaction Event�������������������������������������������������������������������������������������114
Creating Our Second Boss Event�����������������������������������������������������������������������������������������������115
Creating the Boss Encounter����������������������������������������������������������������������������������������������������������������������������� 116
The Aftermath of the Boss Encounter���������������������������������������������������������������������������������������������������������������� 118
Summary of Our Second Boss Event����������������������������������������������������������������������������������������������������������������� 118
The Second Dungeon’s Random Encounters����������������������������������������������������������������������������119
Placing the Second Dungeon on the World Map�����������������������������������������������������������������������119
The Staircases of the Second Dungeon������������������������������������������������������������������������������������120
Summary�����������������������������������������������������������������������������������������������������������������������������������121
ix
■ Contents
■■Chapter 7: Arenas and Other Minigames�����������������������������������������������������������������������123
Why an Arena?��������������������������������������������������������������������������������������������������������������������������123
What If I Want Another Minigame?��������������������������������������������������������������������������������������������123
Arena Overview�������������������������������������������������������������������������������������������������������������������������123
Outlining Our Arena�������������������������������������������������������������������������������������������������������������������124
Creating the Arena Exterior�������������������������������������������������������������������������������������������������������������������������������� 125
Overview of the Arena Sign-up Event���������������������������������������������������������������������������������������������������������������� 125
Creating the Arena Sign-up�������������������������������������������������������������������������������������������������������126
Creating the Arena Battle Event������������������������������������������������������������������������������������������������128
Creating the Arena Result Event������������������������������������������������������������������������������������������������131
Miscellaneous Arena Considerations����������������������������������������������������������������������������������������132
Creating Our Arena Shop�����������������������������������������������������������������������������������������������������������134
The Treasure Chest Game����������������������������������������������������������������������������������������������������������137
Populating the Chests of the Treasure Chest Game������������������������������������������������������������������140
Creating the Treasure Chest Game NPC������������������������������������������������������������������������������������142
Completing the Treasure Chest Game���������������������������������������������������������������������������������������144
Related Exercises����������������������������������������������������������������������������������������������������������������������144
Other Minigames�����������������������������������������������������������������������������������������������������������������������145
Adding the Minigame Areas to Our World Map��������������������������������������������������������������������������146
Summary�����������������������������������������������������������������������������������������������������������������������������������147
■■Chapter 8: Sidequests���������������������������������������������������������������������������������������������������149
End of the Line for Lite��������������������������������������������������������������������������������������������������������������149
Let’s Create a Permanent Sidequest!����������������������������������������������������������������������������������������150
Creating the Sidequest NPC������������������������������������������������������������������������������������������������������������������������������ 152
Creating the Well (Event)����������������������������������������������������������������������������������������������������������������������������������� 153
Creating the Area Below the Well���������������������������������������������������������������������������������������������������������������������� 153
Additional Exercises������������������������������������������������������������������������������������������������������������������������������������������ 156
x
■ Contents
Let’s Create a Time-Sensitive Quest!����������������������������������������������������������������������������������������156
Creating the Sidequest NPC������������������������������������������������������������������������������������������������������������������������������ 157
Of Rats and Their Tails��������������������������������������������������������������������������������������������������������������������������������������� 159
Additional Exercises������������������������������������������������������������������������������������������������������������������������������������������ 160
Other Sidequest Ideas���������������������������������������������������������������������������������������������������������������161
Summary�����������������������������������������������������������������������������������������������������������������������������������161
■■Chapter 9: All About Common Events����������������������������������������������������������������������������163
The Exit Item/Skill���������������������������������������������������������������������������������������������������������������������164
Updating Our Transfer Events���������������������������������������������������������������������������������������������������������������������������� 164
Creating the Exit Scroll�������������������������������������������������������������������������������������������������������������������������������������� 164
Creating the Exit Event Logic with Common Events������������������������������������������������������������������������������������������ 165
Creating an Enemy with a Shifting Anti-element Barrier����������������������������������������������������������167
Sneaky Like Ninjas: Creating the Smoke Bomb������������������������������������������������������������������������169
Making Specific Random Battles Inescapable��������������������������������������������������������������������������170
Additional Exercises������������������������������������������������������������������������������������������������������������������������������������������ 171
Summary�����������������������������������������������������������������������������������������������������������������������������������172
■■Chapter 10: Treasure Hunting and Other Hidden Things������������������������������������������������173
The Compass�����������������������������������������������������������������������������������������������������������������������������174
How to Change Whether a Map Displays Its Name�������������������������������������������������������������������175
Creating Hidden Treasure Chests That Require the Compass to Be Found�������������������������������176
The Treasure Hunter������������������������������������������������������������������������������������������������������������������177
The Treasure Hunter’s Treasure Note Shop�������������������������������������������������������������������������������������������������������� 178
Giving the Player the Compass�������������������������������������������������������������������������������������������������������������������������� 181
Creating the Treasure Notes������������������������������������������������������������������������������������������������������������������������������ 182
A Hidden Location���������������������������������������������������������������������������������������������������������������������183
A Page of Evented Plot�������������������������������������������������������������������������������������������������������������������������������������� 183
Making Sure That the Player Has Progressed in the Arena������������������������������������������������������������������������������� 185
Creating Our Hidden Location���������������������������������������������������������������������������������������������������������������������������� 186
xi
■ Contents
Hidden Passages�����������������������������������������������������������������������������������������������������������������������187
Additional Exercises������������������������������������������������������������������������������������������������������������������������������������������ 190
Summary�����������������������������������������������������������������������������������������������������������������������������������190
■■Part III: The Finishing Touches����������������������������������������������������������������� 191
■■Chapter 11: Puzzles�������������������������������������������������������������������������������������������������������193
Slippery Floors!�������������������������������������������������������������������������������������������������������������������������193
Creating Our Staging Area��������������������������������������������������������������������������������������������������������������������������������� 193
Eventing Our Sliding Puzzle������������������������������������������������������������������������������������������������������������������������������� 194
A Note About Redundant Code��������������������������������������������������������������������������������������������������������������������������� 196
Eventing Our Sliding Puzzle (continued)������������������������������������������������������������������������������������������������������������ 196
Creating the Icy Area����������������������������������������������������������������������������������������������������������������������������������������� 196
A Treasured Intermission����������������������������������������������������������������������������������������������������������������������������������� 197
Riddles!�������������������������������������������������������������������������������������������������������������������������������������199
Overview������������������������������������������������������������������������������������������������������������������������������������������������������������ 199
Our Riddle of Choice������������������������������������������������������������������������������������������������������������������������������������������ 199
Creating Our Riddle Event���������������������������������������������������������������������������������������������������������������������������������� 199
Finding How RMVXA Handles Actor Names Within Its Code������������������������������������������������������������������������������ 201
How to Use the Script Option to Store and Modify Text in a Variable���������������������������������������������������������������� 201
Finishing Up Our Riddle Event��������������������������������������������������������������������������������������������������������������������������� 202
Remote Statue Manipulation!����������������������������������������������������������������������������������������������������203
Overview������������������������������������������������������������������������������������������������������������������������������������������������������������ 204
Creating the Puzzle Trigger (Interaction) Event�������������������������������������������������������������������������������������������������� 205
Creating the Puzzle Logic Event������������������������������������������������������������������������������������������������������������������������ 206
Dissecting the Statue Manipulation Puzzle Logic���������������������������������������������������������������������������������������������� 208
Creating the Second Town���������������������������������������������������������������������������������������������������������209
Additional Exercises������������������������������������������������������������������������������������������������������������������210
Summary�����������������������������������������������������������������������������������������������������������������������������������211
xii
■ Contents
■■Chapter 12: Final Preparations��������������������������������������������������������������������������������������213
Populating Rocksdale����������������������������������������������������������������������������������������������������������������213
The Town Greeter����������������������������������������������������������������������������������������������������������������������������������������������� 215
Creating the Village Elder and His Home����������������������������������������������������������������������������������������������������������� 216
The Temple of Rocksdale����������������������������������������������������������������������������������������������������������������������������������� 218
Leaving Rocksdale��������������������������������������������������������������������������������������������������������������������219
Enemies of the World����������������������������������������������������������������������������������������������������������������222
A Discussion on Superbosses���������������������������������������������������������������������������������������������������224
Completing the Dragon Statue Event����������������������������������������������������������������������������������������227
Setting Up the Use of the Exit Skill/Item Inside a Dungeon with Two Exits�������������������������������228
Summary�����������������������������������������������������������������������������������������������������������������������������������230
■■Chapter 13: The Final Dungeon��������������������������������������������������������������������������������������231
The Beginning of the End—The First Floor�������������������������������������������������������������������������������231
The Teleportation Puzzle������������������������������������������������������������������������������������������������������������������������������������ 231
Creating the Puzzle Logic���������������������������������������������������������������������������������������������������������������������������������� 233
Creating the Crystal That Controls the Puzzle��������������������������������������������������������������������������������������������������� 234
Encounters of the First Floor����������������������������������������������������������������������������������������������������������������������������� 234
The Basement���������������������������������������������������������������������������������������������������������������������������235
The Second Floor����������������������������������������������������������������������������������������������������������������������238
The Third Floor��������������������������������������������������������������������������������������������������������������������������241
A Boss Rush Overview��������������������������������������������������������������������������������������������������������������������������������������� 241
Locales of the Third Floor���������������������������������������������������������������������������������������������������������������������������������� 242
Creating the Blocking Event������������������������������������������������������������������������������������������������������������������������������ 243
The Boss Rush��������������������������������������������������������������������������������������������������������������������������������������������������� 244
Considerations Concerning the Boss Rush Room���������������������������������������������������������������������������������������������� 248
Populating the Treasure Room��������������������������������������������������������������������������������������������������������������������������� 248
When Chests Attack������������������������������������������������������������������������������������������������������������������������������������������� 249
Miscellaneous Odds and Ends��������������������������������������������������������������������������������������������������������������������������� 249
xiii
■ Contents
The Final Boss���������������������������������������������������������������������������������������������������������������������������251
Creating the Pre-Battle Autorun Event��������������������������������������������������������������������������������������������������������������� 252
The Dark Master and the Final Battle���������������������������������������������������������������������������������������������������������������� 254
Transform!���������������������������������������������������������������������������������������������������������������������������������255
The End (of the Game)���������������������������������������������������������������������������������������������������������������256
More Tips and Tricks for Final Dungeons����������������������������������������������������������������������������������258
Summary�����������������������������������������������������������������������������������������������������������������������������������258
■■Chapter 14: Basic Scripting Exercises in RMVXA����������������������������������������������������������259
What Is Ruby?���������������������������������������������������������������������������������������������������������������������������259
What Is Object-Oriented Programming?�����������������������������������������������������������������������������������259
Critically Coded�������������������������������������������������������������������������������������������������������������������������260
Coded Messages (in a Bottle)����������������������������������������������������������������������������������������������������261
Dissecting the hp_damage_text Method����������������������������������������������������������������������������������������������������������� 262
Tweaking the hp_damage_text Method������������������������������������������������������������������������������������������������������������ 263
Dissecting the mp_damage_text Method���������������������������������������������������������������������������������������������������������� 265
Tweaking the mp_damage_text Method����������������������������������������������������������������������������������������������������������� 265
The tp_damage_text Method���������������������������������������������������������������������������������������������������������������������������� 266
Of TP and Their Preservation�����������������������������������������������������������������������������������������������������267
Searching for TP������������������������������������������������������������������������������������������������������������������������������������������������ 267
Tweaking the TP Preserve Methods������������������������������������������������������������������������������������������������������������������ 268
Other TP Considerations������������������������������������������������������������������������������������������������������������������������������������ 268
Damage Floors Revisited�����������������������������������������������������������������������������������������������������������270
Game Over by Incapacitation����������������������������������������������������������������������������������������������������271
Adding a Menu to the Game Over Screen���������������������������������������������������������������������������������273
Tweaking the Game Over Menu������������������������������������������������������������������������������������������������������������������������� 274
Summary�����������������������������������������������������������������������������������������������������������������������������������277
xiv
■ Contents
■■Chapter 15: More Tips and Tricks for RMVXA����������������������������������������������������������������279
Forcing Certain Party Members to Participate in a Battle���������������������������������������������������������279
Overview������������������������������������������������������������������������������������������������������������������������������������������������������������ 280
Finding Out How RMVXA Handles Party Members�������������������������������������������������������������������������������������������� 280
Creating the Forced Party Member Event���������������������������������������������������������������������������������������������������������� 281
Play-Testing Features����������������������������������������������������������������������������������������������������������������282
Of Deserts and Ghostly Locations���������������������������������������������������������������������������������������������283
The Desert Event����������������������������������������������������������������������������������������������������������������������������������������������� 284
Forest Event Overview��������������������������������������������������������������������������������������������������������������������������������������� 285
Creating the Forest Event���������������������������������������������������������������������������������������������������������������������������������� 286
Vehicles�������������������������������������������������������������������������������������������������������������������������������������287
Two of a Kind�����������������������������������������������������������������������������������������������������������������������������289
A Full House������������������������������������������������������������������������������������������������������������������������������290
Ye Olde RPG—A Treatise on Quest Experience�������������������������������������������������������������������������291
The Other Actor Event Commands���������������������������������������������������������������������������������������������292
The Bridge���������������������������������������������������������������������������������������������������������������������������������293
The Town Map���������������������������������������������������������������������������������������������������������������������������295
Preparing Our Map Pictures������������������������������������������������������������������������������������������������������������������������������ 295
Using the Show Picture Event Command���������������������������������������������������������������������������������������������������������� 296
Creating Our Town Map Common Events���������������������������������������������������������������������������������������������������������� 297
Variants on the Map Exercise����������������������������������������������������������������������������������������������������298
Summary�����������������������������������������������������������������������������������������������������������������������������������298
■■Appendix A: Useful Resources for RPG Maker VX Ace���������������������������������������������������299
Tutorials and General Help for RMVXA��������������������������������������������������������������������������������������299
Art and Spriting�������������������������������������������������������������������������������������������������������������������������300
Tutorials and References for Ruby��������������������������������������������������������������������������������������������300
xv