Scripts englisch statt französisch
This commit is contained in:
@@ -9,11 +9,11 @@ const target = canvas.scene.tokens.get(targetId);
|
||||
if (turns > 0) {
|
||||
this.effect.setFlag("wfrp4e", "turns", turns);
|
||||
|
||||
return this.script.message(`<p><b>${speaker.alias}</b> continue de s'enrouler autour <b>${target.name}</b>. Il pourra commencer à écraser dans ${turns} tours.</p>`);
|
||||
return this.script.scriptMessage(`<p><b>${speaker.alias}</b> continues wrapping itself around <b>${target.name}</b>. It will be able to start crushin in ${turns} turns.</p>`);
|
||||
}
|
||||
|
||||
if (this.actor.items.find(i => i.type === "extendedTest" && i.name === this.effect.name)) {
|
||||
this.script.message(`<p><b>${speaker.alias}</b> peut reprenre son écrasement <b>${target.name}</b> avec le Test Etendu.</p>`);
|
||||
this.script.scriptMessage(`<p><b>${speaker.alias}</b> can resume crushing <b>${target.name}</b> with the Extended Test.</p>`);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -42,13 +42,14 @@ const extendedTestData = {
|
||||
const extendedTests = await this.actor.createEmbeddedDocuments("Item", [extendedTestData], {fromEffect: this.effect.id});
|
||||
const extendedTest = extendedTests[0];
|
||||
|
||||
this.script.message(`<p><b>${speaker.alias}</b> a fini de s'enrouler autour de <b>${target.name}</b>. Il peut maintenant écraser via le Test Etendu @UUID[${extendedTest.uuid}].</p>`);
|
||||
this.script.scriptMessage(`<p><b>${speaker.alias}</b> finished wrapping itself around <b>${target.name}</b>. It can now begin crushing via the @UUID[${extendedTest.uuid}] Extended Test.</p>`);
|
||||
|
||||
let effect = {
|
||||
name: extendedTest.name,
|
||||
img: extendedTest.img,
|
||||
system: {
|
||||
transferData : {
|
||||
icon: extendedTest.img,
|
||||
flags: {
|
||||
wfrp4e: {
|
||||
applicationData: {
|
||||
type: "document",
|
||||
documentType: "Item"
|
||||
},
|
||||
@@ -61,12 +62,13 @@ let effect = {
|
||||
const speaker = ChatMessage.getSpeaker({actor: this.actor});
|
||||
const targetId = effect.getFlag("wfrp4e", "target");
|
||||
const target = canvas.scene.tokens.get(targetId);
|
||||
this.script.message(\`<p><b>${speaker.alias}</b> écrase <b>${target.name}</b>. Le bateau et broyé, réduit à une masse de déchets flottants.</p>\`);
|
||||
this.script.scriptMessage(\`<p><b>${speaker.alias}</b> crushed the <b>${target.name}</b>. Boat shatters, reduced to a mass of flotsam.</p>\`);
|
||||
await effect.delete();
|
||||
`,
|
||||
trigger: "deleteEffect"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user