Difference between revisions of "ScriptEffect"

From Amulets & Armor Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
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 ===
 +
 +
<nowiki>
 +
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);
 +
</nowiki>
 +
 +
== List of Effects ==
 +
 
Creates an effect of the given type. Type is a number corresponding to the effect list
 
Creates an effect of the given type. Type is a number corresponding to the effect list
  
Line 16: Line 49:
 
| N/A
 
| N/A
 
|}
 
|}
 +
 +
 +
 +
----
 +
Back to [[Scripting]] Main

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 Argument 1 Argument 2 Argument 3
30 EFFECT_TRIGGER_EARTHQUAKE Shakes the ground for a specified number of ticks N/A Time in Ticks N/A



Back to Scripting Main