• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
  • entries
  • comments
  • views

What Makes an Event or a Script?

Sign in to follow this  
Followers 0
Gregory Cheyney


This post, is a long long LONG one; I feel I have a lot to say. You can reap the benefits of my thinking, if you have the patience to read a bit...

I have already mentioned that Events are almost a must for the game-maker I am creating; and it also follows that Scripting control is a highly-desired feature by people using the Enterbrain products. But in part, I do wonder if this is because scripting is generally the only way to control or reconfigure the RGSS features, or because if the source code to RM were available, some of the scripters would be more apt to develop their features in the native language?

You see, because what I'm planning is, and will remain, an open-sourced project, I am considering leaving the engine uncompiled, so that "Scripters" can add in Java classes to support their additional features, and the end-user could compile their game, engine and additional scripts, to control the creation of the game without being quite so needy on a third-party scripting system. Ha; Java itself is the scripting language.

A brief note, and this is only fractional in my opinion, might be that game-makers would be required to use the JDK to compile the project before testing and game release, not just the JRE (or, at least, just ONE collaborator on their project have a JDK). Again, it's a minor point; but one I believe will be easy for the game-maker to come to terms with....

Theory: Example Events, and Potential Application.

On thinking of how to implement some of the eventing solutions that are possible, or even impossible, in current RPG Makers, I've come up with a few scenarios and examples, that I've been mulling over.

First, the types of variables. With the RPG Maker programs we have Switches and Variables, the latter of which are numbers. In using the Java language, I would prefer the variables to be more strongly-typed -- so, variables specifically typed as booleans, doubles, integers, longs, and even Strings.

Second, subclassing and subcategorizing events themselves by a type. I will keep a generic Event class as the parent of all other events; but I'd also categorize event-able objects as one or more of the following:

  • A basic NPC, for characters on a map who are merely there to provide "flavor text"; on top of the baseline Event class, is added variables and controls for movement-pathing-routing, naming (first, last(maybe), nickname), money/value (heh, I see a lot of games coming out with Thief classes for utilizing this...), position-rank-title values (I had a thought about NPCs with actual authority),
  • A Classed-NPC, for a subtype of the basic NPC where it makes sense to possibly have stats, useful for conditionally-branching event control based upon an independent stat value, in comparison with the player's own stats; race/racial traits and gender (both of these appear valid enough for supporting in the engine and editor, for all you wanting more control over classes and skills), character alignment-mood-morality-personality-reputation (maybe not so high priority on its own, but doable), NPCs susceptible to conditions, et cetera. Classed NPCs could theoretically also have weapons and armor, so that during town sieges they could "help" in its defense, although NPCs probably do not need experience and levels....
  • Further Classed-NPC subtypes where it makes sense to further expand the possibilities; they should inherit all the aforementioned stats or properties mentioned above. Examples: Battler NPCs whose purpose is for combat, such as player-trainers and the like, but not necessarily like the random battlers encountered; Merchant NPCs who remember their own inventory, what's bought or sold, and the amounts of each in stock; and perhaps any other classed or class-able NPC subtype.

    (Also, theoretically speaking, the Player could be considered to be a Classed-NPC Event of sorts, just with more options available due to being controlled.)

    Third, is for events related to "farming" and crop-growth. This is traditionally done with some scripting and/or eventing and using plenty of global variables. How the crop is displayed (relative to its growth-stage) is one aspect that is traditionally done in the event pages and using the event's self-switches; but how to specify if a statically-places plot is planted with one type of seed over another, and controlling the hydration state, is yet a different problem. Thus, the reliance on so many global variables and switches alongside the scripts.

    Eh, well, I do have a unique approach to "solve" or diminish this ... since I am the one who is taking the lead in making both editor and engine. Simply put, while I've decided to allow increasing the number of self-switches for events, I will also allow events to have "self-variables", to reduce dependence on global variables; I feel the "global variables" should truly be for values that are global to the game, quest states and whatnot. (Generically speaking, events already do contain self-variables, in that self-switches are merely a variable of a Boolean kind. But allowing the event instance to have access to its own numeric variables may keep the global stack of variables somewhat streamlined.)

    Along with all the above-mentioned NPC event types, at least one subtype could be for Plantable and Growable events, with variables specifying the timer-based controls like first planting time, current crop type, current maturity, maximum age, etc. These plantable events don't even have to be single-planting events, either; they could be for perennial crops and plants that continue to produce, even through many seasons or even "years" in game. It just depends how intricate a planting/farming system is desireable.

    And, I'm done for now. Didn't think I'd get to this point? Haha. Have a good day y'all...

Sign in to follow this  
Followers 0


There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now