Skip to content

GroundMarkEffect ​

Inherits: Effect < DatabaseResource < Resource

Leaves a mark on the ground where its target is: a scorch (a fireball, an explosion), a crater (a slam, a meteor), a stain (a splash, a spill), or a picture of your own. The mark is a decal on the ground (it follows hills and lies on any floor) and fades out after its time; the ground has at most as many marks as the Gameplay Config says (the oldest goes first). Use it as a child of an ability effect, an area, a projectile: wherever the effect lands, the ground remembers.

Properties ​

MarkmarkMark.SCORCH
floatsize3.0
floatfade_seconds60.0
ColorcolorColor(0.04, 0.035, 0.03, 0.85)
Texture2Dpicturenull
boolrandom_turntrue

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()
Array[Dictionary]validate()

Enumerations ​

enum Mark ​

What the mark looks like

  • SCORCH = 0
  • CRATER = 1
  • STAIN = 2
  • FOOTPRINT = 3
  • TRACK = 4
  • YOUR_PICTURE = 5

Property descriptions ​

Ground Mark Settings

Mark mark = Mark.SCORCH ​

The kind of mark

float size = 3.0 ​

How wide the mark is, in metres

float fade_seconds = 60.0 ​

How long the mark stays before it fades out, in seconds

Color color = Color(0.04, 0.035, 0.03, 0.85) ​

The colour of the mark and how strong it is (the alpha)

Texture2D picture = null ​

A picture of your own (with Your picture): white where the mark is, with an alpha

bool random_turn = true ​

Each mark is turned a random way round

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Puts the mark on the ground under the target

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

A short text for the effect editor that says what the effect does.

Array[Dictionary] validate() ​

Validation