website logo
Buy CronusGPC LibraryGamePacks (16bit)YouTubeForumsDiscord
📘Cronus Zen Guide
📗GamePacks (32bit)
📗GPC Script Guide
Navigate through spaces
📘Cronus Zen Guide
📗GamePacks (32bit)
📗GPC Script Guide
⌘K
📑GPC SCRIPTING
What's New in 32bit?
Introduction
Variables
Basic GPC Structure
Definitions
Data Section
Remapping
Const Arrays
Init Section
Main Section
Combo Section
User Created Functions
Identifiers
Flow Control
Constants
Functions
Device Functions
Remapping
Advanced Samples
API Samples
Docs powered by archbee 

Definitions

The sole purpose of a definition is to assign a value to a word and therefore make a script easier for a human to read. They do not use any bytecode space in a script. When a script is compiled the words are changed to their assigned value.

Syntax

define <name> = <value or expression>;
GPC
|

Info: The value of the definition must be possible to compute during compilation - meaning you can use math but not math functions.

Once a word is defined and given a value, that word can be used anywhere in the script where a value is valid, as shown below:

GPC
|

If you wish to assign a value to a word and change its value during run-time, you would use a variable instead of a define.

UP NEXT
Data Section
Docs powered by archbee 
TABLE OF CONTENTS
Syntax