GAE/Earthquake

From MegaGlest
Jump to: navigation, search
This article or section describes a feature that is broken in current versions. The page is kept for posterity and in case the feature becomes usable in the future.
Please note that attempting to use the feature could result in instability, errors, or nonfunctional features. If this is incorrect, you can edit this page to improve it.

Earthquakes are a special effect in GAE that can be added to an attack skill, providing additional visual effects. They do not do extra damage themself, and serve only as eye candy. They were initially implemented for the never completed Four Path Magitech.

XML[edit]

This code must be placed in an attack skill.

<earthquake>
	<magnitude value="0.25"/>
	<frequency value="1.5"/>
	<speed value="4.75"/>
	<duration value="8"/>
	<radius value="10"/>
	<initial-radius value="2.0"/>
	<sound-file path="sounds/sound_file.wav"/>
	<shifts-per-second value="10"/>
	<shifts-per-second-var value="2"/>
	<shift-length-multiplier x="1" y="0.25" z="1"/>
</earthquake>

Definition[edit]

magnetude[edit]

The strength of the earthquake, from 0-1. This controls a sine pattern that quickly rises at the start and quickly falls at the end.

frequency[edit]

The number of "pulses" used in the earthquake formula.

speed[edit]

Used in the earthquake formulas to set the rate of the earthquake cycles.

duration[edit]

How long, in seconds, the earthquake lasts for.

radius[edit]

Used to determine the maximum size of the earthquake as well as the degree of effectiveness as you get further from the epicenter.

sound-file[edit]

Path to a sound file that will be played the duration of the earthquake.

shifts-per-second[edit]

Base number of shifts in the ground every second.

shifts-per-second-var[edit]

A plus-minus variance which gives the shifts-per-second element some randomness.

shift-length-multiplier[edit]

Used to control the direction the earth moves in, with some degree of randomness.

Planned content[edit]

It was initially planned to create fall_down and get_up skills to go along with the earthquake, where the units could display a certain animation as they fall during the earthquake and another when they get up after the earthquake, but the implementation was abandoned and unlikely to be completed.

See also[edit]