RPG configuration

From Platinum Arts Sandbox Free 3D Game Maker
Jump to: navigation, search

Intro

The definitions are stored in a series of sub directories in your game's directory. The directory itself will typically share the name of the definitions it contains, ie, one containing critter definitions will be called critters.

The game's directory itself will share its name with a .cfg file placed along side it, this CFG file allows the RPG module to ascertain the game's presence and subsequently load it, as well as define other properties. There is a base directory included to help you set things up.

If you require help in setting things up, please consult the first part of the RPG_tutorial tutorial.

Game configuration

the cfg that lives along the game's directory defines several very important things. It associates maps with scripts and mapflags, defines the first map and all sorts of other properties as well as the game's HUD.

Currently not implemented is the means to adjust the stat gradients.

Available variables at present are

  • firstmap - the first map that is loaded if one isn't specified
  • gameversion - game version
  • compatversion - oldest game version the game is compatible with (for patches)

Available commands are

  • r_preparemap map script flags

Notes and tips

Firstly slots, each and every single slot has a companion command with a _get (usually takes no arguments) suffix that will return its value.

Secondly, you are going to be modifying the definitions quite a lot and perhaps even tweak them a lot in a very short space of time, there's a command named r_rehash available to facilitate your testing. Make sure to save your map and game before using it.

Thirdly, if you are going to duplicate definitions for the purpose of making derivatives, use the include command to execute that definition. Include is executed relative to your game's directory eg. include scripts/1 will execute data/rpg/games/mygame/scripts/1.cfg

Scripts

Commands

Slots

Particle Effects

Commands

Slots

Status groups

Commands

Slots

Items

Commands

Slots

Ammo groups

Commands

Slots

Critters

Commands

Slots

Factions

Commands

Slots

Obstacles

Commands

Slots

Containers

Commands

Slots

Platforms

Commands

Slots

Triggers

Commands

Slots

Mapscripts

Commands

Slots

Recipes

Commands

Slots

Global Variables

Tips