Difference between revisions of "ScriptEffect"

From Amulets & Armor Wiki
Jump to: navigation, search
(List of Effects)
Line 38: Line 38:
 
! Name
 
! Name
 
! Description
 
! Description
! Argument 1
+
! Subtype
! Argument 2
+
! Duration
! Argument 3
+
! Power
 
|-
 
|-
 
| 30
 
| 30

Revision as of 07:38, 13 November 2015

Effect( [EffectNum], [Subtype], [Duration], [Power] )

Plays a sound to the current player at max volume

Arguments

EffectNum - Effect number to initiate

Subtype - Subtype of Effect (see below)

Duration - Length of Effect

Power - Power of Effect (see below)

Example

40:  // lower gates
	Compare(ExitSwitch, COMPLETE);
	If (Equal, 99); 
	Block(Block1);   
	ChangeSideTexture(1208,"SWIT1U");
	AreaSound(6007,-3424,-2736,300,255);

	Delay(100);

	//Earthquake
	Sound(3005);
	Effect(30, 0, 300, 0); 

List of Effects

Creates an effect of the given type. Type is a number corresponding to the effect list

# Name Description Subtype Duration Power
30 EFFECT_TRIGGER_EARTHQUAKE Shakes the ground for a specified number of ticks N/A Time in Ticks N/A



Back to Scripting Main