This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:createeffect [2013/07/29 14:14] – created thepenguin | 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 8: | Line 7: | ||
| === Description === | === Description === | ||
| - | GetUnitAtrribute | + | CreateEffect |
| - | The constant must be one of the following commands: | + | * 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). | ||
| + | * ScaleX, ScaleY - Used to change the size of the effect. 1 is 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. | ||
| + | |||
| + | List of effects: | ||
| + | |||
| + | * 0: " | ||
| + | * 1: " | ||
| + | * 2: " | ||
| + | * 3: " | ||
| + | * 4: " | ||
| + | * 5: " | ||
| + | * 6: " | ||
| + | * 7: " | ||
| + | * 8: " | ||
| + | * 9: " | ||
| + | * 10: " | ||
| + | * 11: " | ||
| + | * 12: " | ||
| + | * 13: " | ||
| + | * 14: " | ||
| + | * 15: " | ||
| + | * 16: " | ||
| < | < | ||
| - | # Play an effect at the current coords | + | # 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) | ||
| - | </ | + | </ |
| + | < | ||
| + | |||
| + | === 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 \\ | {{: | ||