Introduction/defines-define

Define

Define is used for defining something for the Interpreter.


For example, here we can define Visible Name of a custom part for game Monolith:

define->parameter = parameter_value

Below is the list of all parameters you can use.

Class

Required

Class parameter is used to define the type mod you want to code.


Example:

define->class = gm_part

Example above defines that we are trying to code a custom part (part) for game

Monolith (gm).

Class Name

Required

Class name parameter is used to define the in game ID of our part.


Example:

define->class_name = example_part

Display Name

Required

Display name parameter is used to define the in game display name of our part.

Spaces are not allowed!


Example:

define->part_displayname = ExamplePart

Display Icon

Required

Display icon parameter is used to define the in game display icon of our part.


Example:

define->part_icon = resources/icon.png

Here we define that our part has an icon (preview) inside resources subfolder.

Dependencies (Libraries)

Required

Dependencies list parameter is used to import necessary libraries for your part.

All libraries are inside source/dependencies folder, you can create your own

by duplicating existing .vrv file and modifying it.


Libraries such as VSTOCK contain basic functions like fadd or fsub, import it

every time you want to do anything in Verve. GM_STOCK library contains

functions made for game Monolith like console_log.


Example:

define->dependecies = gyroscope, vstock, gm_stock

Here we import 3 libraries: gyroscope, vstock and gm_stock that are located inside

source/dependencies folder.


You can easily call functions inside a library by using (->) get operator.


Example:

gyroscope->stabilize(5)

Example above calls stabilize function inside the gyroscope library.

Read more about libraries here.

Upgrades

Upgrades list parameter is used to define the in game upgrades for our part.


Example:

define->part_upgrades = up_partid1, up_partid2

In the example above we are defining two upgrades, these are just another parts

that you can make in the same way as you are doing now.


Keep in mind that if you are creating an upgrade part, you need to change the

parameter "gm_part" to "gm_up" inside the upgrade part function.vrv file

so it shows up as an Upgrade instead of a Part.

Blocked Abilities

Blocked Abilities list parameter is used to define the in game abilities of our part.


Example:

define->blocked_abilities = non-deletable

Example above defines that our part cannot be deleted (use with caution).

  • non-deleteable

  • non-rotateable

documentation

Outdated! Updates coming soon.