Author Topic: [Scripts] Fireworks script for the 4th of july  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

crazytater94

  • Supreme Member
  • *****
  • Posts: 2645
  • Mastering TM since 2011
  • Awards Awarded to exemplary forum members 5 years on site Members who have unlocked the robotic avatar 3 years on site 2 years on site Was in the top 10 of the forum stats page as of 4/12/15 Former MotM winners Week 1 members w/25+ posts (4/13/13-4/20/13) 1 year on site
    • View Profile
    • Awards
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
[Scripts] Fireworks script for the 4th of july
« on: July 02, 2018, 03:12:20 AM »
Here is how to script a basic Blue firework: (There are also Fireworks modded into my new 2.0 Release of the Pokemon Leaf Green Mod, released today.)
(Substitute the color parameters for other values to create different colors [Red,Green,Blue] - [255,255,255] **Colora are marked with Asterisks**)
**NOTE: DO NOT ADD THE ASTERISKS IN YOUR SCRIPTS, OR THEY WILL NOT WORK.


// Sets your current XYZ as the spawn point for the fireworks.
var [xx] = [Pos:x]
var [yy] = [Pos:y]
var [zz] = [Pos:z]

// Sets your current XYZ as the spawn point for the fireworks. From here, we add 1 block forward, and 28 blocks up, since this is where the explosion happens.
var [xx1] = [Pos:x] + [1]
var [yy1] = [Pos:y] + [28]

// Create the jet, which launches the firework in the air.
ParticleEmitter [xx,yy,zz] [1] [.05] [3] [0,10,0] [.1,.1,.1,3] *[100,100,255]* [ 0] [12.56] [1] *[0,0,255]* [0,0,0] [0,0,0]

// Waits for the jet to finish, and adds a 1/2 second delay before the bang.
Wait [3500]

// Creates the big bang in the air.
// Here is where you may add a sound script, if you want to.
ParticleEmitter [xx,yy,zz] [1] [.0125] [3] [0,0,0] [.4,.4,.4,.25] *[0,0,255]* [2] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

ParticleEmitter [xx,yy,zz] [1] [.0125] [3] [0,0,0] [.4,.4,.4,.25] *[100,100,255]* [2] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

ParticleEmitter [xx,yy,zz] [1] [.0125] [3] [0,0,0] [.4,.4,.4,.25] *[200,200,255]* [2] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

// Adds a smaller, but wider set of particles the big bang in the air.
ParticleEmitter [xx,yy,zz] [3] [.00625] [5] [0,0,0] [.2,.2,.2,.5] *[0,0,255]* [1.5] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

// Adds an even smaller, but even wider set of particles the big bang in the air.
ParticleEmitter [xx,yy,zz] [5] [.00125] [5] [0,0,0] [.1,.1,.1,.5] *[200,200,255]* [1] [ 0] [3] *[255,255,255]* [9,9,9] [0,0,0]