This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:createeffect [2014/07/08 21:52] – Added internal names of the effects ParkourPenguin | crpl:docs:createeffect [2025/07/24 19:28] (current) – Fixed animated gifs not autoplaying Up-Level | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | ||
| <- [[crpl: | <- [[crpl: | ||
| ===== CreateEffect | ===== CreateEffect | ||
| Line 10: | Line 9: | ||
| CreateEffect allows you to play one of (currently) 17 in-game animations (explosions, | CreateEffect allows you to play one of (currently) 17 in-game animations (explosions, | ||
| - | Effects are numbered 0-16. | + | * Effect_Num |
| + | * X,Y,Z - The world pixel coordinates where to play the effect (0,0 is the lower left of the map in pixel coordinates). | ||
| + | * ScaleX, ScaleY | ||
| + | * Speed - How fast to play the effect. Lower values play the effect slower. | ||
| Effects are useful for visual flare. | Effects are useful for visual flare. | ||
| Line 36: | Line 38: | ||
| < | < | ||
| # 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) | ||
| </ | </ | ||
| - | < | + | < |
| - | desired duration of these effects, or clip any of the other effects short, see [[crpl: | + | |
| + | === Previews === | ||
| + | The previews below play at 1/30 speed. (0.033333...) | ||
| + | |||
| + | ^ Effect | ||
| + | ^ 0 | Shot \\ Explosion | ||
| + | ^ 1 | | ||
| + | ^ 2 | | ||
| + | ^ 3 | | ||
| + | ^ 4 | Spore \\ Explosion | ||
| + | ^ 5 | Totem \\ Explosion | ||
| + | ^ 6 | | ||
| + | ^ 7 | Unit \\ Explosion | ||
| + | ^ 8 | Move \\ Trail | {{: | ||
| + | ^ 9 | Short \\ Trail | {{: | ||
| + | ^ 10 | Spore \\ Trail | {{: | ||
| + | ^ 11 | Smoke \\ Ring \\ Effect | ||
| + | ^ 12 | | ||
| + | ^ 13 | Pulse \\ Cannon \\ Shell \\ Effect | ||
| + | ^ 14 | | ||
| + | ^ 15 | Terra \\ Mod \\ Cell | {{: | ||
| + | ^ 16 | Totem \\ Firing \\ | {{: | ||