Add all systems effects scripts

This commit is contained in:
2024-05-16 17:57:51 +02:00
parent b42df99b27
commit 0b286ac994
1282 changed files with 9990 additions and 384 deletions

View File

@ -0,0 +1,12 @@
// Imbibing this substance grants the user the Painless Creature Trait.
const hasColdBlooded = this.actor.has("Cold Blooded")
if (hasColdBlooded === undefined)
{
let item = await fromUuid("Compendium.wfrp4e-core.items.mCh1KK9jomwFZcLB")
let data = item.toObject()
this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id})
this.script.scriptMessage(`<p><strong>${this.actor.prototypeToken.name}</strong> has gained the Cold Blooded Creature Trait and may reverse any failed Willpower based Tests.</p>
<p>If they gain a Surprised Condition, this Condition is not lost the first time it should be (which is typically at the end of the Round or if they victim is attacked).</p>`,
{whisper: ChatMessage.getWhisperRecipients("GM"), blind: true })
}