Default Property

TURBU

Default Property

 

If an object contains at least one array property, and the objects in that array are the main focus of the parent object, the programmer may set that array as the default property for the object.  This means that the script writer can treat the parent as the array itself in scripts.  For example, the hero array property is the default property for the TRpgParty class.  This means that, for a TRpgParty object named "party," party.hero[2] and party[2] can be used interchangeably.

 

Related topics

RPG Script Reference

Object Pascal basics

TRpgParty Properties

This help file was created with the free trial version of HelpScribble.