This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:createeffect [2014/02/06 17:05] – added effect 1 and CreateEffectClipped reference Grayzzur | 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 16: | Line 18: | ||
| List of effects: | List of effects: | ||
| - | * 0: radiation of yellow dots | + | * 0: " |
| - | * 1: mortar shell explosion | + | * 1: " |
| - | * 2: large explosion of white sparks | + | * 2: " |
| - | * 3: large explosion of blue sparks | + | * 3: " |
| - | * 4: large fiery explosion, with flying debris | + | * 4: " |
| - | * 5: large radiation of yellow dots, ending with a vibrating green circle | + | * 5: " |
| - | * 6: white explosion | + | * 6: " |
| - | * 7: fiery explosion | + | * 7: " |
| - | * 8: white implosion (like a unit that the player chose to destroy) | + | * 8: " |
| - | * 9: small black explosion (like a mortar shell going off) | + | * 9: " |
| - | * 10: blue electrical radation | + | * 10: " |
| - | * 11: dust cloud (like a unit landing from orbit) | + | * 11: " |
| - | * 12: long-lasting bright blue-white light | + | * 12: " |
| - | * 13: small black southwest-moving dot | + | * 13: " |
| - | * 14: orange static (like a glider being spawned) | + | * 14: " |
| - | * 15: small orange torch | + | * 15: " |
| - | * 16: long-lasting large bright blue-white vortex of light | + | * 16: " |
| < | < | ||
| # 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 \\ | {{: | ||