-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
225 additions
and
8 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
57 changes: 57 additions & 0 deletions
57
packs_source/weaponfx.db/JetLancerExplosion.WjxNFb3JQBla9BBC.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
const {targetsMissed, targetTokens, sourceToken} = game.modules.get("lancer-weapon-fx").api.getMacroVariables(typeof messageId === "undefined" ? null : messageId, actor); | ||
|
||
let sequence = new Sequence(); | ||
|
||
new Sequence() | ||
.sound("modules/lancer-weapon-fx/soundfx/dramaticSparkles.ogg") | ||
.fadeInAudio(4000) | ||
.volume(0.3) | ||
.duration(5000) | ||
.effect("jb2a.static_electricity.03.blue") | ||
.atLocation(sourceToken) | ||
.scaleToObject(1) | ||
.duration(5000) | ||
.canvasPan() | ||
.atLocation(sourceToken) | ||
.duration(5000) | ||
.scale(1) | ||
.waitUntilFinished() | ||
.canvasPan() | ||
.atLocation(sourceToken) | ||
.duration(100) | ||
.scale(2) | ||
.sound("modules/lancer-weapon-fx/soundfx/jetlancerSound.ogg") | ||
.effect("modules/lancer-weapon-fx/video/jetlancer_explosion_1000.webm") | ||
.aboveInterface() | ||
.atLocation(sourceToken) | ||
.scale(1) | ||
.canvasPan() | ||
.shake({duration: 5000, strength: 10, rotation: false, fadeOutDuration: 500}) | ||
.thenDo(remainsAftermath) | ||
.waitUntilFinished() | ||
.effect("modules/lancer-weapon-fx/sprites/jetlancer_explosion_white_bg.png") | ||
.delay(3600) | ||
.aboveInterface() | ||
.atLocation(sourceToken) | ||
.duration(1700) | ||
.fadeOut(300) | ||
.play() | ||
|
||
function remainsAftermath() { | ||
console.log("AFTERMATH"); | ||
console.log(sourceToken); | ||
console.log(canvas) | ||
token.document.update({hidden: true}); | ||
canvas.scene.createEmbeddedDocuments("Tile", [{ | ||
texture: { src: "modules/lancer-weapon-fx/sprites/RETROGRADE-crater.png" }, | ||
x: token.document.x - canvas.dimensions.size, | ||
y: token.document.y - (canvas.dimensions.size + (canvas.dimensions.size / 2)), | ||
height: canvas.dimensions.size * (token.document.width + 2), | ||
width: canvas.dimensions.size * (token.document.width + 2), | ||
tint: "#464646" | ||
}]); | ||
} | ||
|
||
|
||
|
||
sequence.play(); |
8 changes: 8 additions & 0 deletions
8
packs_source/weaponfx.db/JetLancerExplosion.WjxNFb3JQBla9BBC.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_id": "WjxNFb3JQBla9BBC", | ||
"name": "JetLancerExplosion", | ||
"img": "modules/lancer-weapon-fx/icons/explosion-rays.png", | ||
"type": "script", | ||
"scope": "global", | ||
"author": "fpthefluffypawed" | ||
} |
78 changes: 78 additions & 0 deletions
78
packs_source/weaponfx.db/NuclearExplosionSFC.Nsmpx88frJTCU0Ax.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
new Sequence() | ||
.effect("modules/lancer-weapon-fx/sprites/jetlancer_explosion_white_bg.png") | ||
.fadeIn(100) | ||
.duration(6000) | ||
.fadeOut(3000) | ||
.screenSpace() | ||
.effect("modules/lancer-weapon-fx/sprites/shockwave.png") | ||
.atLocation(token) | ||
.duration(7000) | ||
.scale(0.2) | ||
.scaleOut(12, 7000) | ||
.fadeOut(7000) | ||
.delay(3000) | ||
.sound("modules/lancer-weapon-fx/soundfx/pw_nuke.ogg") | ||
.startTime(800) | ||
.delay(1000) | ||
.effect("modules/lancer-weapon-fx/video/pw_nuke_effect.webm") | ||
.delay(1000) | ||
.atLocation(token) | ||
.aboveLighting() | ||
.xray() | ||
.scale(1) | ||
.zIndex(100) | ||
.thenDo(remainsAftermath) | ||
/* | ||
CRATER EFFECT PERSISTENT AFTERWARDS: | ||
- Both following effects are entirely for the crater, remove | ||
- or comment it out as needed. Light included. | ||
*/ | ||
.effect("jb2a.ground_cracks.01.orange") | ||
.persist() | ||
.belowTokens() | ||
.aboveLighting() | ||
.zIndex(1) | ||
.xray() | ||
.randomRotation() | ||
.atLocation(token) | ||
.scale(2) | ||
.thenDo(createLight) | ||
.effect("modules/lancer-weapon-fx/sprites/scorch_mark_hires.png") | ||
.atLocation(token) | ||
.scale(2.2) | ||
.persist() | ||
.belowTokens() | ||
.zIndex(0) | ||
.randomRotation() | ||
.xray() | ||
.canvasPan() | ||
.delay(1000) | ||
.atLocation(token) | ||
.scale(0.5) | ||
.shake({ | ||
duration: 20000, | ||
strength: 15, | ||
fadeOutDuration: 10000, | ||
rotation: true | ||
}) | ||
.play() | ||
|
||
async function remainsAftermath() { | ||
console.log("AFTERMATH"); | ||
token.document.update({hidden: true}); | ||
} | ||
|
||
async function createLight() { | ||
await canvas.scene.createEmbeddedDocuments("AmbientLight", [{ | ||
x: token.document.x + (canvas.dimensions.size / 2), | ||
y: token.document.y + (canvas.dimensions.size / 2), | ||
config: { | ||
color: "#ff9117", | ||
dim: 10, | ||
bright: 5, | ||
animation: { | ||
type: "pulse", | ||
}, | ||
} | ||
}]); | ||
} |
8 changes: 8 additions & 0 deletions
8
packs_source/weaponfx.db/NuclearExplosionSFC.Nsmpx88frJTCU0Ax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_id": "Nsmpx88frJTCU0Ax", | ||
"name": "NuclearExplosionSFC", | ||
"img": "modules/lancer-weapon-fx/icons/mushroom-cloud.png", | ||
"type": "script", | ||
"scope": "global", | ||
"author": "LancerWeaponFX00" | ||
} |
55 changes: 55 additions & 0 deletions
55
packs_source/weaponfx.db/NuclearExplosionSpace.tzS44LYDm9vRB0HP.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
new Sequence() | ||
.effect("modules/lancer-weapon-fx/sprites/jetlancer_explosion_white_bg.png") | ||
.fadeIn(100) | ||
.duration(6000) | ||
.fadeOut(3000) | ||
.screenSpace() | ||
.effect("modules/lancer-weapon-fx/sprites/shockwave.png") | ||
.atLocation(token) | ||
.duration(7000) | ||
.scale(0.2) | ||
.scaleOut(12, 7000) | ||
.fadeOut(7000) | ||
.delay(3000) | ||
.sound("modules/lancer-weapon-fx/soundfx/pw_nuke.ogg") | ||
.startTime(800) | ||
.delay(1000) | ||
.effect("modules/lancer-weapon-fx/video/pw_nuke_effect.webm") | ||
.delay(1000) | ||
.atLocation(token) | ||
.aboveLighting() | ||
.xray() | ||
.scale(1) | ||
.zIndex(100) | ||
.thenDo(remainsAftermath) | ||
.canvasPan() | ||
.delay(1000) | ||
.atLocation(token) | ||
.scale(0.5) | ||
.shake({ | ||
duration: 20000, | ||
strength: 15, | ||
fadeOutDuration: 10000, | ||
rotation: true | ||
}) | ||
.play() | ||
|
||
async function remainsAftermath() { | ||
console.log("AFTERMATH"); | ||
token.document.update({hidden: true}); | ||
} | ||
|
||
async function createLight() { | ||
await canvas.scene.createEmbeddedDocuments("AmbientLight", [{ | ||
x: token.document.x + (canvas.dimensions.size / 2), | ||
y: token.document.y + (canvas.dimensions.size / 2), | ||
config: { | ||
color: "#ff9117", | ||
dim: 10, | ||
bright: 5, | ||
animation: { | ||
type: "pulse", | ||
}, | ||
} | ||
}]); | ||
} |
8 changes: 8 additions & 0 deletions
8
packs_source/weaponfx.db/NuclearExplosionSpace.tzS44LYDm9vRB0HP.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_id": "tzS44LYDm9vRB0HP", | ||
"name": "NuclearExplosionSpace", | ||
"img": "modules/lancer-weapon-fx/icons/mushroom-cloud.png", | ||
"type": "script", | ||
"scope": "global", | ||
"author": "LancerWeaponFX00" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.