Enumerations for various data types.
All enum variants take the name of the variant as a string for its value. This means that anywhere an enum value is required, you can pass a string with its name.
local Enums = ELONA.require("core.Enums")
| DamageSource | A source of damage to be used with LuaCharacter.damage_hp. |
| Color | A set of colors. |
| CurseState | The curse state of an item. |
| IdentifyState | The identify state of an item. |
| StatusAilment | A status effect applicable to a character. |
| Element | A type of elemental damage. |
| TileKind | A kind of tile to be used with Map.generate_tile. |
| Quality | The quality of randomly generated equipment. |
| Buff | The type of a buff. |
| MapType | The type of a map. |
| MapEntranceType | Determines how the player should be spawned in a map when entering it for the first time. |
| MapTileset | Indicates which map tile atlas to use for a map. |
| Gender | Possible genders of a character. |
| Relationship | Relationship of a character to the player. |
| CharaFlag | A flag that can be set on a character. |
| TraitType | The types of traits available. |
| CharaFindLocation | Location to search for characters using Chara.find. |
| ItemFindLocation | Location to search for items using Item.find. |
| ControlAllyOperation | Operation to use with Input.choose_ally. |
| RandomTitleType | Title type to use with World.random_title. |
| WishMatchType | Match type to use with Wish.match. |
| WishHook | Wish hook point to use with Wish.add. |
A source of damage to be used with LuaCharacter.damage_hp.
Enum Values:
A set of colors.
Enum Values:
The curse state of an item.
Enum Values:
local item = Item.create(10, 10, "core.putitoro", 3)
item.curse_state = "Blessed"
The identify state of an item.
Enum Values:
local item = Item.create(10, 10, "core.putitoro", 3)
item.identify_state = "Completely"
A status effect applicable to a character.
Enum Values:
A type of elemental damage.
Enum Values:
A kind of tile to be used with Map.generate_tile.
Enum Values:
The quality of randomly generated equipment.
Enum Values:
The type of a buff.
Food buffs are lost when vomiting. Hex buffs can be removed with Holy Light/Vanquish Hex, and can be resisted.
Enum Values:The type of a map.
Enum Values:
Determines how the player should be spawned in a map when entering it for the first time.
Enum Values:
Indicates which map tile atlas to use for a map.
Enum Values:
Possible genders of a character.
Enum Values:
Relationship of a character to the player.
Enum Values:
A flag that can be set on a character.
The first 32 flags (up to
IsQuickTempered) are "intrinsic" and will be reset
when the character is refreshed.
The types of traits available.
Enum Values:
Location to search for characters using Chara.find.
Enum Values:
Location to search for items using Item.find.
Enum Values:
Operation to use with Input.choose_ally.
Enum Values:
Title type to use with World.random_title.
Enum Values:
Match type to use with Wish.match.
Enum Values:
Wish hook point to use with Wish.add.
Enum Values: