GAME CONCEPT AND DESIGN
COSC 320.101_SU09
SUMMER 2009
Areas
An area is a "section" of your game world. If it helps to think of it this way, you can consider it the "area" you can make using 1 tileset of a size between 1 tile by 1 tile up to 32 tiles by 32 tiles. Your game world very well might have more than one area and each area can make use of a different tileset. You just cannot mix tilesets together in the same area.
By now, I hope you've fiddled with the map maker part enough to have an idea how it works.
Area Properties
An area has a number of properties that you can examine and alter. You can do this by going to the left-hand pane where all the assets that you have used are listed, locate the area name you wish to explore, right-click, and select Properties.
As with nearly every properties sheet in NWN, you will see a window with a number of tabs. Most of the tabs and the items beneath the tabs are self-explanatory, but here's a few important bits:
Basic: Name This is the name of the area as it appears in the left-hand pane and what is displayed to the player when he transitions into the area. If at some point you don't like the name you've given an area, you can change it here.
Events: Here you will find the messages that the area can listen for and react to. onEnter is when a creature enters the area; onExit is when a creatures leaves the area; onHeartbeat is a message that is sent every 6 seconds; onUserDefined....I've never used, so I don't know for sure.
File a cautionary note that using onEnter and onExit bear a trap---every creature that enters or exits causes the event to fire. It's very easy to program yourself into an infinite loop here. We'll see how to avoid that loop later on.
Advanced: Here are some settings you probably won't need to fiddle with...but then again you might.
- Loading Screen lets you specify which of the "banner shots" to be displayed when a player is entering the zone.
- Player vs Player allows this zone to override the default setting for the entire module.
- Resref can't be changed and doesn't tell you what it does...but file the term "resref" into memory for later on.
- Tag will probably be the same as the Name, but it doesn't have to be. Again...file "Tag" away in memory for a bit.
- Variables is new to my experience. As I understand it, this means you can setup certain variables and "attach" them to the area. So, when the game begins the variables are set up, attached, and given the values you specify. Later in your scripts, you can examine those variables, change them, save them back to the area, and make decisions based on the values you find there. You can also do this sort of thing entirely through scripting (which is what I'm used to doing since there was no "variables" area in the old days.)
Comments: Nearly every Properties sheet has a "Comments" tab. What you type here is strictly for notes for yourself when in the toolkit and is not seen by the player.
Module Properties
This is probably a good time to show you how to access the properties sheet for the entire module. From the menu bar, select Edit > Module Properties. Viola! There you go!
Again most of these should be pretty self-explanatory. |