User Tools

Site Tools


crpl:docs:createeffect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:createeffect [2014/10/01 15:02] – external edit 127.0.0.1crpl:docs:createeffect [2021/02/05 11:44] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]]
 =====  CreateEffect  ===== =====  CreateEffect  =====
Line 10: Line 10:
 CreateEffect allows you to play one of (currently) 17 in-game animations (explosions, the smoke that flies out when something lands, etc.). CreateEffect allows you to play one of (currently) 17 in-game animations (explosions, the smoke that flies out when something lands, etc.).
  
-Effects are numbered 0-16.  The X,Y,Z coordinates are where to play the effect.  They are in world pixel coordinates where (0,0,0) is the lower left of the map.  ScaleX and ScaleY can be used to change the size of the effect, with being the normal scale.  And Speed is how fast to play the effect 1/30 will play most effects at their normal rate.+  * Effect_Num The effect number between 0 and 16 (see list below). 
 +  X,Y,Z - The world pixel coordinates where to play the effect (0,0 is the lower left of the map in pixel coordinates). 
 +  ScaleXScaleY - Used to change the size of the effectis the normal scale. 
 +  Speed - How fast to play the effect. Lower values play the effect slower. 1/30, or 0.03(3), will play most of the effects at their normal rate.
  
 Effects are useful for visual flare.  For instance when a unit blows up you might want to make a custom explosion. Effects are useful for visual flare.  For instance when a unit blows up you might want to make a custom explosion.
Line 36: Line 39:
 <code> <code>
 # Play an effect at the current coords, in front of the current unit. # Play an effect at the current coords, in front of the current unit.
 +
 +# Standard Notation
 +14 CurrentCoords CellToPixel -1 1.5 1.5 0.05 CreateEffect
 +
 +# Warp Notation
 CreateEffect(14 CellToPixel(CurrentCoords) -1 1.5 1.5 0.05) CreateEffect(14 CellToPixel(CurrentCoords) -1 1.5 1.5 0.05)
 </code> </code>
-<note>12, 15 and 16 were previously unending animations. They are now clipped to 30 frames. To specify the +<note>12, 15 and 16 were previously unending animations. For use with CreateEffect, they are now clipped to 30 frames. To specify the desired duration of these effects, or clip any of the other effects short, see [[crpl:docs:CreateEffectClipped]].</note> 
-desired duration of these effects, or clip any of the other effects short, see [[crpl:docs:CreateEffectClipped]].</note>+ 
 +=== Previews === 
 +The previews below play at 1/30 speed. (0.033333...) 
 + 
 +^  Effect  ^   Name  ^  Preview  ^  
 +^  0  |   Shot \\ Explosion   | {{:cw3:effects:0.gif?300 |}} | 
 +^  1  |   Mortar \\ Shell \\ Explosion   | {{:cw3:effects:1.gif?300 |}} | 
 +^  2  |   Bertha \\ Shell \\ Explosion   | {{:cw3:effects:2.gif?300 |}} | 
 +^  3  |   Runner \\ Explosion   | {{:cw3:effects:3.gif?300 |}} | 
 +^  4  |   Spore \\ Explosion   | {{:cw3:effects:4.gif?300 |}} | 
 +^  5  |   Totem \\ Explosion   | {{:cw3:effects:5.gif?300 |}} | 
 +^  6  |   Creeper \\ AA Shell \\ Explosion   | {{:cw3:effects:6.gif?300 |}} | 
 +^  7  |   Unit \\ Explosion   | {{:cw3:effects:7.gif?300 |}} | 
 +^  8  |   Move \\ Trail   | {{:cw3:effects:8.gif?300 |}} | 
 +^  9  |   Short \\ Trail   | {{:cw3:effects:9.gif?300 |}} | 
 +^  10  |   Spore \\ Trail   | {{:cw3:effects:10.gif?300 |}} | 
 +^  11  |   Smoke \\ Ring \\ Effect   | {{:cw3:effects:11.gif?300 |}} | 
 +^  12  |   Particle \\ Beam \\ Damage   | {{:cw3:effects:12.gif?300 |}} | 
 +^  13  |   Pulse \\ Cannon \\ Shell \\ Effect   | {{:cw3:effects:13.gif?300 |}} | 
 +^  14  |   Stunned \\ Effect   | {{:cw3:effects:14.gif?300 |}} | 
 +^  15  |   Terra \\ Mod \\ Cell   | {{:cw3:effects:15.gif?300 |}} | 
 +^  16  |   Totem \\ Firing \\   | {{:cw3:effects:16.gif?300 |}} |
crpl/docs/createeffect.1412190170.txt.gz · Last modified: 2014/10/01 15:02 by 127.0.0.1