Difference between revisions of "EFFECT"

From SphereWiki
Jump to: navigation, search
(Created page with '=Usage= '''EFFECT type, item_id, speed, loop, explode, colour(hue), rendermode''' =Description= Type is a number 0-3 from the table below Item_id is the base id (under 4000) o...')
 
(Description)
Line 5: Line 5:
 
  Type is a number 0-3 from the table below
 
  Type is a number 0-3 from the table below
 
  Item_id is the base id (under 4000) of the item or animation(first id of the animation loop usually) used for the effect
 
  Item_id is the base id (under 4000) of the item or animation(first id of the animation loop usually) used for the effect
  Speed is a number determining the speed of the projectile, with 1 being the slowest and higher numbers being faster
+
  Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster
  Loop specifies the number of animation frames to play, most are 16
+
  Loop specifies the time the animation will play, 16 is a good default. (This is NOT frames of animation, as a high speed results in more frames per given loop setting)
 
  Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character
 
  Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character
 
  
 
=Effect Types=
 
=Effect Types=

Revision as of 21:32, 16 January 2011

Usage

EFFECT type, item_id, speed, loop, explode, colour(hue), rendermode

Description

Type is a number 0-3 from the table below
Item_id is the base id (under 4000) of the item or animation(first id of the animation loop usually) used for the effect
Speed is a number determining the speed of the animation and the travel speed if it's a projectile, with 1 being the slowest and higher numbers being faster
Loop specifies the time the animation will play, 16 is a good default. (This is NOT frames of animation, as a high speed results in more frames per given loop setting)
Explode is a boolean defining whether the projectile should make an explosion animation when reaching the character

Effect Types

Effect Number Short Long Description
0 Standard flying object The object will follow its target until it hits, and then explode if that flag is set
1 Lightning effect This is the only way to achieve the lightning effect in-game
2 Ground-based effect This effect will stay at a particular point on the map until it expires. As a result, it will appear lower than a type 3 effect. This is the only way to get an effect onto an item.
3 Character-based effect This effect will follow the character as he moves, the way a flamestrike does when the spell is cast. The bottom of the effect is somewhere around the character's knees.