Artifacts

Artifacts

Classnames: art_blastradius (Disc of Repulsion)
art_cubeofforce (Force Cube)
art_glyph (Glyph of the Ancients)
art_haste (Boots of Speed)
art_HealthBoost (Quartz Flask)
art_invincibility (Icon of the Defender)
art_invisibility (Invisibility Sphere)
art_manaboost (Krater of Might)
art_polymorph (Seal of the Ovinimancer)
art_summon (Stone of Summoning)
art_SuperHBoost (Mystic Urn)
art_teleport (Chaos Device)
art_tomeofpower (Tome of Power)
art_torch (Torch)
Purpose: Inventory items.
H2 Code: artifact.hc
fields required: origin
These are picked up by player and go into his/her inventory. They all seem to have the same fields and spawnflags.

They can be spawned by item spawners, dying monsters or demolished objects. Like other point entities, artifacts can also trigger events and toggle lights when acquired; this works in original H2 but wasn't actually used by Raven until Portal of Praevus (thanks to Terata for enlightenment on this).

Fields

origin Value is a triple of number, location of artifact. Your editor should manage this visually, automatically.
spawnflags Value 1 means artifact hangs floating where put it in the map, rather than dropping to convenient grabbing distance off the floor (default value = 0). Your map editor should provide some kind of labelled checkbox scheme for spawnflags,
target Value is a name, of target triggered when artifact is acquired.
style Value is a number (32 or greater) used in conjunction with target for toggling lights; this style values is to be shared by all lights that toggle together.

Back to the list.