From 0b286ac994b37b282576c7682ac6d97a6887aac0 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 16 May 2024 17:57:51 +0200 Subject: [PATCH] Add all systems effects scripts --- compendium/tracking.md | 3 +- compendium/wfrp4e-dotr.actors.json | 754 +++++++++++------- .../{000671.log => 000675.log} | 0 packs/aides-de-jeu-fr/CURRENT | 2 +- packs/aides-de-jeu-fr/LOG | 14 +- packs/aides-de-jeu-fr/LOG.old | 14 +- .../{MANIFEST-000669 => MANIFEST-000673} | Bin 180 -> 180 bytes .../{000673.log => 000677.log} | 0 packs/antidotes-and-remedes/CURRENT | 2 +- packs/antidotes-and-remedes/LOG | 14 +- packs/antidotes-and-remedes/LOG.old | 14 +- .../{MANIFEST-000671 => MANIFEST-000675} | Bin 178 -> 178 bytes packs/apothicarium/{000671.log => 000675.log} | 0 packs/apothicarium/CURRENT | 2 +- packs/apothicarium/LOG | 14 +- packs/apothicarium/LOG.old | 14 +- .../{MANIFEST-000669 => MANIFEST-000673} | Bin 180 -> 180 bytes packs/dons-de-rhya/{000671.log => 000675.log} | 0 packs/dons-de-rhya/CURRENT | 2 +- packs/dons-de-rhya/LOG | 14 +- packs/dons-de-rhya/LOG.old | 14 +- .../{MANIFEST-000669 => MANIFEST-000673} | Bin 180 -> 180 bytes .../{000671.log => 000675.log} | 0 packs/plats-dauberges/CURRENT | 2 +- packs/plats-dauberges/LOG | 14 +- packs/plats-dauberges/LOG.old | 14 +- .../{MANIFEST-000669 => MANIFEST-000673} | Bin 229 -> 229 bytes .../{000314.log => 000318.log} | 0 packs/tables-des-traductions/CURRENT | 2 +- packs/tables-des-traductions/LOG | 16 +- packs/tables-des-traductions/LOG.old | 16 +- packs/tables-des-traductions/MANIFEST-000312 | Bin 143 -> 0 bytes packs/tables-des-traductions/MANIFEST-000316 | Bin 0 -> 143 bytes scriptPacker.js | 24 + scripts/00ZCnahnTGvzG9KA.js | 2 + scripts/01VFjGVxkjb5P1ve.js | 1 + scripts/03mJu59V4iByWlsO.js | 25 + scripts/04bAiHISSW53w94Y.js | 1 + scripts/06IaVCOC0RCJbxEf.js | 4 + scripts/09sSpnW8z2zcVEdf.js | 5 + scripts/0BP5l7bIkf744G1k.js | 1 + scripts/0FNOq4J1AdPd2A0q.js | 1 + scripts/0FWto1oEr3jbWggw.js | 22 + scripts/0KG3HoTNoZhaINIj.js | 6 + scripts/0LCQtsiK2aUfYRmD.js | 1 + scripts/0R0QAr3D024kWPfo.js | 18 + scripts/0Uly7OmkH0zqYbxQ.js | 21 + scripts/0YKQGbsKdHSmYGE7.js | 9 + scripts/0abwNjpzo3SbEOeO.js | 6 + scripts/0e0UZT2FodOJDdgW.js | 3 + scripts/0e7OkamNAaAk4Oit.js | 10 + scripts/0iTLDgFHO9Rgc010.js | 1 + scripts/0mrUnxzufYgsR0Ph.js | 7 + scripts/0vaYwAlMWTmOBl8k.js | 7 + scripts/0yyofYHeDRQlFliO.js | 1 + scripts/11uCC0mK2uL783al.js | 6 + scripts/16nCOByUaSFDym1V.js | 1 + scripts/190PHSHKGaJ74wsR.js | 31 + scripts/1A87vGLh2PXH0rG0.js | 1 + scripts/1BT0MWM2cbhlEnrn.js | 40 + scripts/1E47r2ba6IGe8uFK.js | 1 + scripts/1IodsW9ImamYoEYz.js | 1 + scripts/1JwxZujbDcueLWBL.js | 2 + scripts/1LDm3OB32skZe6Xv.js | 1 + scripts/1MDOKny7IirJPoI6.js | 6 + scripts/1OpT3CXs07XFWWCT.js | 1 + scripts/1PQPxFjmRlulHHzo.js | 5 + scripts/1UalUmNzjB4rp3SZ.js | 1 + scripts/1ZArMNUI8qqH6zkX.js | 7 + scripts/1ZrzpfVwPJHdwp23.js | 1 + scripts/1exiWlVUHsXDLLAH.js | 1 + scripts/1fQr1Dg7DX0vfz3r.js | 3 + scripts/1kB2su7hLRYDhZ2H.js | 19 + scripts/1l7Jz2ZHbAWko7Vm.js | 1 + scripts/1mNkLj9JYNr3ofC6.js | 7 + scripts/1wEjrgff7ASxKVmy.js | 2 + scripts/1wKVvxRTHOyV4Qdv.js | 1 + scripts/1wrPvP6lJwIAfmsl.js | 10 + scripts/1yOvw74jzFfaI87b.js | 1 + scripts/22bW97lkvCqisfHX.js | 1 + scripts/23HgjCB1oecxANvA.js | 5 + scripts/23vWiHUjxtRQ3Efz.js | 4 + scripts/2AOo7KUyzMrgIlgM.js | 1 + scripts/2AdSBXw7IwCiqawQ.js | 1 + scripts/2Cw5j0iGAnFNegWr.js | 1 + scripts/2GYAd4OC888oQFBp.js | 1 + scripts/2NLINicPQWbuvp2n.js | 1 + scripts/2OqLHRqEBEjBm2LW.js | 1 + scripts/2Qi1hwLYhdE6v6Hs.js | 9 + scripts/2VNnVrtktdGUqXEV.js | 9 + scripts/2W9uMTT6iJhfQ044.js | 18 + scripts/2WBq5gW780C6zfCp.js | 9 + scripts/2WSN306tL4apjRtD.js | 4 + scripts/2cKarG9ToyW2ptCd.js | 10 + scripts/2hzDv8ROulOe1elK.js | 1 + scripts/2mFNelLOAQ6iJsZl.js | 4 + scripts/2miWWeRrEpq1beG4.js | 4 + scripts/2p9IK6Y5Z4NQD6FY.js | 1 + scripts/2rzxQlL7A9ujZ9uK.js | 6 + scripts/2sDH6RvoOAR40oqH.js | 20 + scripts/2vTVR0quRZQtjNfQ.js | 18 + scripts/2wk0yrRPlPsdqr3L.js | 3 + scripts/2yctEihGmdCfTTVx.js | 2 + scripts/2zeP2nMSURjxrqYz.js | 6 + scripts/33PWizq5F7pkKnQT.js | 4 + scripts/33US8YRgaMqYu2We.js | 1 + scripts/37UN17gb8suFeZIW.js | 1 + scripts/3Cn2TlRahlm5LkSj.js | 1 + scripts/3D5ImpMgpOTPucvv.js | 9 + scripts/3IGO7xEjRjat937X.js | 7 + scripts/3JEzEzF1SeYA9lsV.js | 44 + scripts/3LLiSgj6KGtgqcmo.js | 1 + scripts/3R6Y4NpNTqPc83wh.js | 3 + scripts/3TesBGh8HnlGuafu.js | 5 + scripts/3Vbe6gdW8N0bIvXJ.js | 5 + scripts/3aEzK0DehSHtVykd.js | 1 + scripts/3eSaX0BeaUalNkEP.js | 1 + scripts/3fdCQ3h3iVuhdDs9.js | 1 + scripts/3hfMQkUKYI4rCuBy.js | 1 + scripts/3jm0NoYpgB6ZuUSl.js | 1 + scripts/3l7MQSa10Kve2K3P.js | 2 + scripts/3plV9WFqs2prfAdp.js | 1 + scripts/3sfD1nedXLzuYoXJ.js | 4 + scripts/3tE8gFSl28EhCmo5.js | 2 + scripts/454x3Q95pLvZm0Kx.js | 1 + scripts/4FGKZk2f0xrmIDnp.js | 1 + scripts/4HN98hMdQJxM35pA.js | 4 + scripts/4JVIy5xtVwvadoqv.js | 1 + scripts/4MQ7u4INxp51oyyR.js | 85 ++ scripts/4QoxhoekgVeZcQA7.js | 3 + scripts/4XrAeL2DitxE8OaK.js | 3 + scripts/4cOZzUvu1nytcqNn.js | 1 + scripts/4fnTKgl0HW9ZrWyJ.js | 10 + scripts/4gkz3LR7CK1b8ulK.js | 1 + scripts/4iuTz0uInAfMaoGl.js | 1 + scripts/4pQW4WLyhjbZR85k.js | 7 + scripts/4rTmV3TNxctUe0ly.js | 6 + scripts/4rb7LfMq9CTnlrpn.js | 10 + scripts/4rhxLzau7jZ4SDxg.js | 2 + scripts/52kbfuWrOh6dsTtd.js | 2 + scripts/52mwb33mGrQjq89B.js | 1 + scripts/53HFDNuMnX1Aw1a4.js | 1 + scripts/58rFc9HiBoX66J6p.js | 9 + scripts/5DI6cHAg1LHo54Yv.js | 6 + scripts/5Fe1ELaS6Gnvy0Cj.js | 1 + scripts/5IoYTyedCMYwt3ys.js | 1 + scripts/5JWC0l3JEpOsqbR9.js | 85 ++ scripts/5JvKJZPcd6Hz5zvn.js | 85 ++ scripts/5LdJCKfQem1AQK24.js | 6 + scripts/5M6IgCUncCwyxHok.js | 35 + scripts/5MxRDXzUBPfp2KKD.js | 1 + scripts/5dR7Erj3nwsxLAV7.js | 85 ++ scripts/5lc1eHIYQNpSRWip.js | 8 + scripts/5o1XiceC4rutjMms.js | 1 + scripts/5sI9iYh5j2nx2XyT.js | 1 + scripts/62Ky6bC1EnTllSJA.js | 4 + scripts/65o8pQj6oGNnXce6.js | 2 + scripts/65xE9OV5sA1ZWT7j.js | 9 + scripts/6Aqq4F4Xui923sc6.js | 12 + scripts/6BmvV9c03FkfisnE.js | 20 + scripts/6EXkbVTRBhKTEu81.js | 5 + scripts/6Fe8M5MdklKS2olx.js | 1 + scripts/6H6vNjzvMGl2ZqCR.js | 2 + scripts/6JrUjs3g5x6bFnj3.js | 8 + scripts/6MSodMuZ5xk2JJJ9.js | 4 + scripts/6Mjy0jDqczA8BxhS.js | 1 + scripts/6QZUX7ZrFxOzqI0b.js | 9 + scripts/6U8xox4mBrn5eYIp.js | 2 + scripts/6V3qHON3mcerlBlB.js | 6 + scripts/6XWJWOUQPgKMsFul.js | 1 + scripts/6ZS1rQLkNvMDO0Fp.js | 11 + scripts/6elUNF58TaiYjxcx.js | 6 + scripts/6fElmBxTjdAaubbK.js | 6 + scripts/6hAgggYpNR3r4QWC.js | 5 + scripts/6jcTzK1XEuWqAacN.js | 2 + scripts/6kifXp2jXEaQVJsg.js | 21 + scripts/6mpw9cGseG4W4eyd.js | 12 + scripts/6qUKKep5vhFYmo1J.js | 1 + scripts/6tjn0RH4VyOPFneS.js | 1 + scripts/6uldpFvKOCoW92cC.js | 8 + scripts/6xTtJEhRc4OjcDTf.js | 5 + scripts/715G1Bf0haOHvmYQ.js | 1 + scripts/71DmrxCTKGYL4Z7X.js | 1 + scripts/7Ck0fkzE4WQ62qVe.js | 4 + scripts/7F3miqRA0ceMUBIu.js | 1 + scripts/7F6aGxZJjwxm5e5P.js | 18 + scripts/7H6wYyJ6cpaoc2QQ.js | 1 + scripts/7JW9t8AYSDkkzG2V.js | 21 + scripts/7OmrMjaU48o2FEZi.js | 6 + scripts/7ScfB4o1QhXnNUfq.js | 1 + scripts/7VAhXHov6pR1SkgD.js | 1 + scripts/7WR2hJjHPhHhHxAq.js | 8 + scripts/7ZoFUMDG2WJd8RMg.js | 1 + scripts/7e8FgQUF2oANANmx.js | 1 + scripts/7f6OsttTzE7Hvzfk.js | 5 + scripts/7n3SEAGRA5ESK8gV.js | 1 + scripts/7szLG4VALuuy1cPm.js | 6 + scripts/7wBWUw05q0igh508.js | 17 + scripts/84IB8CWa55XzoAkv.js | 1 + scripts/87rrZ3ojHrXa3lCn.js | 1 + scripts/8AoA4bnstBtglRGZ.js | 3 + scripts/8ByuHnUZ4RNTdGVv.js | 16 + scripts/8GyJgdHVBaLrHCY8.js | 21 + scripts/8K9tpCwvFC9INk5V.js | 8 + scripts/8LmUVQxOwTLSeabg.js | 1 + scripts/8N3Uqjq1ZxPxo4pk.js | 1 + scripts/8RNziYGGb4sp3BGQ.js | 5 + scripts/8ShLVT0bK1eQpinj.js | 4 + scripts/8TRiAJ8thIKE4IoL.js | 5 + scripts/8ThudCYRqkjQIwJH.js | 4 + scripts/8WJsecxdndaHRxxS.js | 1 + scripts/8WeYU5e5LN9UeWFs.js | 8 + scripts/8ZAUBSH9CM9OTpTL.js | 11 + scripts/8araLuwmBq8GKEw3.js | 7 + scripts/8fefDfiYKFOWdPER.js | 1 + scripts/8g2iitsgaJarKQpr.js | 3 + scripts/8gCja0mfKt4nYVZc.js | 1 + scripts/8hIyWDyfbgGAig65.js | 1 + scripts/8jvEVPUCg3rKG48Y.js | 3 + scripts/8noxHUQKR55Kx1YN.js | 1 + scripts/8oE0DTzz0krOfFlV.js | 2 + scripts/8rq4GL5d5nCn4kO7.js | 7 + scripts/8tyMXDfHR8AJBdDu.js | 7 + scripts/8vpAtJ93GIeye1qj.js | 1 + scripts/8wG9l4T9fc1bM0TN.js | 3 + scripts/8yBr6VbdKcrWUuqw.js | 4 + scripts/8zTkDVziBPaNbMQX.js | 30 + scripts/91S2GnBFYFbxmOCK.js | 2 + scripts/93K85NnVwjVNXlZq.js | 1 + scripts/956dUb5sd6OtbWZR.js | 1 + scripts/96Y1yIH1lRjTs5hL.js | 5 + scripts/98nKfcimlaPeM9h5.js | 2 + scripts/9A7rYY3FKi5XLihG.js | 6 + scripts/9EVj4bmZJex45Mt7.js | 1 + scripts/9JnPK1jNUEso7Pv8.js | 4 + scripts/9MDi3ok9gPwtbALf.js | 1 + scripts/9MwRUzRinhq1IjhG.js | 1 + scripts/9RFoasDcFnYZ1txR.js | 1 + scripts/9VfeubiCV83LN9iY.js | 4 + scripts/9WZa63lr0K3SsP4G.js | 7 + scripts/9Yn9uViEjcuaESJ2.js | 12 + scripts/9ZFPDCk8M2TQxh7x.js | 1 + scripts/9bJGJrLqslV5lBya.js | 1 + scripts/9eWR4mdaoCSQawDT.js | 4 + scripts/9fK07tqqZyPg7dpx.js | 12 + scripts/9nroaZDkW3WXNkB7.js | 2 + scripts/9ob2lPnk3PDot9Tx.js | 1 + scripts/9qWUuEF8F5nehF1y.js | 2 + scripts/A0OK0qAMmnf8iNJf.js | 8 + scripts/A1odAcuRbq9797ZB.js | 94 +++ scripts/A3MW0UksYrHGa0Qw.js | 1 + scripts/A3fvV69RS1lYgma0.js | 15 + scripts/A6DcKPzAGntzSCil.js | 5 + scripts/ACgKpKrEEHoNGG0h.js | 1 + scripts/ACtDCTLZXmd5uXjX.js | 15 + scripts/AGD7zCyV4zruvnWu.js | 1 + scripts/AHZ8f7dfN8jNsYk6.js | 22 + scripts/AI6bFrjWk4NH9FBd.js | 1 + scripts/ALuPRzf85dmkEfLo.js | 1 + scripts/AMI2wDJqsIZsoq1e.js | 4 + scripts/AMxezwtYnWCF6Oza.js | 1 + scripts/AS7CstSosuCrwZ19.js | 12 + scripts/AV2Kj6jgmIc45zKi.js | 1 + scripts/AVROqafFhKjN6TPR.js | 3 + scripts/AWgZnm9xLyIWCDnp.js | 9 + scripts/AZGXrZOQ4EzjxRL9.js | 1 + scripts/Adgs6Zs0FdefO6qx.js | 5 + scripts/Ah2wyywkL8hjJNXM.js | 1 + scripts/AjC4dsiuhVCOnRGI.js | 3 + scripts/AmOMCUaWLJ2iJAt5.js | 3 + scripts/AmpDbT0BkDHeaRzf.js | 4 + scripts/ApaLcUhuty3EzJoP.js | 6 + scripts/AqHLHp4kH6KULk3e.js | 12 + scripts/AyNb5sj6FD2Z3Q5T.js | 3 + scripts/AyS3iLljxHRKsHg4.js | 8 + scripts/B063u4vrbvzMaCQt.js | 1 + scripts/B1xgRS00RcTIZLnO.js | 1 + scripts/B6ZbY3bxTPg6nCng.js | 1 + scripts/B87v1twc65qyvUWi.js | 1 + scripts/B950b0XnIUYCdVwu.js | 11 + scripts/BAOv7moTxsKlT3JS.js | 6 + scripts/BD7bVTU2pVoRSRBe.js | 30 + scripts/BHbFqhJPzZI2txLs.js | 8 + scripts/BcXTujburrHpjpwa.js | 1 + scripts/Be5rdfnZorbILhpC.js | 4 + scripts/Bexspr5viPhHiFmU.js | 3 + scripts/Bj6bxItlgtI2sXVN.js | 5 + scripts/BtyFhdGMKiMamGhM.js | 15 + scripts/Bv3431tnG3VKaTJr.js | 4 + scripts/ByhEa1BxQOyrOmqg.js | 1 + scripts/BzDLuxBNw1QNIacg.js | 8 + scripts/CCK1iIfPmB398ziT.js | 2 + scripts/CCwuu3bPLCpVGAmb.js | 4 + scripts/CDASLC4fWKSGQKf9.js | 5 + scripts/CHnaBPHk6HdFS512.js | 6 + scripts/CIxZYkHggBQ6EsHP.js | 2 + scripts/CM43kvw5mIIE1OsB.js | 12 + scripts/CMUFtmNA1kkD1ay7.js | 12 + scripts/CPQoK7NjzOwVTFXS.js | 7 + scripts/CW5Vlr57OaMkKJ8Q.js | 12 + scripts/CWNGrg7se91RC95g.js | 11 + scripts/Ca1fXHTA1e2QLx0D.js | 1 + scripts/CiFeduksZJ6PRulx.js | 1 + scripts/Cjj4iLkdY1NaZRCi.js | 26 + scripts/CkE8NZOhzPkuRrKJ.js | 14 + scripts/CoImIH9OCMx9DfQZ.js | 4 + scripts/D5XmzrUGFa1JN0cl.js | 2 + scripts/DANLE5HxrkTNelhl.js | 1 + scripts/DBafsY1HrclJRTtA.js | 1 + scripts/DHxUKY9LMyifFgCi.js | 1 + scripts/DL9vYNft9aXdV2aW.js | 12 + scripts/DMQ0taEpBUJU5njV.js | 1 + scripts/DTiHS6RfwhF4THbf.js | 1 + scripts/DVlZGbiuMIHEQOnM.js | 10 + scripts/DWBxvzfWGcG7PVNP.js | 5 + scripts/DcSJNRBXE9ZBBY7T.js | 1 + scripts/DhZqJso1JWYtGrKk.js | 3 + scripts/DmbWR9s5I8LHBwxB.js | 14 + scripts/DpdSEHM6NMN1ey6h.js | 4 + scripts/DqJFo74trI916qXN.js | 3 + scripts/DsE6rTSzxEn6uWMz.js | 7 + scripts/DuM5l2Yb4bdvDeaG.js | 1 + scripts/DxQnamsb2AuW0p2e.js | 1 + scripts/DyZ1jH88EAp1ueOK.js | 5 + scripts/E1Xo4RVuN1YRRxg7.js | 1 + scripts/E1vUepgop09FF5wy.js | 22 + scripts/E2VfOVuju67qO3VL.js | 5 + scripts/E4CHDe1xfmcV3oGv.js | 1 + scripts/E6DMqfDeczqmVMFV.js | 3 + scripts/E7D4bxz8gy4e1wL7.js | 1 + scripts/EGWF3LHav3e2zFL4.js | 1 + scripts/EJObiSth3WdcJOXN.js | 5 + scripts/EJaBfqADqlo92Fx6.js | 4 + scripts/EKkdyp51Wf4csw2B.js | 1 + scripts/ENGmwaItRXO5s0XY.js | 5 + scripts/EQ5dtGW5kQhtAb87.js | 7 + scripts/ERxrWzSpw8qwxFVi.js | 1 + scripts/EU5j0hnDTG9Z6d1e.js | 6 + scripts/EVBSHEC5nmmj2X41.js | 1 + scripts/EYny6z5oTOhxGDfb.js | 1 + scripts/EaSNOmXUxAkUHnm5.js | 2 + scripts/Eay7GpDyfsEE40jT.js | 4 + scripts/EdTChmSouS0MSmk5.js | 10 + scripts/EiLaZW4b4ypw5sLV.js | 2 + scripts/EmXwcuycEH8slEn5.js | 6 + scripts/EmmG49pMOPHRwDzR.js | 8 + scripts/EpdMj9d9SYPeP44q.js | 1 + scripts/ErgOwSiVnm9VLVHN.js | 2 + scripts/Et4tPHlrkueLqP3T.js | 1 + scripts/Ew3C2WmLCtc1KT46.js | 1 + scripts/EwD053Fyy46b59ZI.js | 2 + scripts/Eye6dranWpNsILjm.js | 4 + scripts/F4aGsdzJ9SYcX57F.js | 10 + scripts/FAB12eLcSCAOOQwk.js | 1 + scripts/FAf4iXj5LkdvukS2.js | 1 + scripts/FMA16PvoObBV8vDl.js | 5 + scripts/FMSN5uRskkATexzB.js | 1 + scripts/FSqUqSByMiztYOQM.js | 2 + scripts/FUgCtIoj1Stgqxt7.js | 1 + scripts/FXuyiJoXdAh6WhRK.js | 1 + scripts/FXwfqF0jpXlBQ9Y3.js | 1 + scripts/FYUPfYyTYZkxRLFT.js | 1 + scripts/FZFOC7bip0oiWEzk.js | 5 + scripts/FciJSTq7dZsZIPgl.js | 10 + scripts/FfTqCPxCoxwGDTQs.js | 3 + scripts/FiD3mvWIBHNNIuO9.js | 8 + scripts/FkTwk8hfHpRLbAp2.js | 6 + scripts/FmLx9pwOkzqqU7Ph.js | 1 + scripts/FqevMs0ukQ9WuUHl.js | 9 + scripts/Fvlc4RkeF4dHjW3m.js | 16 + scripts/G1RletYc6BzigJrK.js | 2 + scripts/G7sFEnJlXZvfXL3V.js | 12 + scripts/GAO8AozttWOyRkta.js | 5 + scripts/GEfWIFBSrXt0ldBM.js | 2 + scripts/GFaTz8f6PBNWrlad.js | 3 + scripts/GFkVnx4m9OwYsKGH.js | 1 + scripts/GNl5Zk7BZ2jhRV1I.js | 4 + scripts/GOq4TcnWbfyfCo2V.js | 26 + scripts/GRfCxtYzmEx2LYU7.js | 9 + scripts/GTZUO73pUJKpM1JB.js | 3 + scripts/GUkpYdPwoC5pc9BT.js | 1 + scripts/GZFsuynUhgZqwTGo.js | 10 + scripts/GbPEy22VuCNzlNv2.js | 1 + scripts/Gc8S5TYlVdV8NnOT.js | 8 + scripts/GcIQtshex11AMmh2.js | 25 + scripts/Gh7OidY6UdpWBS1g.js | 3 + scripts/GjkxWj9wCAclM9WA.js | 17 + scripts/GrF6tQ08jgKmUH4i.js | 1 + scripts/GuUCErVbk5hrFzR3.js | 1 + scripts/GuxbvztcvzJz2oH1.js | 1 + scripts/GzSFlqL1YrIK1dxh.js | 16 + scripts/GzsuEg7gZy1f0ljy.js | 10 + scripts/H06Ysj7oPiemW7S6.js | 18 + scripts/H1z3nWW7Rj3Oisxy.js | 1 + scripts/H2CJvApKMnfGNNoo.js | 7 + scripts/H3Wls12aVWAWTp9J.js | 3 + scripts/H3pZ9UeIzIz3luKh.js | 5 + scripts/HASsi6wYHVALExWq.js | 14 + scripts/HJ2X4ZtXei0BXbxf.js | 19 + scripts/HKhyn0kijKfzW6cw.js | 3 + scripts/HMC6hPND9DWLFfZE.js | 43 + scripts/HOt2hHOiHDZ7oBgW.js | 4 + scripts/HX6CjNapYdC0VmQ8.js | 3 + scripts/HXJKkmpfxQUOnWOS.js | 4 + scripts/Hcpn1gU58DIKIhty.js | 4 + scripts/HfCxNd7mFGZH4s9Y.js | 13 + scripts/HiMBS6GeOwEydWYN.js | 1 + scripts/HmImVzvw6ecBy99l.js | 5 + scripts/HoNTnPphrJISSQr1.js | 1 + scripts/Hq1G30lhJYvtOSNb.js | 9 + scripts/HrOBAXsEX073ReKl.js | 18 + scripts/HrYchgkdZBiu1yPF.js | 1 + scripts/HwbgUIbpX0D8JLOR.js | 2 + scripts/I0Jo6cbNAJtXUloc.js | 2 + scripts/I0oRZ7AWde5KI5jw.js | 1 + scripts/I1J2m5uud84N50Lk.js | 6 + scripts/I7ieW0hNYvvX0KFg.js | 1 + scripts/I93i49wI9ZrDHT4n.js | 2 + scripts/I9QAPKbaXwMMMBT4.js | 17 + scripts/IAGla7HJlYN0wa4H.js | 8 + scripts/ID8mCcjkl7PCQhDq.js | 8 + scripts/IG4zYqtN9fRSYE7q.js | 1 + scripts/IKiZv9YSFmKmHo6a.js | 1 + scripts/ILqHxk7deotgI3KD.js | 10 + scripts/IPPDvZdE8kn3H9z7.js | 7 + scripts/IR5URcjnCuWBFMoN.js | 15 + scripts/IR86DuMbVdbGOJYt.js | 1 + scripts/IfEu1hO8sKEZBpvg.js | 14 + scripts/IkGegSuQwwVPhrjF.js | 4 + scripts/Ip8sctF9SIE1Z2vF.js | 4 + scripts/IpoOOjYJs6RmVrpb.js | 4 + scripts/IsLAvY9ikR1cOJWw.js | 1 + scripts/IslMfFgpgQq2brpu.js | 5 + scripts/IukS0clr1yAleacc.js | 3 + scripts/IupskvzvoGyD2H5o.js | 23 + scripts/IzZcsSngI8TZH4d8.js | 3 + scripts/J0IWUhxada2ONowP.js | 1 + scripts/J1FPDdrXGctKDTZz.js | 16 + scripts/J8aPichsl25t1QZ9.js | 1 + scripts/JEbs0WlqhKNDOo5A.js | 6 + scripts/JFgXyb6bKjZJLmF8.js | 1 + scripts/JQruHprM5R5vZ9DA.js | 10 + scripts/JZIn1dsKHFE3smJU.js | 2 + scripts/JaiC5P6nIgctOacH.js | 4 + scripts/JavuFNZ9Pj5elVLc.js | 4 + scripts/JeThJbOf6Xmbtgo1.js | 8 + scripts/JgCcgDVZX54slrWx.js | 1 + scripts/JibNjuQrJRnY0yf9.js | 1 + scripts/JjDzMnUxaWQePIYh.js | 1 + scripts/JjiPprLSlSmmB5Ga.js | 1 + scripts/Jjq3oPYbI26zjxME.js | 21 + scripts/Jk7OHqx06oCUVAzb.js | 1 + scripts/JmZQRvdWjm9ykYfn.js | 5 + scripts/Jnp5c09sPzDD61EK.js | 3 + scripts/JstrA46EYSEuRSy5.js | 2 + scripts/JwYZJGkZMSM2M3Si.js | 10 + scripts/JwgFQmPQtXWAP94i.js | 1 + scripts/JyTxUG5dNW670Sf7.js | 11 + scripts/K06v93N4FXb70mB7.js | 1 + scripts/KD4nCSdSXJVJmk0R.js | 2 + scripts/KF69WqF4PSEtpdb2.js | 2 + scripts/KG4TxnXiLLpfWOQO.js | 1 + scripts/KGK9vL1Yl0qmCeCN.js | 88 ++ scripts/KICZPwLvbUSxbDrE.js | 18 + scripts/KIoVBinAZK8sMOqD.js | 11 + scripts/KJLAan0glJlyOyqF.js | 11 + scripts/KPQfupKuaf4LCv4R.js | 2 + scripts/KQmb5B27eJ1lkbVL.js | 1 + scripts/KQzbrpb0T5a7it4k.js | 4 + scripts/KSjsDlsx3DD6cT16.js | 1 + scripts/KT670CjGBEprx2fO.js | 2 + scripts/KTBVDHUndI3qDOXM.js | 6 + scripts/KUx0deSF3xNzMucL.js | 1 + scripts/KVpDUEjHhd3nLa0f.js | 6 + scripts/KVuPduDztyMZQNt9.js | 1 + scripts/KXzDe7cN2vynHjJO.js | 3 + scripts/KkjkYAGI9Em1NgiQ.js | 19 + scripts/KmngDrPD72xn22kZ.js | 11 + scripts/KnwYZbeRSBA94hfl.js | 5 + scripts/KuUkUmOOLf05I4Bp.js | 1 + scripts/KuuWAhoSzk0rCxxw.js | 1 + scripts/KyUPYV1RXJxPOfyA.js | 6 + scripts/KyswmGj1uG3QS3ng.js | 1 + scripts/L1RMLvKtRPFtnczI.js | 3 + scripts/L2cdQppcPwxz24hN.js | 1 + scripts/L89UcafRHqUfxoux.js | 3 + scripts/L9eAtDyaoHvqryk4.js | 1 + scripts/LAyLbcC0lOPwZP3U.js | 1 + scripts/LHUUXfZVLBhWqRvb.js | 1 + scripts/LLqAT9wEUGMLfDhU.js | 1 + scripts/LOL2TGf8p8KxP14D.js | 2 + scripts/LQEWSN5KnHHATPsf.js | 4 + scripts/LXEUhHuXe8keEPI9.js | 7 + scripts/LeKLtvEDrWh4yHsx.js | 1 + scripts/LedRsrVo2f7lm3Ix.js | 1 + scripts/Lg1oRg4oNRvucsvi.js | 1 + scripts/LjXPlgdXBdllnA3i.js | 1 + scripts/LkPtgN9A36OI6Frh.js | 1 + scripts/LlRhPGorLl5qJCU8.js | 8 + scripts/Lm9IBkc918Duw3US.js | 6 + scripts/Lp261O9fgEXmgPf3.js | 5 + scripts/Lpv2N9LK9loeumiW.js | 6 + scripts/Lrb1S2aK7SFVD0C7.js | 9 + scripts/Lu27iXtJVkrJ8bOx.js | 1 + scripts/LxdLkPxH3SFvYrCJ.js | 4 + scripts/LyAK0dVDS5L09yq2.js | 9 + scripts/M0XhKnWjG14pk3iH.js | 1 + scripts/M2FshTX4PjKFVU8y.js | 9 + scripts/M5bh0heeafA2fQQ8.js | 8 + scripts/M9VgeYGiUO97ZUW4.js | 12 + scripts/MCK6WyjwYT28lsTN.js | 3 + scripts/MDLttXplnNthncGr.js | 1 + scripts/MFKhU9vp8bQpHP3I.js | 14 + scripts/MI2GgNi3fZtUCtQD.js | 1 + scripts/MJB6WbZSF6Briz30.js | 1 + scripts/MSJWJEUrX7ZmMvAD.js | 1 + scripts/McLR9YcgVUG3MooC.js | 1 + scripts/MfxWXZwaZUjGSBqw.js | 5 + scripts/MfxzwJz2o9ho2hOM.js | 1 + scripts/MgMMoC4Umpg7fmNI.js | 24 + scripts/MgTqCMRjxhezT73T.js | 1 + scripts/MgZreqq3Jua10c8s.js | 1 + scripts/Mhb67xufvA9uWO21.js | 8 + scripts/Mir4FMHQRdVqazAF.js | 13 + scripts/MkEcdViivk7abf1x.js | 1 + scripts/MnXny8SCh6OceJc9.js | 1 + scripts/MnqQkXVp20Lw84I1.js | 6 + scripts/Mp8UjuCLa9jdzhBS.js | 20 + scripts/Msygc7oQQPB5fw0b.js | 14 + scripts/MwUzyAgd0yPnmZCH.js | 4 + scripts/Myl1Ishu9GBraYUZ.js | 1 + scripts/N2MeOlf0GjPiRcSb.js | 2 + scripts/N7nGncsPrTz2ZbDA.js | 1 + scripts/N8hA6ysHCTlLd8Kj.js | 86 ++ scripts/N9kA46ZQ9LiRjy6T.js | 1 + scripts/NDvNGATDM2xPFJK0.js | 21 + scripts/NNytXz5XFPrEF6dw.js | 5 + scripts/NQSvFWhmBQAyx5Zz.js | 1 + scripts/Na7Nanl9YmxZlTo7.js | 1 + scripts/NdquQqyuOkGCj8Uo.js | 8 + scripts/NkqtQaLEGYst0PUO.js | 5 + scripts/NnA4zpuO6iUXKhH7.js | 7 + scripts/NnDq4miIPNEtZUWb.js | 7 + scripts/NrVFrIXM8GnIbojv.js | 1 + scripts/O7lXFZLrLdFaShGR.js | 1 + scripts/O9fc0hLHdkTgSuLg.js | 8 + scripts/OCFrGXAYfo9OYnhc.js | 1 + scripts/OEy2lxvic37dRBEt.js | 30 + scripts/OGX4BneaYAnV25TO.js | 40 + scripts/OJMgS8ZQv0j4tEFf.js | 1 + scripts/OMAUX1fnHyIpplul.js | 1 + scripts/OXoqtpOdfkURZbuL.js | 3 + scripts/Oa9FmLXRRZRpLrrq.js | 2 + scripts/OcQe0zfksf1DCJYe.js | 17 + scripts/OeCgX3hIsfLfmGvC.js | 6 + scripts/OeKeQAAcJhdI4Qky.js | 5 + scripts/Ofn6vDbP3fZ4UlSc.js | 2 + scripts/OgSI0Z6SHjYuqKIz.js | 16 + scripts/OicQSEVZBbqLtrcf.js | 4 + scripts/OnkEe4ISru1hjJWP.js | 1 + scripts/Op88kMtimSEWlY2h.js | 10 + scripts/OqLKL0PiCvYH2QxW.js | 13 + scripts/OqxeuZfZDfm9ax6h.js | 1 + scripts/OvIELZLvnlN2H2uw.js | 11 + scripts/OxsBnnVI3Smpknpb.js | 5 + scripts/Oz7pWF9mEc1pQypj.js | 3 + scripts/P29tT1eMMdAw3CPF.js | 12 + scripts/PBW6IZtwawNHxB6y.js | 1 + scripts/PI1QNaKFeqood6d7.js | 15 + scripts/PMISUsaEDBA7D3od.js | 33 + scripts/PVjaKAHTKDA0rA9J.js | 2 + scripts/PdClojv7yNgQpOUc.js | 1 + scripts/PeZYj8b0vedyJj00.js | 14 + scripts/Pg9C6nJX5QHIdqa9.js | 1 + scripts/Ph3TdQw1lGiFr049.js | 19 + scripts/PjRxGuUDKGmSmVDc.js | 5 + scripts/PmELrzD3RmF9qKkO.js | 9 + scripts/PoNnT5EqvLj2r5yf.js | 1 + scripts/PwqTmw7rsG8hzqCS.js | 10 + scripts/Q1trEhtqjIiDvFPF.js | 1 + scripts/Q4EQgP4gZR8TTm7S.js | 9 + scripts/Q68WiUWY7GxiXBbT.js | 5 + scripts/Q9EmlWmuDac83cJw.js | 1 + scripts/QF8LanKNoAlTkQG0.js | 1 + scripts/QKTA2TqZ77pvHWSJ.js | 9 + scripts/QKjR6P1WEHXf4K77.js | 1 + scripts/QPVVDPcJ4Xi5FmQl.js | 9 + scripts/QQ2gHThZHdO4yLLX.js | 1 + scripts/QQPiREc50HT5W2Tr.js | 2 + scripts/QRSACifDrvojIXHB.js | 11 + scripts/QaGNsqKm2Nf0zGVm.js | 1 + scripts/QbIYnshWeP1U8SUy.js | 2 + scripts/Qgn92fZyc3Psn8QJ.js | 10 + scripts/Qk7t2l5ep9RDVpgE.js | 1 + scripts/QoEOxRruQXYrZrv3.js | 17 + scripts/QqkE7rlqhkeRohFD.js | 1 + scripts/QqybHxNCzPEzG1Qh.js | 1 + scripts/QwHoqu2oO8QO8Mad.js | 3 + scripts/R32U01LBjBrK1pns.js | 33 + scripts/R5dOZWFxE2n6tooX.js | 1 + scripts/R6SnyF3y4Vsq6oga.js | 8 + scripts/R95pDZMHnD9iHAl8.js | 1 + scripts/RDtJXji3hgcKnEBk.js | 33 + scripts/RHyBLYT5oHf7EPnG.js | 21 + scripts/RI8crJxeD8JLDwMh.js | 1 + scripts/RJpglw5eVRM1f9t0.js | 1 + scripts/RKIFGN583PQnqHGk.js | 5 + scripts/RNHrSTfMLXm5sXkC.js | 1 + scripts/RNr9CwyvLhlnwD2h.js | 1 + scripts/ROXCqAFSTLouJniL.js | 7 + scripts/RSsGiDFibuqg3sHr.js | 15 + scripts/RZlMkxJz5apn0mUj.js | 1 + scripts/RprZWlnopSqZt7KZ.js | 1 + scripts/RqWnhnwFxaHubgiA.js | 3 + scripts/RrchOMpEdIvceJxl.js | 1 + scripts/RuW1PWUFxIbbSlIm.js | 1 + scripts/RvipIYj9H7n4UDMe.js | 84 ++ scripts/S1QihXuvdEVzeRtB.js | 40 + scripts/S3DCTw4yJ85eSaKp.js | 1 + scripts/S3Dev4hleOYqDNe9.js | 16 + scripts/S4793DLFhjMxpM8x.js | 1 + scripts/S6tUyFJvGMV19mvP.js | 1 + scripts/S95QqpX1cZyIVCPy.js | 5 + scripts/SGr50Hq1AHIEzIFN.js | 6 + scripts/SLy1Fs3oXcHgFgjK.js | 5 + scripts/SO4Aa9argKbuO9rQ.js | 1 + scripts/SPOkFWZWziZk5b7A.js | 1 + scripts/SRmfstEs278bP9Pz.js | 3 + scripts/SSqGxyN9hw0HDmED.js | 1 + scripts/SWIJjM2RCmzfr64u.js | 6 + scripts/SrCHfOJFZwDickqa.js | 6 + scripts/StAderQaQQsxb6Rv.js | 10 + scripts/SvFKt9hMcFQjeILA.js | 1 + scripts/T5fiTzhXEQAv9Drf.js | 20 + scripts/T74FEjfFrh3f6MKv.js | 1 + scripts/TAw9vXnfyIAl5DGs.js | 11 + scripts/TBpNFRL5uehs0fze.js | 10 + scripts/TEiNj5FgkoD3YbhS.js | 1 + scripts/TGN070HeJLl3gSMY.js | 6 + scripts/TNWmIkuubqBn38he.js | 1 + scripts/TOyQLrugFGzwc5nY.js | 1 + scripts/TQRL4mZhZohXg1Au.js | 2 + scripts/TU2xjbJ0zFtytF3J.js | 1 + scripts/TY0xSQ00XXyEr49r.js | 1 + scripts/TcqumwUFAL6V0cty.js | 11 + scripts/TdjlJro0RRVSh8g8.js | 1 + scripts/TmaS8o33825QUMrx.js | 3 + scripts/TnFobCxG4pxlYmKr.js | 16 + scripts/ToKlHDAjJOsC51ag.js | 11 + scripts/TpZItJ5Ugbazaobd.js | 15 + scripts/Tq45Nd8J3eTvHT41.js | 1 + scripts/TrIYdcG3jDER4WgY.js | 4 + scripts/TwgdEucxcHloc4cX.js | 135 ++++ scripts/TwwKxFjK6TNGKbRB.js | 8 + scripts/TxfmxDGBj04AQQpt.js | 11 + scripts/TzgmYRXFXRspIo1i.js | 1 + scripts/U1RUcgP8LD2qeGTm.js | 1 + scripts/U1UpSRJOSjPpO4HS.js | 4 + scripts/U26XMie3Kjoddisj.js | 10 + scripts/U2xKn7R1gm8kiQm8.js | 4 + scripts/U4A8FDNmwBGTuQZO.js | 5 + scripts/U5ndCwcJ1s3Ns26w.js | 3 + scripts/U78c4oUjKwyUu6jT.js | 1 + scripts/U9xh2wriSqCosugW.js | 13 + scripts/UC6G3pFQwzUhrw6F.js | 1 + scripts/UH5MIzqi2MvEqTwj.js | 7 + scripts/ULmZMLezDamerN04.js | 32 + scripts/UTlgF4azrGQZsoDv.js | 2 + scripts/UWrzokgabRKUpnkG.js | 1 + scripts/UYLXm2W6jVn21Age.js | 1 + scripts/UaImulhbPURkLJg2.js | 1 + scripts/UgQW0UMPOZ0jwfVJ.js | 5 + scripts/Um6xMMiUftLXJxEt.js | 1 + scripts/UnqnWi0dZYLf5fTT.js | 133 +++ scripts/UsAHQecRlWL5PhP6.js | 8 + scripts/UsuwsmU1TUQLQVM2.js | 2 + scripts/UvycHOjSPm5Zv9KJ.js | 10 + scripts/UwjkHRAQHESdYXJs.js | 11 + scripts/Ux4buMc7llF1Kg8p.js | 4 + scripts/V1D2Uo3WDKYQePU3.js | 14 + scripts/V2lsVTi6q28eL5jl.js | 1 + scripts/V7qmFwUMCY2tfziH.js | 1 + scripts/V9wD9FWHWxZUOGSI.js | 15 + scripts/V9xm4X1x3lPYTQaI.js | 6 + scripts/V9zm2hKUVLVZtAcN.js | 133 +++ scripts/VAPsww9x3HAw1sKP.js | 1 + scripts/VAs1nXvicdQK18Do.js | 1 + scripts/VKpKq4RSbI1KkUQK.js | 1 + scripts/VNOKTzCrFbZ6PJUj.js | 1 + scripts/VQaC6ynouW5EQCbC.js | 13 + scripts/Vb7rgl8T4VRswbnZ.js | 1 + scripts/VbL0TgaBAmYjrezZ.js | 2 + scripts/Vkuu70BZV4DPYO2Q.js | 1 + scripts/VlFUDaKUYoBYKYn0.js | 7 + scripts/VqTrKPtxv9hpn0Hr.js | 1 + scripts/VuE1mhrB6X6MYTzg.js | 1 + scripts/VurA2XNqC0d9U49C.js | 8 + scripts/VzO0ZDcTWvaBn4vm.js | 13 + scripts/VzgTGb5QXKoyPNh3.js | 14 + scripts/W9nyUNQStMr1pUHJ.js | 5 + scripts/WB6sIpLEPC8YPX67.js | 6 + scripts/WKXyVHQwQCNTfSKv.js | 4 + scripts/WO5n7Vbx8AgoVrwC.js | 84 ++ scripts/WPQbVpD1uwSLAXq1.js | 4 + scripts/WRe1eGmGVGejPcS8.js | 2 + scripts/WTRYAEzwxRuGENyI.js | 18 + scripts/WY3DajPRGcMNt158.js | 2 + scripts/WiYtNU2Y5BJfIpeM.js | 15 + scripts/WnWA0e0bgqBsZp2L.js | 1 + scripts/Wo4wQKUxSItAhRzZ.js | 8 + scripts/WwxXgsNxlccmqTze.js | 1 + scripts/WzMmwjZbhyCbHxyZ.js | 2 + scripts/X3bLbOfcJAftOMa7.js | 1 + scripts/X7ikFOGKYzTMr4d1.js | 1 + scripts/XClTZOjuhcxWLF51.js | 13 + scripts/XO9m2AvFRAAeEuty.js | 5 + scripts/XPxAKqPpPYE4E6B5.js | 1 + scripts/XRrGBbplNLZpXnCH.js | 53 ++ scripts/XXnzUdsIYQ9Wjyu0.js | 1 + scripts/XYaYeiVkc5GKYTjC.js | 1 + scripts/XcvDYNZgJ2rpAdDV.js | 7 + scripts/Xe8ijqWU3bbtq7ZY.js | 5 + scripts/Xf4FcZ4ZLdWmOXBa.js | 1 + scripts/XfRvVBTVIuAm8RaZ.js | 1 + scripts/Xg4qHLsyXGuUZfT8.js | 1 + scripts/Xk9XPklxxTvFlwpI.js | 1 + scripts/XthZ3GCC3WhsEI2g.js | 11 + scripts/Xu5cED1MhT4ba7da.js | 1 + scripts/XuFxKPYheYF4WMmQ.js | 1 + scripts/Y6ppJBerpM3TtSic.js | 2 + scripts/Y7McxsHFeGhwQx0J.js | 11 + scripts/Y8J66v8VTKUASGuK.js | 16 + scripts/YDqpKJVy8ijEKdLX.js | 1 + scripts/YEBw2CzHYxsTpTy5.js | 1 + scripts/YFSgWRXel0bWE3EE.js | 1 + scripts/YHEIkBKWXKNPqglh.js | 4 + scripts/YMaxpXnml01bLGpO.js | 1 + scripts/YOKoZFlBEpFavfOS.js | 1 + scripts/YQ2LnLxp0xgy3meI.js | 3 + scripts/YRUTliBzAQvncGNX.js | 2 + scripts/YaKnYEbmmZZtByJc.js | 5 + scripts/Yf2MmOzazzMdmoPU.js | 12 + scripts/YhhiWEQbox3WZA3Q.js | 1 + scripts/YjAIsFlxKTJvYs60.js | 1 + scripts/YjJcRdytVRm88qLn.js | 1 + scripts/YsS2RZsl2ZsqjhWV.js | 1 + scripts/YwLEw4BiKq4EMy57.js | 19 + scripts/YyKU2rIRmFSCqSlW.js | 6 + scripts/Z1zriXibT0mAmdhb.js | 6 + scripts/Z30zYayPryXOjT5N.js | 1 + scripts/Z4WrrlVGpPY4iUbG.js | 1 + scripts/Z52yZDm6lP6fOP3O.js | 6 + scripts/Z6OmmC0irJzxSnMH.js | 59 ++ scripts/Z6jNlyZMECkW4Hon.js | 13 + scripts/ZCkYe5XMVY1RWMXG.js | 1 + scripts/ZCrfdLPOxiNDCDSg.js | 1 + scripts/ZCuOjLAeENKN1Q4L.js | 15 + scripts/ZEXhYJqqxF6QAixX.js | 1 + scripts/ZEdDcBka21rnMuz5.js | 19 + scripts/ZGlJnrIemqul24j7.js | 8 + scripts/ZI2YnAAGoLpmVDIL.js | 4 + scripts/ZJy2rvpKmUHXGrAi.js | 1 + scripts/ZMwJad6v4G13SgjR.js | 1 + scripts/ZNW3ubbKIYXAyE48.js | 29 + scripts/ZNu4B0OdjkM9lmtu.js | 4 + scripts/ZTE8LdRblyG4yYoE.js | 8 + scripts/ZYsMgB4BwXBJcpYf.js | 3 + scripts/ZbuW8y7t9Y8oUFWq.js | 1 + scripts/ZdHvGvSJBsIuPphF.js | 1 + scripts/Ze9E2zR1GFGWGMVH.js | 1 + scripts/ZhuitY1KOU1Xe7cP.js | 1 + scripts/ZqTW093qENOwGONP.js | 10 + scripts/ZrePyV2spv3v65Tg.js | 1 + scripts/ZsQR3AVKi0v5U593.js | 1 + scripts/ZvbBM4gTJHPdU8jU.js | 3 + scripts/Zxh4RAENoaAQAaNg.js | 1 + scripts/ZxtOdwsM2Sqj9Zam.js | 5 + scripts/a02tlRCXpaoaDjSN.js | 16 + scripts/a0YU3whUm16wGBNu.js | 7 + scripts/a4Aza4a9v8JMU8dC.js | 2 + scripts/a6gacHsvgwtsIFSQ.js | 2 + scripts/a7pEvCycVnFBXGAQ.js | 7 + scripts/a8RabrnJ08O07rDX.js | 5 + scripts/a8i0sA1RBnD8nHZt.js | 42 + scripts/aAvJrAKLzXhS9qN6.js | 1 + scripts/aCVtaW8ag1WibcAr.js | 2 + scripts/aIYUsBIDKWJ3CEtj.js | 1 + scripts/aMHGjWyn6BXCI4pw.js | 2 + scripts/abLWYtNTu1UVDQAs.js | 5 + scripts/abVIvJBzuskNzCQv.js | 8 + scripts/afdmOvPGMpEdZvCb.js | 1 + scripts/agsm3NI1NDtHRG4y.js | 1 + scripts/ahbA7o5G9dzMFl76.js | 2 + scripts/alJgj25l3239h2SW.js | 3 + scripts/ayIbw2Vw2t9xg33P.js | 2 + scripts/b1zMefdoZYtzCm7i.js | 1 + scripts/b2Kb4IuD22RhKhR0.js | 10 + scripts/b2WaqRna5CFXmbDG.js | 1 + scripts/b5DfAWtpV1x2R8If.js | 1 + scripts/b5prg1FLjCAvBjLy.js | 13 + scripts/bBdXzBmxgFFBwMMS.js | 9 + scripts/bEVlJOOA1kLlzpWx.js | 86 ++ scripts/bLkt8VpTTPoTxW0W.js | 5 + scripts/bMEFHPCei2evnZZw.js | 14 + scripts/bQyVajMN1ETwlzvM.js | 9 + scripts/bRtZH0xRh8dgqMeW.js | 5 + scripts/bWr8leucbWslBCYG.js | 1 + scripts/bhXUW7IJtEaUGAoV.js | 7 + scripts/brNRqfpPqD2Ki0cM.js | 1 + scripts/btPrQkGRKUkhNe3N.js | 1 + scripts/bwtQOSWn120NICkf.js | 8 + scripts/bwx9wuEOJPF7btD1.js | 1 + scripts/bzaoWcieMFaU5B5l.js | 1 + scripts/c31hjp7k0hlpdGBC.js | 3 + scripts/c3KA1knL2NYNUEww.js | 1 + scripts/cAioHYtlxuOCwRLh.js | 2 + scripts/cApfxL7Ic0NKdoSr.js | 3 + scripts/cBSy9CR5NZvcLRg8.js | 5 + scripts/cDBhmHn5kjgWBAlT.js | 3 + scripts/cEg09bnvZD6Ysnpc.js | 4 + scripts/cJFDnq1HI4gXWcJo.js | 8 + scripts/cK1Jysfu5IMUUH0C.js | 11 + scripts/cOuukVo8WakDZIUj.js | 1 + scripts/cUFCL02JoaZObRcX.js | 4 + scripts/cUnbADgOQ4fMKgrH.js | 20 + scripts/cV9JiAgUPOeUHKnS.js | 5 + scripts/cYPIXzl86a3LFsTE.js | 6 + scripts/cgmA2N0MkjA7qIZy.js | 1 + scripts/ch5SD2XOQfcYo0X5.js | 10 + scripts/chUpiI3el8IO8MSs.js | 6 + scripts/csLKDJKZaUK9vwLT.js | 4 + scripts/ct6WGaRMfrcnHhyv.js | 4 + scripts/cuqCtQsfLBBAGjnu.js | 1 + scripts/cysQDjlDzT8HdNeo.js | 1 + scripts/d29mu8vRt9AQUm0L.js | 7 + scripts/d6mVm08o8SeklAcW.js | 1 + scripts/d9iU08yvqcffF026.js | 1 + scripts/dAMtbn3uQwF8KpKU.js | 1 + scripts/dIxYt421K010eogY.js | 8 + scripts/dM449AU0FQRnOc3l.js | 4 + scripts/dM8FbRH2V8CpOkXw.js | 4 + scripts/dSmRhZ6o1bUcOSF9.js | 1 + scripts/dXGosSxdoYbET2O8.js | 11 + scripts/dZ4c5pKDqQV02aIK.js | 4 + scripts/dbOSvpgcPjsc2uvq.js | 7 + scripts/dbYjr4oG67Z880To.js | 4 + scripts/dcwY8dCd3PNCEzk6.js | 5 + scripts/dfEgat3jz4EtWszH.js | 1 + scripts/dfnCK8jCPXNLM7Gh.js | 12 + scripts/dk02qSJfJaIo3Geh.js | 4 + scripts/dkY7WRYjFVh8GB0m.js | 1 + scripts/dkiNmwFXztIVbuxg.js | 8 + scripts/dqvHDMlcitLx1pUx.js | 1 + scripts/dt85W8pzZ09w1QLi.js | 4 + scripts/dtFvpY96RPzNnphq.js | 1 + scripts/dwSgcFxKN3S0hLJL.js | 1 + scripts/e0TuMgYuI7ZtGoQr.js | 4 + scripts/e34s1XxHckAWfwHt.js | 4 + scripts/e7IxnxePdXSy6L4E.js | 4 + scripts/eAtqyBd1HsDWuBuI.js | 1 + scripts/eHRv7f2BTtle6Y1K.js | 3 + scripts/eHgk3HZ6eyLFTZ9o.js | 1 + scripts/ePPgxQOqL1Uhz2k9.js | 90 +++ scripts/eWWLmA2xINR321aK.js | 1 + scripts/eb69QPmNQEJXtk4l.js | 1 + scripts/ebDQH0MdGAG02CHl.js | 14 + scripts/ed7Sud9HM3uB2j6b.js | 7 + scripts/egDtqMxe3iekc6hv.js | 6 + scripts/eh1J3s0s4A2AxoFp.js | 4 + scripts/ekjJQHyMbZT2vqdc.js | 9 + scripts/eqxE7nBO13yJS7hc.js | 6 + scripts/esuLwq4g5T8k1kLT.js | 1 + scripts/ezGqDoC9hNRBnFTB.js | 17 + scripts/f062aa2BNClx08D6.js | 16 + scripts/f3rXusHh6VIpVPUl.js | 1 + scripts/f4vvAGQ8OGoEbrgy.js | 16 + scripts/f5Mp3kXwCFdPkW6N.js | 1 + scripts/f6WnrJvoNkfoNN9Y.js | 1 + scripts/f7WZvYle9iqefRsh.js | 1 + scripts/f8cnfvGKJH3bYVGN.js | 1 + scripts/fEFfHFeJxkR0aIJK.js | 5 + scripts/fEyKQqCjDwml3DXO.js | 2 + scripts/fFGuTi0HLjwneMcJ.js | 1 + scripts/fIUxKZMWJ8HMPmH9.js | 1 + scripts/fKzlu6fFE2th9uIJ.js | 1 + scripts/fP2edYbj6QjPPAjL.js | 1 + scripts/fPKYkBllp7Et62lX.js | 4 + scripts/fY0TsQwnU14fdPl2.js | 1 + scripts/fYLSe6CrYciap5y8.js | 84 ++ scripts/faRFSsrQylQRZFLk.js | 1 + scripts/fcY3pa72dELnOFXV.js | 1 + scripts/feMPZhhFeXRtKdKY.js | 10 + scripts/ffvcCEazZBinHlUX.js | 1 + scripts/fiF9sM5UpcHMYa33.js | 4 + scripts/fkFmNcesqqNTMhVn.js | 4 + scripts/fl762icfKrt9ear2.js | 1 + scripts/ft0LaRWZT5WtnptP.js | 13 + scripts/fve7tiyF5X9B7mHJ.js | 1 + scripts/fzTB7t3x4bLmAXji.js | 5 + scripts/g07HI7vyqiFXPB0o.js | 29 + scripts/g0SzfsLyW7aD2F19.js | 13 + scripts/g1L8OYO9nCOhdKGL.js | 16 + scripts/g4t56A09yrpZaJQ2.js | 23 + scripts/gFUXBbTskQBKjxqm.js | 8 + scripts/gKIPujyuFSn0No9v.js | 5 + scripts/gKPL3t4vlZAsvtGr.js | 1 + scripts/gL0ftUnK5TNXBRRt.js | 1 + scripts/gPQrszvIgGlW9yM4.js | 2 + scripts/gVpFUka7qfGiEC1v.js | 1 + scripts/ga6bQzPuoIiQQrKg.js | 11 + scripts/gbhxWXboV9CytWNU.js | 1 + scripts/gh2KS1prBKcsSK6M.js | 2 + scripts/gnVpxOeBZpNF4HIF.js | 4 + scripts/gpPaCe6yER79l4u8.js | 2 + scripts/gpuBg3y9rocJL7yT.js | 1 + scripts/gqZLfIr6svrtdwdC.js | 1 + scripts/gsCnd3mf1vXFU2ei.js | 1 + scripts/gu72JaTs9GrSiVTd.js | 1 + scripts/h0DfPwUUOBjyAHMZ.js | 1 + scripts/h1XKoMuVnS0bagRO.js | 1 + scripts/h766UvswLCsxcMow.js | 133 +++ scripts/hA8PzeiCsHqqlUZm.js | 2 + scripts/hCzxUyO6mjLNIpaM.js | 7 + scripts/hDC6lroDEPVBituR.js | 12 + scripts/hK0YMJfYbpbJZizO.js | 12 + scripts/hObTbWi4ZdwXimIW.js | 4 + scripts/hR1qD2kpFHF8JT8h.js | 1 + scripts/hSlEY2oh8quVmdXR.js | 4 + scripts/hZAax4emLahEEqcZ.js | 5 + scripts/hfO4INH3EeETDTFt.js | 1 + scripts/hhCs5VBKx50S5IsY.js | 1 + scripts/hhv7PrRdlf9sfC82.js | 84 ++ scripts/hlHKeFWrOA8CsLr9.js | 2 + scripts/hluehsCuBZYc1Ejt.js | 1 + scripts/hmk8zV1LTElHUI8A.js | 8 + scripts/hnsmzvcuiUYB065I.js | 1 + scripts/hpwJRAhCsXTp9bd9.js | 115 +++ scripts/hwHpIunCq3ifk2QU.js | 8 + scripts/hwOZxgt7e65iWvYz.js | 8 + scripts/hxmwtw5zAHyS2upG.js | 1 + scripts/i59IpmZNLJEPWZ3L.js | 1 + scripts/i5AN97A7IOeygEFA.js | 7 + scripts/i7xl0jNpLnBT2h2l.js | 1 + scripts/iAo3wxMLA64rsKjj.js | 1 + scripts/iBEPQ3NwtI9DfkEy.js | 14 + scripts/iHn3YzvqNfbwzjZz.js | 6 + scripts/iLpq4yCFN6YACrYA.js | 4 + scripts/iM4B3IZ4VtpZsl09.js | 1 + scripts/iM6JLF8jDXMViReZ.js | 1 + scripts/iMDZLr7ueJWBnilj.js | 1 + scripts/iMu8BZ7eHMAbPEO1.js | 5 + scripts/iNAQJa5HyaEckknX.js | 18 + scripts/iT0h3VZLEBQnn5Bx.js | 1 + scripts/iT3C15fMyQrj1RmG.js | 8 + scripts/iVhi3Z6zPaf1bf8g.js | 1 + scripts/iX0ctHYHg12pjaCU.js | 15 + scripts/id9ZdkERMZnZTWXt.js | 7 + scripts/igVAVU7DOuzhNG14.js | 1 + scripts/imKVsCy8rya2gkwO.js | 18 + scripts/inPxRSx0CDj1nwAm.js | 4 + scripts/ioeTj5mx8jlA5EX5.js | 1 + scripts/ipkkRffJh61WE7zR.js | 5 + scripts/iuSoKntfJ4eAPafQ.js | 8 + scripts/iuYuf05BNuZ5fllI.js | 4 + scripts/j1AmrY1SxFJQyapo.js | 4 + scripts/j3zDMWkns32Yrxn3.js | 1 + scripts/j6Bf1iivH8cqSnnK.js | 2 + scripts/j98hvy6r9G2Vjmid.js | 12 + scripts/jC8o5PbnqEvOoZ9N.js | 1 + scripts/jFwema0iwzBphxie.js | 9 + scripts/jGDk7avWFSnyFoql.js | 9 + scripts/jHgxpe6TJDlP3oTn.js | 9 + scripts/jLsL4KRI6LEG9Ii2.js | 5 + scripts/jObJanFoev4N6ZRv.js | 2 + scripts/jRSgPhpfN7MH7TTp.js | 16 + scripts/jW87rmQLtROdVEhW.js | 5 + scripts/jWkfoVpHLiRaHTza.js | 4 + scripts/jYJRO5XPyG7y6fih.js | 3 + scripts/jbZPLb4wuqJpHLUx.js | 1 + scripts/jdS2u1tQPYeO55WI.js | 61 ++ scripts/jfk5VDKMTIf4ee0v.js | 2 + scripts/jgO1Kf60Ctt6R0qO.js | 1 + scripts/jmxlpyLrIuoxQtvU.js | 1 + scripts/jpcU8FFWSlQ3gD0L.js | 1 + scripts/jrvj7bRyMBB9LixP.js | 1 + scripts/jsgLEVYvMieyYT6L.js | 18 + scripts/k3FqFgsF6a3TkxAD.js | 3 + scripts/k8TC0yzp4xfOXD2n.js | 10 + scripts/k9SvH4Lm3ZuI8S1N.js | 1 + scripts/kBXVEnSWzaQZLkJH.js | 5 + scripts/kIM4Fs1lFVV7TSnj.js | 1 + scripts/kMSdRskYDI2J1gnp.js | 7 + scripts/kWynO1lQzjiSs8RK.js | 1 + scripts/kYiDBPRKIokFkr4Z.js | 4 + scripts/kYmscP2HuXjDovBD.js | 1 + scripts/kiJ6AiaYVUjt6aV6.js | 7 + scripts/kkC5EhqA05U6U0gU.js | 17 + scripts/kmsGLWGxCY8Z8jVG.js | 1 + scripts/kvaN100w0nBUlLbj.js | 6 + scripts/l8qFKSnMpy4P7XQR.js | 1 + scripts/lCOdnKz8XpnkDs6Q.js | 2 + scripts/lFO6XdfUODmFArqx.js | 1 + scripts/lII4KMRblqwFBlsV.js | 133 +++ scripts/lOzkngzye4RmvALp.js | 3 + scripts/lPudo1grrVp05i7a.js | 11 + scripts/lQJ68n3y1xDyNicE.js | 1 + scripts/lSOAZ4FG44bT4jh1.js | 7 + scripts/lU4s3UTtBkU38djI.js | 4 + scripts/lYYkGzqNshiYc7WI.js | 6 + scripts/laptAldsT0Fm1rDt.js | 6 + scripts/lhemR8EP5tGNKout.js | 14 + scripts/ljpM7muMyxGD04EX.js | 3 + scripts/lol5J6h0pErzM71s.js | 1 + scripts/lvjcddwRiN9iGruy.js | 38 + scripts/lwVhn4bSXJ3eoT9q.js | 8 + scripts/m3qEVO5fseV6KHXa.js | 4 + scripts/m58MpMZBblpq5LJu.js | 2 + scripts/m8qBlbH7ROoqa22o.js | 1 + scripts/mBcLf11upaHS8AQq.js | 1 + scripts/mJ9eMPub4epJSf00.js | 1 + scripts/mPxmCsXYirAIT913.js | 3 + scripts/mRvLsSVxNyt8LVZb.js | 4 + scripts/mTnmPcjWmvScIBWY.js | 1 + scripts/mV4Tmc0yfpL09KV7.js | 1 + scripts/mYL4i1vNlMl4vFYy.js | 1 + scripts/ma0sWhebqwdRHWvY.js | 5 + scripts/maKr58mvvyKxFyC3.js | 2 + scripts/masOBNgSi5HYkf3m.js | 1 + scripts/mgLGN1XPzPE4dReN.js | 1 + scripts/mr8qm5Bg6k1idZ6Q.js | 1 + scripts/mziJBUYcsrhkdcCJ.js | 6 + scripts/n5RJqJL9fdRIxkuN.js | 12 + scripts/nCWAflBj7Si2BI1Q.js | 4 + scripts/nD2QVg3DrPK3foMf.js | 7 + scripts/nEaF3jbCiVYD8jia.js | 1 + scripts/nGTxNWBUBgTr87wU.js | 5 + scripts/nHJdlqbOP0ECgywb.js | 3 + scripts/nSXzktHyNjGUXjaw.js | 1 + scripts/nYtAjSArsNbrU2ob.js | 8 + scripts/naF5EWr1CBkYRZTK.js | 26 + scripts/ncIjDE6TFx88IQA1.js | 1 + scripts/neaaVy6D6tfcst5P.js | 1 + scripts/ngMm7SgtVqVovFJG.js | 4 + scripts/njPP9wDAsdh4WHIj.js | 4 + scripts/nkbTnaeBpthyhw4J.js | 6 + scripts/nkdKBJ8ItqWiRAWL.js | 21 + scripts/nuIpPD4uaZRuJni8.js | 3 + scripts/nvrFhHHVq3KzirlR.js | 1 + scripts/nxNqWmmF6mJTnrLo.js | 1 + scripts/nzh8d46l1ikhkz8Q.js | 1 + scripts/o1zD8mej9TWKNxUq.js | 1 + scripts/o3JUBKLvE6bBxK2n.js | 20 + scripts/o88xuUConwt0vFLw.js | 5 + scripts/oDNfCNyt5KaUYmg2.js | 10 + scripts/oEsUsI74yGTZ9CwU.js | 1 + scripts/oGdsGPgJWcyWkiWl.js | 6 + scripts/oHenUKtaS3jT5xQn.js | 4 + scripts/oPg4se8iQRD14kmB.js | 27 + scripts/oV81zgbZsuTFG6L2.js | 5 + scripts/oW1gtYVT5nrxDjM7.js | 1 + scripts/oWM43EdUiyHgUlfW.js | 2 + scripts/oWa7RkScnl6lR5vd.js | 11 + scripts/obIXhQXKFyyQoNNV.js | 7 + scripts/ocBW3osTFnb5JCfe.js | 3 + scripts/ofddAHvzn1xUueSG.js | 15 + scripts/ogJBAXTXyhTqACPO.js | 1 + scripts/ohl803m0tUwNfKAk.js | 4 + scripts/okW06V9UiPC4Vcrn.js | 86 ++ scripts/okr3TtzpFoefUuJS.js | 4 + scripts/oqgd9G6oI1ncPYLw.js | 2 + scripts/p222EiR8RRtlPm31.js | 3 + scripts/pAgiAGyaLJY10894.js | 1 + scripts/pBMioPUtDn1mk9f5.js | 3 + scripts/pG5OVokZzCRHIrwz.js | 3 + scripts/pHyXdPnWwoFrUA5n.js | 1 + scripts/pLKv4moua6XhNdmA.js | 4 + scripts/pNPjXEoQGHLKzq0r.js | 12 + scripts/pPV9oEydXb7oi6jX.js | 4 + scripts/pR4Q2OnPxXtwRVli.js | 12 + scripts/pnB9TzSEytkxk3Rb.js | 1 + scripts/pq1YQffxtOcqCRTn.js | 6 + scripts/px7eEdhOEt7zOTrq.js | 1 + scripts/pzimrxrqpv282Oqb.js | 2 + scripts/pzknBcJtZWeliE27.js | 1 + scripts/q0LvphC8RDSyR0oY.js | 8 + scripts/q3nRyXaxksdCiLFM.js | 3 + scripts/qAEZgtu5CrfUkxhx.js | 16 + scripts/qK4q4o6cQhcGzFX3.js | 7 + scripts/qSwCYMMiIHmSV1X5.js | 13 + scripts/qT0WBPxLMMO9gvCd.js | 4 + scripts/qUwnVlWpsmDom3RK.js | 1 + scripts/qZschZU0nee0kJlk.js | 1 + scripts/qaVde0sTuMBRi2nl.js | 1 + scripts/qcyl98GYD55BkJsD.js | 2 + scripts/qijgjcOBCDmhglRX.js | 1 + scripts/qjli5evn8UA9uTeZ.js | 1 + scripts/qmOt7h17hGAKqQe0.js | 24 + scripts/qu194dVXm9Vx1TGk.js | 10 + scripts/quPcuKsq2fcild4a.js | 6 + scripts/qxzhPtysAjPWspKf.js | 4 + scripts/r6hi5vMdLhTaaPfb.js | 1 + scripts/rCh3ltUrUMovd2Kc.js | 5 + scripts/rF0Z3hTUUnSxL3Mq.js | 37 + scripts/rIISfbCShejmJNKw.js | 3 + scripts/rLMaVNEGdZ6xj5Au.js | 1 + scripts/rRfff55c7elyvbCb.js | 1 + scripts/rUGSx06BuBvX9kgf.js | 9 + scripts/rVpPNILEzWL9lj6b.js | 4 + scripts/rXMylpnEtZpwou6x.js | 8 + scripts/ramav4ymrDDkPKK4.js | 9 + scripts/ratP9ByLjQPiLlFK.js | 1 + scripts/rdaMhMyHrJjQ6vVC.js | 1 + scripts/re1UFtxvRRjpPB7Z.js | 13 + scripts/red2bt4PGgIWAdTR.js | 14 + scripts/rgSwSeB3shIMVMb6.js | 3 + scripts/rnioLwiJP7ps5Jwy.js | 4 + scripts/roKvPHDSpX4IV11C.js | 1 + scripts/rpxQU26BU7nwjtqY.js | 20 + scripts/rr4htuVq45onXdRG.js | 2 + scripts/rxB1AqfVMDqTRieE.js | 1 + scripts/s0kTuDE0qv68V2KI.js | 1 + scripts/s5bO0Sf0qpS27Tve.js | 2 + scripts/s6eZXfZkC1My6EXl.js | 5 + scripts/s7gJQdzuM3fz2zQK.js | 11 + scripts/s8idWt9YdMTRfnjV.js | 5 + scripts/s8xU6OOZbbfo6VIw.js | 1 + scripts/s94yKZ4o5XN4JWM1.js | 6 + scripts/sAVpm7hFRHpbCLXm.js | 1 + scripts/sB4KB9bT3nQhAoqG.js | 14 + scripts/sHfkTRqTWPg2JAGN.js | 2 + scripts/sKO8TcLIkCTnFvXu.js | 2 + scripts/sNSfDBIA2k17hPYI.js | 6 + scripts/sSMg43ZjnNmpytfj.js | 2 + scripts/sUHuj00IpoZ7Gd03.js | 1 + scripts/sWyO1DNaqb2EdHoW.js | 11 + scripts/sYlGRLApZ3Ub24ea.js | 1 + scripts/sZwLitzwKBTaFca3.js | 4 + scripts/sagKJM6oDFlw4ED2.js | 3 + scripts/sbK1a7txpSoXFzyB.js | 10 + scripts/scfm5iWWBxWI6QaK.js | 6 + scripts/sgS9rblPkQB36C8S.js | 29 + scripts/shkBUtUuMPDKvFm7.js | 10 + scripts/skVq3eDEYKFF2iZp.js | 2 + scripts/sm9d5lk6cM0OuUkf.js | 1 + scripts/sx7Ikn8WW00gBFb4.js | 32 + scripts/syBgPp7rOymCZejX.js | 6 + scripts/syqqBkyP5tGqZ78t.js | 8 + scripts/t48hkacYdOpzWvK9.js | 1 + scripts/t56mnblo1kv3gM1M.js | 1 + scripts/t8LYOuN5peEdWeXP.js | 3 + scripts/tCIT1a12Gt6k2ohA.js | 21 + scripts/tDrs0aNIYmZPsOoS.js | 6 + scripts/tFAKRRRfTjQfdQz3.js | 1 + scripts/tG1qGqzBLmAR3WHm.js | 15 + scripts/tGVEV6TLl310mFLP.js | 7 + scripts/tKBq1nGZo8t6vvQ6.js | 2 + scripts/tNTO1LVN7JqHf4YN.js | 8 + scripts/tUwP7TjrOOOnaCYJ.js | 10 + scripts/tcZug8ehU6lyYBd9.js | 1 + scripts/tdICiJ26rJrDbxT6.js | 1 + scripts/tn6SwmjAuNzqE6dx.js | 14 + scripts/tnE8LF6E3svIlLca.js | 1 + scripts/tnilBagajWM8UGQt.js | 1 + scripts/toSrgcvWq9b5eN0K.js | 4 + scripts/tolkNN5P7oOC8GKZ.js | 11 + scripts/u3olS2p7Ls1JXfAH.js | 1 + scripts/u5dNZ0s3lWfL8KFb.js | 1 + scripts/u6CYMSZADrfXd48Q.js | 1 + scripts/uACa6u4JLNMRgFlr.js | 2 + scripts/uAy4w7y8Uu9POF8C.js | 1 + scripts/uLBDnWC3S0lRitbj.js | 22 + scripts/uNYstk3eXmWamhzs.js | 1 + scripts/uOHAsKlkFuIaAmjb.js | 1 + scripts/uSwkYENTOcnfRrqA.js | 1 + scripts/ucF4aiJ1gpDB333G.js | 5 + scripts/ugL5IBB6R2yWyMWd.js | 23 + scripts/upfK6GM33qZCZjll.js | 1 + scripts/uwdQvZtzy2HVeEzx.js | 14 + scripts/ux3jaLpAUhZ5YqA6.js | 1 + scripts/v00nVCRKqqRvY28t.js | 6 + scripts/v4CCxVaVGf9i8U7X.js | 24 + scripts/v4ITTsSY9EvCbhZP.js | 2 + scripts/v5xrDWcrTNFJkyQB.js | 90 +++ scripts/v6LIG7EwWYALxCpP.js | 1 + scripts/vFUVWZ1l8wpTjLcx.js | 14 + scripts/vJQRBxDfPwHens0a.js | 11 + scripts/vM2BPwYhHQaBAt2C.js | 3 + scripts/vNp9wgdSvnNEjZyS.js | 1 + scripts/vPG4rV640aSzKzxe.js | 1 + scripts/vS2D9QUslR7ZtXXm.js | 9 + scripts/vSDMygIT9nNvEGWG.js | 13 + scripts/vY3xeTTL3ghPrJpN.js | 1 + scripts/vZ5HCrhY8e4R1TrG.js | 3 + scripts/vc4bELo0cWYoILfB.js | 4 + scripts/vc8eVKtyjtOGvWlK.js | 4 + scripts/vcM0IgsYVmfWrlO3.js | 3 + scripts/vgfs0DXvF5iKrz1M.js | 1 + scripts/vj3zArmX27vCxYJW.js | 1 + scripts/vjyTKcNrJzX4XWnS.js | 4 + scripts/vuzRRj5d9XdNYx3o.js | 6 + scripts/vvVhAqreedtmOR9b.js | 2 + scripts/vvdo1NxjmGVkmFCT.js | 24 + scripts/vzMxIDjRlQSxXtCW.js | 11 + scripts/w3r54pKZQKaH2Yer.js | 8 + scripts/w4JKuTECFmu3YmTR.js | 1 + scripts/w4zubIHP0XgMXsFe.js | 1 + scripts/w7K0lbxQKJ2tsc6f.js | 4 + scripts/wAETU6aTRr9d4oCU.js | 1 + scripts/wAntJhgb8Og5vJXh.js | 1 + scripts/wS6OIR3QN4mOUHn0.js | 12 + scripts/wUlYLBT59Efys5aS.js | 1 + scripts/wbM7tpw4TxvadcWm.js | 19 + scripts/whUSkaR1yem21bXp.js | 133 +++ scripts/wsqNM4NHnwaAAQym.js | 11 + scripts/wyTCozh9qGTx6yK0.js | 5 + scripts/wzkxiKjxVEeNS1di.js | 11 + scripts/x2RLUUNB7BiIDYCP.js | 16 + scripts/x76tKw4L8dX00ikE.js | 5 + scripts/x8XK2fzzXCnSwfjt.js | 7 + scripts/x9G6Du5EWV6byf4C.js | 8 + scripts/x9iKFYYc4Ocy8PTS.js | 30 + scripts/xBpLQa7yBPczDMY8.js | 7 + scripts/xIRU2SaqLeWmqGDI.js | 4 + scripts/xL4S0H1RP8hhXW7c.js | 3 + scripts/xLKAuD6yzwjAL6tJ.js | 1 + scripts/xMhhVol8Is3DJ3gb.js | 5 + scripts/xPDMpOvC1ZBVxrNg.js | 1 + scripts/xPwa3NftkpMBc2AO.js | 1 + scripts/xQ3xR2Wf0wHFa76H.js | 1 + scripts/xQnoRTHotZKrwPrx.js | 1 + scripts/xRTmMwNfdirjsi8X.js | 3 + scripts/xRd6oA1QWLVpfoBm.js | 6 + scripts/xS2su09zcza9du09.js | 8 + scripts/xUpKYT7BZCSmAfUy.js | 10 + scripts/xYTkj8jhSVOSoLbC.js | 1 + scripts/xcy5GOUSZ0meIejZ.js | 4 + scripts/xgdhf0wlNP2cHIQx.js | 1 + scripts/xgplXZMs459X7XXM.js | 21 + scripts/xklncIMwQIespDxS.js | 8 + scripts/xnHobI9HojObLHMp.js | 2 + scripts/xobGBJbgFjQCrwvq.js | 17 + scripts/xpgXWoK2zDnG1uiF.js | 31 + scripts/xq3RANOtmPhy77ne.js | 1 + scripts/xqWxV9w5ezBQdJkZ.js | 1 + scripts/xvGxwv7X0Vq3vNqb.js | 1 + scripts/xvH4PKJasHcehOZz.js | 1 + scripts/y3agVFVBR8tVqWyx.js | 2 + scripts/yAL0YwZWVm8o1nxa.js | 6 + scripts/yCgH3N9AurIiAv0i.js | 29 + scripts/yDvxF9llUYwJg0sE.js | 22 + scripts/yFMvxecXAZ6T2O0S.js | 9 + scripts/yIGItnshXI4W46cp.js | 1 + scripts/yMMzZ7daCqRlGT3N.js | 5 + scripts/yPxYRObUiqAIhlNB.js | 1 + scripts/yRRzSKlcN3L7rEEe.js | 1 + scripts/yTmRoUstxHMso91c.js | 4 + scripts/yXUPiWuQ5o0JBY4i.js | 1 + scripts/yatUu0cd7iKs50rq.js | 1 + scripts/ybxDG2ezvRx02LYx.js | 1 + scripts/ynNCBAYwJFkTiXV1.js | 1 + scripts/ynV7tz0OdCwlsQp6.js | 6 + scripts/ynoHNXXCGRS6fTqF.js | 26 + scripts/yzN7ZNlgCiSVJqsU.js | 7 + scripts/z5HfNUrHy5MS3K7a.js | 7 + scripts/z926Cl2vxUfyLY0V.js | 4 + scripts/z9NEbIUBsKMaTuCz.js | 4 + scripts/zA6TDttpwMSMl7D8.js | 14 + scripts/zBHTIBU8OlYj1YIO.js | 1 + scripts/zFYCaGR0wbFWjl4T.js | 1 + scripts/zK38Rl5t9zbFi4Se.js | 5 + scripts/zR4WAjzXHTZuiu5G.js | 52 ++ scripts/zUv9e0A3OEXWY9Mv.js | 4 + scripts/zY4ZjY7uyKIKMYmX.js | 8 + scripts/zadppy7FEbXvgUON.js | 84 ++ scripts/zi8Z3NlwVj3IfgAW.js | 10 + scripts/ziG9H5Kdb7xC3dFE.js | 1 + scripts/zk44dFEGkylB7kW6.js | 9 + scripts/zphxI8VSWbNQCMBy.js | 1 + scripts/zqShIJnrRReGgP94.js | 15 + scripts/zsiV6XEHlCNGLLPl.js | 1 + scripts/zsoTVkHe4nHY1M52.js | 1 + scripts/zzk2uRSFjFHB5kjw.js | 9 + 1282 files changed, 9990 insertions(+), 384 deletions(-) rename packs/aides-de-jeu-fr/{000671.log => 000675.log} (100%) rename packs/aides-de-jeu-fr/{MANIFEST-000669 => MANIFEST-000673} (71%) rename packs/antidotes-and-remedes/{000673.log => 000677.log} (100%) rename packs/antidotes-and-remedes/{MANIFEST-000671 => MANIFEST-000675} (71%) rename packs/apothicarium/{000671.log => 000675.log} (100%) rename packs/apothicarium/{MANIFEST-000669 => MANIFEST-000673} (71%) rename packs/dons-de-rhya/{000671.log => 000675.log} (100%) rename packs/dons-de-rhya/{MANIFEST-000669 => MANIFEST-000673} (71%) rename packs/plats-dauberges/{000671.log => 000675.log} (100%) rename packs/plats-dauberges/{MANIFEST-000669 => MANIFEST-000673} (83%) rename packs/tables-des-traductions/{000314.log => 000318.log} (100%) delete mode 100644 packs/tables-des-traductions/MANIFEST-000312 create mode 100644 packs/tables-des-traductions/MANIFEST-000316 create mode 100644 scriptPacker.js create mode 100644 scripts/00ZCnahnTGvzG9KA.js create mode 100644 scripts/01VFjGVxkjb5P1ve.js create mode 100644 scripts/03mJu59V4iByWlsO.js create mode 100644 scripts/04bAiHISSW53w94Y.js create mode 100644 scripts/06IaVCOC0RCJbxEf.js create mode 100644 scripts/09sSpnW8z2zcVEdf.js create mode 100644 scripts/0BP5l7bIkf744G1k.js create mode 100644 scripts/0FNOq4J1AdPd2A0q.js create mode 100644 scripts/0FWto1oEr3jbWggw.js create mode 100644 scripts/0KG3HoTNoZhaINIj.js create mode 100644 scripts/0LCQtsiK2aUfYRmD.js create mode 100644 scripts/0R0QAr3D024kWPfo.js create mode 100644 scripts/0Uly7OmkH0zqYbxQ.js create mode 100644 scripts/0YKQGbsKdHSmYGE7.js create mode 100644 scripts/0abwNjpzo3SbEOeO.js create mode 100644 scripts/0e0UZT2FodOJDdgW.js create mode 100644 scripts/0e7OkamNAaAk4Oit.js create mode 100644 scripts/0iTLDgFHO9Rgc010.js create mode 100644 scripts/0mrUnxzufYgsR0Ph.js create mode 100644 scripts/0vaYwAlMWTmOBl8k.js create mode 100644 scripts/0yyofYHeDRQlFliO.js create mode 100644 scripts/11uCC0mK2uL783al.js create mode 100644 scripts/16nCOByUaSFDym1V.js create mode 100644 scripts/190PHSHKGaJ74wsR.js create mode 100644 scripts/1A87vGLh2PXH0rG0.js create mode 100644 scripts/1BT0MWM2cbhlEnrn.js create mode 100644 scripts/1E47r2ba6IGe8uFK.js create mode 100644 scripts/1IodsW9ImamYoEYz.js create mode 100644 scripts/1JwxZujbDcueLWBL.js create mode 100644 scripts/1LDm3OB32skZe6Xv.js create mode 100644 scripts/1MDOKny7IirJPoI6.js create mode 100644 scripts/1OpT3CXs07XFWWCT.js create mode 100644 scripts/1PQPxFjmRlulHHzo.js create mode 100644 scripts/1UalUmNzjB4rp3SZ.js create mode 100644 scripts/1ZArMNUI8qqH6zkX.js create mode 100644 scripts/1ZrzpfVwPJHdwp23.js create mode 100644 scripts/1exiWlVUHsXDLLAH.js create mode 100644 scripts/1fQr1Dg7DX0vfz3r.js create mode 100644 scripts/1kB2su7hLRYDhZ2H.js create mode 100644 scripts/1l7Jz2ZHbAWko7Vm.js create mode 100644 scripts/1mNkLj9JYNr3ofC6.js create mode 100644 scripts/1wEjrgff7ASxKVmy.js create mode 100644 scripts/1wKVvxRTHOyV4Qdv.js create mode 100644 scripts/1wrPvP6lJwIAfmsl.js create mode 100644 scripts/1yOvw74jzFfaI87b.js create mode 100644 scripts/22bW97lkvCqisfHX.js create mode 100644 scripts/23HgjCB1oecxANvA.js create mode 100644 scripts/23vWiHUjxtRQ3Efz.js create mode 100644 scripts/2AOo7KUyzMrgIlgM.js create mode 100644 scripts/2AdSBXw7IwCiqawQ.js create mode 100644 scripts/2Cw5j0iGAnFNegWr.js create mode 100644 scripts/2GYAd4OC888oQFBp.js create mode 100644 scripts/2NLINicPQWbuvp2n.js create mode 100644 scripts/2OqLHRqEBEjBm2LW.js create mode 100644 scripts/2Qi1hwLYhdE6v6Hs.js create mode 100644 scripts/2VNnVrtktdGUqXEV.js create mode 100644 scripts/2W9uMTT6iJhfQ044.js create mode 100644 scripts/2WBq5gW780C6zfCp.js create mode 100644 scripts/2WSN306tL4apjRtD.js create mode 100644 scripts/2cKarG9ToyW2ptCd.js create mode 100644 scripts/2hzDv8ROulOe1elK.js create mode 100644 scripts/2mFNelLOAQ6iJsZl.js create mode 100644 scripts/2miWWeRrEpq1beG4.js create mode 100644 scripts/2p9IK6Y5Z4NQD6FY.js create mode 100644 scripts/2rzxQlL7A9ujZ9uK.js create mode 100644 scripts/2sDH6RvoOAR40oqH.js create mode 100644 scripts/2vTVR0quRZQtjNfQ.js create mode 100644 scripts/2wk0yrRPlPsdqr3L.js create mode 100644 scripts/2yctEihGmdCfTTVx.js create mode 100644 scripts/2zeP2nMSURjxrqYz.js create mode 100644 scripts/33PWizq5F7pkKnQT.js create mode 100644 scripts/33US8YRgaMqYu2We.js create mode 100644 scripts/37UN17gb8suFeZIW.js create mode 100644 scripts/3Cn2TlRahlm5LkSj.js create mode 100644 scripts/3D5ImpMgpOTPucvv.js create mode 100644 scripts/3IGO7xEjRjat937X.js create mode 100644 scripts/3JEzEzF1SeYA9lsV.js create mode 100644 scripts/3LLiSgj6KGtgqcmo.js create mode 100644 scripts/3R6Y4NpNTqPc83wh.js create mode 100644 scripts/3TesBGh8HnlGuafu.js create mode 100644 scripts/3Vbe6gdW8N0bIvXJ.js create mode 100644 scripts/3aEzK0DehSHtVykd.js create mode 100644 scripts/3eSaX0BeaUalNkEP.js create mode 100644 scripts/3fdCQ3h3iVuhdDs9.js create mode 100644 scripts/3hfMQkUKYI4rCuBy.js create mode 100644 scripts/3jm0NoYpgB6ZuUSl.js create mode 100644 scripts/3l7MQSa10Kve2K3P.js create mode 100644 scripts/3plV9WFqs2prfAdp.js create mode 100644 scripts/3sfD1nedXLzuYoXJ.js create mode 100644 scripts/3tE8gFSl28EhCmo5.js create mode 100644 scripts/454x3Q95pLvZm0Kx.js create mode 100644 scripts/4FGKZk2f0xrmIDnp.js create mode 100644 scripts/4HN98hMdQJxM35pA.js create mode 100644 scripts/4JVIy5xtVwvadoqv.js create mode 100644 scripts/4MQ7u4INxp51oyyR.js create mode 100644 scripts/4QoxhoekgVeZcQA7.js create mode 100644 scripts/4XrAeL2DitxE8OaK.js create mode 100644 scripts/4cOZzUvu1nytcqNn.js create mode 100644 scripts/4fnTKgl0HW9ZrWyJ.js create mode 100644 scripts/4gkz3LR7CK1b8ulK.js create mode 100644 scripts/4iuTz0uInAfMaoGl.js create mode 100644 scripts/4pQW4WLyhjbZR85k.js create mode 100644 scripts/4rTmV3TNxctUe0ly.js create mode 100644 scripts/4rb7LfMq9CTnlrpn.js create mode 100644 scripts/4rhxLzau7jZ4SDxg.js create mode 100644 scripts/52kbfuWrOh6dsTtd.js create mode 100644 scripts/52mwb33mGrQjq89B.js create mode 100644 scripts/53HFDNuMnX1Aw1a4.js create mode 100644 scripts/58rFc9HiBoX66J6p.js create mode 100644 scripts/5DI6cHAg1LHo54Yv.js create mode 100644 scripts/5Fe1ELaS6Gnvy0Cj.js create mode 100644 scripts/5IoYTyedCMYwt3ys.js create mode 100644 scripts/5JWC0l3JEpOsqbR9.js create mode 100644 scripts/5JvKJZPcd6Hz5zvn.js create mode 100644 scripts/5LdJCKfQem1AQK24.js create mode 100644 scripts/5M6IgCUncCwyxHok.js create mode 100644 scripts/5MxRDXzUBPfp2KKD.js create mode 100644 scripts/5dR7Erj3nwsxLAV7.js create mode 100644 scripts/5lc1eHIYQNpSRWip.js create mode 100644 scripts/5o1XiceC4rutjMms.js create mode 100644 scripts/5sI9iYh5j2nx2XyT.js create mode 100644 scripts/62Ky6bC1EnTllSJA.js create mode 100644 scripts/65o8pQj6oGNnXce6.js create mode 100644 scripts/65xE9OV5sA1ZWT7j.js create mode 100644 scripts/6Aqq4F4Xui923sc6.js create mode 100644 scripts/6BmvV9c03FkfisnE.js create mode 100644 scripts/6EXkbVTRBhKTEu81.js create mode 100644 scripts/6Fe8M5MdklKS2olx.js create mode 100644 scripts/6H6vNjzvMGl2ZqCR.js create mode 100644 scripts/6JrUjs3g5x6bFnj3.js create mode 100644 scripts/6MSodMuZ5xk2JJJ9.js create mode 100644 scripts/6Mjy0jDqczA8BxhS.js create mode 100644 scripts/6QZUX7ZrFxOzqI0b.js create mode 100644 scripts/6U8xox4mBrn5eYIp.js create mode 100644 scripts/6V3qHON3mcerlBlB.js create mode 100644 scripts/6XWJWOUQPgKMsFul.js create mode 100644 scripts/6ZS1rQLkNvMDO0Fp.js create mode 100644 scripts/6elUNF58TaiYjxcx.js create mode 100644 scripts/6fElmBxTjdAaubbK.js create mode 100644 scripts/6hAgggYpNR3r4QWC.js create mode 100644 scripts/6jcTzK1XEuWqAacN.js create mode 100644 scripts/6kifXp2jXEaQVJsg.js create mode 100644 scripts/6mpw9cGseG4W4eyd.js create mode 100644 scripts/6qUKKep5vhFYmo1J.js create mode 100644 scripts/6tjn0RH4VyOPFneS.js create mode 100644 scripts/6uldpFvKOCoW92cC.js create mode 100644 scripts/6xTtJEhRc4OjcDTf.js create mode 100644 scripts/715G1Bf0haOHvmYQ.js create mode 100644 scripts/71DmrxCTKGYL4Z7X.js create mode 100644 scripts/7Ck0fkzE4WQ62qVe.js create mode 100644 scripts/7F3miqRA0ceMUBIu.js create mode 100644 scripts/7F6aGxZJjwxm5e5P.js create mode 100644 scripts/7H6wYyJ6cpaoc2QQ.js create mode 100644 scripts/7JW9t8AYSDkkzG2V.js create mode 100644 scripts/7OmrMjaU48o2FEZi.js create mode 100644 scripts/7ScfB4o1QhXnNUfq.js create mode 100644 scripts/7VAhXHov6pR1SkgD.js create mode 100644 scripts/7WR2hJjHPhHhHxAq.js create mode 100644 scripts/7ZoFUMDG2WJd8RMg.js create mode 100644 scripts/7e8FgQUF2oANANmx.js create mode 100644 scripts/7f6OsttTzE7Hvzfk.js create mode 100644 scripts/7n3SEAGRA5ESK8gV.js create mode 100644 scripts/7szLG4VALuuy1cPm.js create mode 100644 scripts/7wBWUw05q0igh508.js create mode 100644 scripts/84IB8CWa55XzoAkv.js create mode 100644 scripts/87rrZ3ojHrXa3lCn.js create mode 100644 scripts/8AoA4bnstBtglRGZ.js create mode 100644 scripts/8ByuHnUZ4RNTdGVv.js create mode 100644 scripts/8GyJgdHVBaLrHCY8.js create mode 100644 scripts/8K9tpCwvFC9INk5V.js create mode 100644 scripts/8LmUVQxOwTLSeabg.js create mode 100644 scripts/8N3Uqjq1ZxPxo4pk.js create mode 100644 scripts/8RNziYGGb4sp3BGQ.js create mode 100644 scripts/8ShLVT0bK1eQpinj.js create mode 100644 scripts/8TRiAJ8thIKE4IoL.js create mode 100644 scripts/8ThudCYRqkjQIwJH.js create mode 100644 scripts/8WJsecxdndaHRxxS.js create mode 100644 scripts/8WeYU5e5LN9UeWFs.js create mode 100644 scripts/8ZAUBSH9CM9OTpTL.js create mode 100644 scripts/8araLuwmBq8GKEw3.js create mode 100644 scripts/8fefDfiYKFOWdPER.js create mode 100644 scripts/8g2iitsgaJarKQpr.js create mode 100644 scripts/8gCja0mfKt4nYVZc.js create mode 100644 scripts/8hIyWDyfbgGAig65.js create mode 100644 scripts/8jvEVPUCg3rKG48Y.js create mode 100644 scripts/8noxHUQKR55Kx1YN.js create mode 100644 scripts/8oE0DTzz0krOfFlV.js create mode 100644 scripts/8rq4GL5d5nCn4kO7.js create mode 100644 scripts/8tyMXDfHR8AJBdDu.js create mode 100644 scripts/8vpAtJ93GIeye1qj.js create mode 100644 scripts/8wG9l4T9fc1bM0TN.js create mode 100644 scripts/8yBr6VbdKcrWUuqw.js create mode 100644 scripts/8zTkDVziBPaNbMQX.js create mode 100644 scripts/91S2GnBFYFbxmOCK.js create mode 100644 scripts/93K85NnVwjVNXlZq.js create mode 100644 scripts/956dUb5sd6OtbWZR.js create mode 100644 scripts/96Y1yIH1lRjTs5hL.js create mode 100644 scripts/98nKfcimlaPeM9h5.js create mode 100644 scripts/9A7rYY3FKi5XLihG.js create mode 100644 scripts/9EVj4bmZJex45Mt7.js create mode 100644 scripts/9JnPK1jNUEso7Pv8.js create mode 100644 scripts/9MDi3ok9gPwtbALf.js create mode 100644 scripts/9MwRUzRinhq1IjhG.js create mode 100644 scripts/9RFoasDcFnYZ1txR.js create mode 100644 scripts/9VfeubiCV83LN9iY.js create mode 100644 scripts/9WZa63lr0K3SsP4G.js create mode 100644 scripts/9Yn9uViEjcuaESJ2.js create mode 100644 scripts/9ZFPDCk8M2TQxh7x.js create mode 100644 scripts/9bJGJrLqslV5lBya.js create mode 100644 scripts/9eWR4mdaoCSQawDT.js create mode 100644 scripts/9fK07tqqZyPg7dpx.js create mode 100644 scripts/9nroaZDkW3WXNkB7.js create mode 100644 scripts/9ob2lPnk3PDot9Tx.js create mode 100644 scripts/9qWUuEF8F5nehF1y.js create mode 100644 scripts/A0OK0qAMmnf8iNJf.js create mode 100644 scripts/A1odAcuRbq9797ZB.js create mode 100644 scripts/A3MW0UksYrHGa0Qw.js create mode 100644 scripts/A3fvV69RS1lYgma0.js create mode 100644 scripts/A6DcKPzAGntzSCil.js create mode 100644 scripts/ACgKpKrEEHoNGG0h.js create mode 100644 scripts/ACtDCTLZXmd5uXjX.js create mode 100644 scripts/AGD7zCyV4zruvnWu.js create mode 100644 scripts/AHZ8f7dfN8jNsYk6.js create mode 100644 scripts/AI6bFrjWk4NH9FBd.js create mode 100644 scripts/ALuPRzf85dmkEfLo.js create mode 100644 scripts/AMI2wDJqsIZsoq1e.js create mode 100644 scripts/AMxezwtYnWCF6Oza.js create mode 100644 scripts/AS7CstSosuCrwZ19.js create mode 100644 scripts/AV2Kj6jgmIc45zKi.js create mode 100644 scripts/AVROqafFhKjN6TPR.js create mode 100644 scripts/AWgZnm9xLyIWCDnp.js create mode 100644 scripts/AZGXrZOQ4EzjxRL9.js create mode 100644 scripts/Adgs6Zs0FdefO6qx.js create mode 100644 scripts/Ah2wyywkL8hjJNXM.js create mode 100644 scripts/AjC4dsiuhVCOnRGI.js create mode 100644 scripts/AmOMCUaWLJ2iJAt5.js create mode 100644 scripts/AmpDbT0BkDHeaRzf.js create mode 100644 scripts/ApaLcUhuty3EzJoP.js create mode 100644 scripts/AqHLHp4kH6KULk3e.js create mode 100644 scripts/AyNb5sj6FD2Z3Q5T.js create mode 100644 scripts/AyS3iLljxHRKsHg4.js create mode 100644 scripts/B063u4vrbvzMaCQt.js create mode 100644 scripts/B1xgRS00RcTIZLnO.js create mode 100644 scripts/B6ZbY3bxTPg6nCng.js create mode 100644 scripts/B87v1twc65qyvUWi.js create mode 100644 scripts/B950b0XnIUYCdVwu.js create mode 100644 scripts/BAOv7moTxsKlT3JS.js create mode 100644 scripts/BD7bVTU2pVoRSRBe.js create mode 100644 scripts/BHbFqhJPzZI2txLs.js create mode 100644 scripts/BcXTujburrHpjpwa.js create mode 100644 scripts/Be5rdfnZorbILhpC.js create mode 100644 scripts/Bexspr5viPhHiFmU.js create mode 100644 scripts/Bj6bxItlgtI2sXVN.js create mode 100644 scripts/BtyFhdGMKiMamGhM.js create mode 100644 scripts/Bv3431tnG3VKaTJr.js create mode 100644 scripts/ByhEa1BxQOyrOmqg.js create mode 100644 scripts/BzDLuxBNw1QNIacg.js create mode 100644 scripts/CCK1iIfPmB398ziT.js create mode 100644 scripts/CCwuu3bPLCpVGAmb.js create mode 100644 scripts/CDASLC4fWKSGQKf9.js create mode 100644 scripts/CHnaBPHk6HdFS512.js create mode 100644 scripts/CIxZYkHggBQ6EsHP.js create mode 100644 scripts/CM43kvw5mIIE1OsB.js create mode 100644 scripts/CMUFtmNA1kkD1ay7.js create mode 100644 scripts/CPQoK7NjzOwVTFXS.js create mode 100644 scripts/CW5Vlr57OaMkKJ8Q.js create mode 100644 scripts/CWNGrg7se91RC95g.js create mode 100644 scripts/Ca1fXHTA1e2QLx0D.js create mode 100644 scripts/CiFeduksZJ6PRulx.js create mode 100644 scripts/Cjj4iLkdY1NaZRCi.js create mode 100644 scripts/CkE8NZOhzPkuRrKJ.js create mode 100644 scripts/CoImIH9OCMx9DfQZ.js create mode 100644 scripts/D5XmzrUGFa1JN0cl.js create mode 100644 scripts/DANLE5HxrkTNelhl.js create mode 100644 scripts/DBafsY1HrclJRTtA.js create mode 100644 scripts/DHxUKY9LMyifFgCi.js create mode 100644 scripts/DL9vYNft9aXdV2aW.js create mode 100644 scripts/DMQ0taEpBUJU5njV.js create mode 100644 scripts/DTiHS6RfwhF4THbf.js create mode 100644 scripts/DVlZGbiuMIHEQOnM.js create mode 100644 scripts/DWBxvzfWGcG7PVNP.js create mode 100644 scripts/DcSJNRBXE9ZBBY7T.js create mode 100644 scripts/DhZqJso1JWYtGrKk.js create mode 100644 scripts/DmbWR9s5I8LHBwxB.js create mode 100644 scripts/DpdSEHM6NMN1ey6h.js create mode 100644 scripts/DqJFo74trI916qXN.js create mode 100644 scripts/DsE6rTSzxEn6uWMz.js create mode 100644 scripts/DuM5l2Yb4bdvDeaG.js create mode 100644 scripts/DxQnamsb2AuW0p2e.js create mode 100644 scripts/DyZ1jH88EAp1ueOK.js create mode 100644 scripts/E1Xo4RVuN1YRRxg7.js create mode 100644 scripts/E1vUepgop09FF5wy.js create mode 100644 scripts/E2VfOVuju67qO3VL.js create mode 100644 scripts/E4CHDe1xfmcV3oGv.js create mode 100644 scripts/E6DMqfDeczqmVMFV.js create mode 100644 scripts/E7D4bxz8gy4e1wL7.js create mode 100644 scripts/EGWF3LHav3e2zFL4.js create mode 100644 scripts/EJObiSth3WdcJOXN.js create mode 100644 scripts/EJaBfqADqlo92Fx6.js create mode 100644 scripts/EKkdyp51Wf4csw2B.js create mode 100644 scripts/ENGmwaItRXO5s0XY.js create mode 100644 scripts/EQ5dtGW5kQhtAb87.js create mode 100644 scripts/ERxrWzSpw8qwxFVi.js create mode 100644 scripts/EU5j0hnDTG9Z6d1e.js create mode 100644 scripts/EVBSHEC5nmmj2X41.js create mode 100644 scripts/EYny6z5oTOhxGDfb.js create mode 100644 scripts/EaSNOmXUxAkUHnm5.js create mode 100644 scripts/Eay7GpDyfsEE40jT.js create mode 100644 scripts/EdTChmSouS0MSmk5.js create mode 100644 scripts/EiLaZW4b4ypw5sLV.js create mode 100644 scripts/EmXwcuycEH8slEn5.js create mode 100644 scripts/EmmG49pMOPHRwDzR.js create mode 100644 scripts/EpdMj9d9SYPeP44q.js create mode 100644 scripts/ErgOwSiVnm9VLVHN.js create mode 100644 scripts/Et4tPHlrkueLqP3T.js create mode 100644 scripts/Ew3C2WmLCtc1KT46.js create mode 100644 scripts/EwD053Fyy46b59ZI.js create mode 100644 scripts/Eye6dranWpNsILjm.js create mode 100644 scripts/F4aGsdzJ9SYcX57F.js create mode 100644 scripts/FAB12eLcSCAOOQwk.js create mode 100644 scripts/FAf4iXj5LkdvukS2.js create mode 100644 scripts/FMA16PvoObBV8vDl.js create mode 100644 scripts/FMSN5uRskkATexzB.js create mode 100644 scripts/FSqUqSByMiztYOQM.js create mode 100644 scripts/FUgCtIoj1Stgqxt7.js create mode 100644 scripts/FXuyiJoXdAh6WhRK.js create mode 100644 scripts/FXwfqF0jpXlBQ9Y3.js create mode 100644 scripts/FYUPfYyTYZkxRLFT.js create mode 100644 scripts/FZFOC7bip0oiWEzk.js create mode 100644 scripts/FciJSTq7dZsZIPgl.js create mode 100644 scripts/FfTqCPxCoxwGDTQs.js create mode 100644 scripts/FiD3mvWIBHNNIuO9.js create mode 100644 scripts/FkTwk8hfHpRLbAp2.js create mode 100644 scripts/FmLx9pwOkzqqU7Ph.js create mode 100644 scripts/FqevMs0ukQ9WuUHl.js create mode 100644 scripts/Fvlc4RkeF4dHjW3m.js create mode 100644 scripts/G1RletYc6BzigJrK.js create mode 100644 scripts/G7sFEnJlXZvfXL3V.js create mode 100644 scripts/GAO8AozttWOyRkta.js create mode 100644 scripts/GEfWIFBSrXt0ldBM.js create mode 100644 scripts/GFaTz8f6PBNWrlad.js create mode 100644 scripts/GFkVnx4m9OwYsKGH.js create mode 100644 scripts/GNl5Zk7BZ2jhRV1I.js create mode 100644 scripts/GOq4TcnWbfyfCo2V.js create mode 100644 scripts/GRfCxtYzmEx2LYU7.js create mode 100644 scripts/GTZUO73pUJKpM1JB.js create mode 100644 scripts/GUkpYdPwoC5pc9BT.js create mode 100644 scripts/GZFsuynUhgZqwTGo.js create mode 100644 scripts/GbPEy22VuCNzlNv2.js create mode 100644 scripts/Gc8S5TYlVdV8NnOT.js create mode 100644 scripts/GcIQtshex11AMmh2.js create mode 100644 scripts/Gh7OidY6UdpWBS1g.js create mode 100644 scripts/GjkxWj9wCAclM9WA.js create mode 100644 scripts/GrF6tQ08jgKmUH4i.js create mode 100644 scripts/GuUCErVbk5hrFzR3.js create mode 100644 scripts/GuxbvztcvzJz2oH1.js create mode 100644 scripts/GzSFlqL1YrIK1dxh.js create mode 100644 scripts/GzsuEg7gZy1f0ljy.js create mode 100644 scripts/H06Ysj7oPiemW7S6.js create mode 100644 scripts/H1z3nWW7Rj3Oisxy.js create mode 100644 scripts/H2CJvApKMnfGNNoo.js create mode 100644 scripts/H3Wls12aVWAWTp9J.js create mode 100644 scripts/H3pZ9UeIzIz3luKh.js create mode 100644 scripts/HASsi6wYHVALExWq.js create mode 100644 scripts/HJ2X4ZtXei0BXbxf.js create mode 100644 scripts/HKhyn0kijKfzW6cw.js create mode 100644 scripts/HMC6hPND9DWLFfZE.js create mode 100644 scripts/HOt2hHOiHDZ7oBgW.js create mode 100644 scripts/HX6CjNapYdC0VmQ8.js create mode 100644 scripts/HXJKkmpfxQUOnWOS.js create mode 100644 scripts/Hcpn1gU58DIKIhty.js create mode 100644 scripts/HfCxNd7mFGZH4s9Y.js create mode 100644 scripts/HiMBS6GeOwEydWYN.js create mode 100644 scripts/HmImVzvw6ecBy99l.js create mode 100644 scripts/HoNTnPphrJISSQr1.js create mode 100644 scripts/Hq1G30lhJYvtOSNb.js create mode 100644 scripts/HrOBAXsEX073ReKl.js create mode 100644 scripts/HrYchgkdZBiu1yPF.js create mode 100644 scripts/HwbgUIbpX0D8JLOR.js create mode 100644 scripts/I0Jo6cbNAJtXUloc.js create mode 100644 scripts/I0oRZ7AWde5KI5jw.js create mode 100644 scripts/I1J2m5uud84N50Lk.js create mode 100644 scripts/I7ieW0hNYvvX0KFg.js create mode 100644 scripts/I93i49wI9ZrDHT4n.js create mode 100644 scripts/I9QAPKbaXwMMMBT4.js create mode 100644 scripts/IAGla7HJlYN0wa4H.js create mode 100644 scripts/ID8mCcjkl7PCQhDq.js create mode 100644 scripts/IG4zYqtN9fRSYE7q.js create mode 100644 scripts/IKiZv9YSFmKmHo6a.js create mode 100644 scripts/ILqHxk7deotgI3KD.js create mode 100644 scripts/IPPDvZdE8kn3H9z7.js create mode 100644 scripts/IR5URcjnCuWBFMoN.js create mode 100644 scripts/IR86DuMbVdbGOJYt.js create mode 100644 scripts/IfEu1hO8sKEZBpvg.js create mode 100644 scripts/IkGegSuQwwVPhrjF.js create mode 100644 scripts/Ip8sctF9SIE1Z2vF.js create mode 100644 scripts/IpoOOjYJs6RmVrpb.js create mode 100644 scripts/IsLAvY9ikR1cOJWw.js create mode 100644 scripts/IslMfFgpgQq2brpu.js create mode 100644 scripts/IukS0clr1yAleacc.js create mode 100644 scripts/IupskvzvoGyD2H5o.js create mode 100644 scripts/IzZcsSngI8TZH4d8.js create mode 100644 scripts/J0IWUhxada2ONowP.js create mode 100644 scripts/J1FPDdrXGctKDTZz.js create mode 100644 scripts/J8aPichsl25t1QZ9.js create mode 100644 scripts/JEbs0WlqhKNDOo5A.js create mode 100644 scripts/JFgXyb6bKjZJLmF8.js create mode 100644 scripts/JQruHprM5R5vZ9DA.js create mode 100644 scripts/JZIn1dsKHFE3smJU.js create mode 100644 scripts/JaiC5P6nIgctOacH.js create mode 100644 scripts/JavuFNZ9Pj5elVLc.js create mode 100644 scripts/JeThJbOf6Xmbtgo1.js create mode 100644 scripts/JgCcgDVZX54slrWx.js create mode 100644 scripts/JibNjuQrJRnY0yf9.js create mode 100644 scripts/JjDzMnUxaWQePIYh.js create mode 100644 scripts/JjiPprLSlSmmB5Ga.js create mode 100644 scripts/Jjq3oPYbI26zjxME.js create mode 100644 scripts/Jk7OHqx06oCUVAzb.js create mode 100644 scripts/JmZQRvdWjm9ykYfn.js create mode 100644 scripts/Jnp5c09sPzDD61EK.js create mode 100644 scripts/JstrA46EYSEuRSy5.js create mode 100644 scripts/JwYZJGkZMSM2M3Si.js create mode 100644 scripts/JwgFQmPQtXWAP94i.js create mode 100644 scripts/JyTxUG5dNW670Sf7.js create mode 100644 scripts/K06v93N4FXb70mB7.js create mode 100644 scripts/KD4nCSdSXJVJmk0R.js create mode 100644 scripts/KF69WqF4PSEtpdb2.js create mode 100644 scripts/KG4TxnXiLLpfWOQO.js create mode 100644 scripts/KGK9vL1Yl0qmCeCN.js create mode 100644 scripts/KICZPwLvbUSxbDrE.js create mode 100644 scripts/KIoVBinAZK8sMOqD.js create mode 100644 scripts/KJLAan0glJlyOyqF.js create mode 100644 scripts/KPQfupKuaf4LCv4R.js create mode 100644 scripts/KQmb5B27eJ1lkbVL.js create mode 100644 scripts/KQzbrpb0T5a7it4k.js create mode 100644 scripts/KSjsDlsx3DD6cT16.js create mode 100644 scripts/KT670CjGBEprx2fO.js create mode 100644 scripts/KTBVDHUndI3qDOXM.js create mode 100644 scripts/KUx0deSF3xNzMucL.js create mode 100644 scripts/KVpDUEjHhd3nLa0f.js create mode 100644 scripts/KVuPduDztyMZQNt9.js create mode 100644 scripts/KXzDe7cN2vynHjJO.js create mode 100644 scripts/KkjkYAGI9Em1NgiQ.js create mode 100644 scripts/KmngDrPD72xn22kZ.js create mode 100644 scripts/KnwYZbeRSBA94hfl.js create mode 100644 scripts/KuUkUmOOLf05I4Bp.js create mode 100644 scripts/KuuWAhoSzk0rCxxw.js create mode 100644 scripts/KyUPYV1RXJxPOfyA.js create mode 100644 scripts/KyswmGj1uG3QS3ng.js create mode 100644 scripts/L1RMLvKtRPFtnczI.js create mode 100644 scripts/L2cdQppcPwxz24hN.js create mode 100644 scripts/L89UcafRHqUfxoux.js create mode 100644 scripts/L9eAtDyaoHvqryk4.js create mode 100644 scripts/LAyLbcC0lOPwZP3U.js create mode 100644 scripts/LHUUXfZVLBhWqRvb.js create mode 100644 scripts/LLqAT9wEUGMLfDhU.js create mode 100644 scripts/LOL2TGf8p8KxP14D.js create mode 100644 scripts/LQEWSN5KnHHATPsf.js create mode 100644 scripts/LXEUhHuXe8keEPI9.js create mode 100644 scripts/LeKLtvEDrWh4yHsx.js create mode 100644 scripts/LedRsrVo2f7lm3Ix.js create mode 100644 scripts/Lg1oRg4oNRvucsvi.js create mode 100644 scripts/LjXPlgdXBdllnA3i.js create mode 100644 scripts/LkPtgN9A36OI6Frh.js create mode 100644 scripts/LlRhPGorLl5qJCU8.js create mode 100644 scripts/Lm9IBkc918Duw3US.js create mode 100644 scripts/Lp261O9fgEXmgPf3.js create mode 100644 scripts/Lpv2N9LK9loeumiW.js create mode 100644 scripts/Lrb1S2aK7SFVD0C7.js create mode 100644 scripts/Lu27iXtJVkrJ8bOx.js create mode 100644 scripts/LxdLkPxH3SFvYrCJ.js create mode 100644 scripts/LyAK0dVDS5L09yq2.js create mode 100644 scripts/M0XhKnWjG14pk3iH.js create mode 100644 scripts/M2FshTX4PjKFVU8y.js create mode 100644 scripts/M5bh0heeafA2fQQ8.js create mode 100644 scripts/M9VgeYGiUO97ZUW4.js create mode 100644 scripts/MCK6WyjwYT28lsTN.js create mode 100644 scripts/MDLttXplnNthncGr.js create mode 100644 scripts/MFKhU9vp8bQpHP3I.js create mode 100644 scripts/MI2GgNi3fZtUCtQD.js create mode 100644 scripts/MJB6WbZSF6Briz30.js create mode 100644 scripts/MSJWJEUrX7ZmMvAD.js create mode 100644 scripts/McLR9YcgVUG3MooC.js create mode 100644 scripts/MfxWXZwaZUjGSBqw.js create mode 100644 scripts/MfxzwJz2o9ho2hOM.js create mode 100644 scripts/MgMMoC4Umpg7fmNI.js create mode 100644 scripts/MgTqCMRjxhezT73T.js create mode 100644 scripts/MgZreqq3Jua10c8s.js create mode 100644 scripts/Mhb67xufvA9uWO21.js create mode 100644 scripts/Mir4FMHQRdVqazAF.js create mode 100644 scripts/MkEcdViivk7abf1x.js create mode 100644 scripts/MnXny8SCh6OceJc9.js create mode 100644 scripts/MnqQkXVp20Lw84I1.js create mode 100644 scripts/Mp8UjuCLa9jdzhBS.js create mode 100644 scripts/Msygc7oQQPB5fw0b.js create mode 100644 scripts/MwUzyAgd0yPnmZCH.js create mode 100644 scripts/Myl1Ishu9GBraYUZ.js create mode 100644 scripts/N2MeOlf0GjPiRcSb.js create mode 100644 scripts/N7nGncsPrTz2ZbDA.js create mode 100644 scripts/N8hA6ysHCTlLd8Kj.js create mode 100644 scripts/N9kA46ZQ9LiRjy6T.js create mode 100644 scripts/NDvNGATDM2xPFJK0.js create mode 100644 scripts/NNytXz5XFPrEF6dw.js create mode 100644 scripts/NQSvFWhmBQAyx5Zz.js create mode 100644 scripts/Na7Nanl9YmxZlTo7.js create mode 100644 scripts/NdquQqyuOkGCj8Uo.js create mode 100644 scripts/NkqtQaLEGYst0PUO.js create mode 100644 scripts/NnA4zpuO6iUXKhH7.js create mode 100644 scripts/NnDq4miIPNEtZUWb.js create mode 100644 scripts/NrVFrIXM8GnIbojv.js create mode 100644 scripts/O7lXFZLrLdFaShGR.js create mode 100644 scripts/O9fc0hLHdkTgSuLg.js create mode 100644 scripts/OCFrGXAYfo9OYnhc.js create mode 100644 scripts/OEy2lxvic37dRBEt.js create mode 100644 scripts/OGX4BneaYAnV25TO.js create mode 100644 scripts/OJMgS8ZQv0j4tEFf.js create mode 100644 scripts/OMAUX1fnHyIpplul.js create mode 100644 scripts/OXoqtpOdfkURZbuL.js create mode 100644 scripts/Oa9FmLXRRZRpLrrq.js create mode 100644 scripts/OcQe0zfksf1DCJYe.js create mode 100644 scripts/OeCgX3hIsfLfmGvC.js create mode 100644 scripts/OeKeQAAcJhdI4Qky.js create mode 100644 scripts/Ofn6vDbP3fZ4UlSc.js create mode 100644 scripts/OgSI0Z6SHjYuqKIz.js create mode 100644 scripts/OicQSEVZBbqLtrcf.js create mode 100644 scripts/OnkEe4ISru1hjJWP.js create mode 100644 scripts/Op88kMtimSEWlY2h.js create mode 100644 scripts/OqLKL0PiCvYH2QxW.js create mode 100644 scripts/OqxeuZfZDfm9ax6h.js create mode 100644 scripts/OvIELZLvnlN2H2uw.js create mode 100644 scripts/OxsBnnVI3Smpknpb.js create mode 100644 scripts/Oz7pWF9mEc1pQypj.js create mode 100644 scripts/P29tT1eMMdAw3CPF.js create mode 100644 scripts/PBW6IZtwawNHxB6y.js create mode 100644 scripts/PI1QNaKFeqood6d7.js create mode 100644 scripts/PMISUsaEDBA7D3od.js create mode 100644 scripts/PVjaKAHTKDA0rA9J.js create mode 100644 scripts/PdClojv7yNgQpOUc.js create mode 100644 scripts/PeZYj8b0vedyJj00.js create mode 100644 scripts/Pg9C6nJX5QHIdqa9.js create mode 100644 scripts/Ph3TdQw1lGiFr049.js create mode 100644 scripts/PjRxGuUDKGmSmVDc.js create mode 100644 scripts/PmELrzD3RmF9qKkO.js create mode 100644 scripts/PoNnT5EqvLj2r5yf.js create mode 100644 scripts/PwqTmw7rsG8hzqCS.js create mode 100644 scripts/Q1trEhtqjIiDvFPF.js create mode 100644 scripts/Q4EQgP4gZR8TTm7S.js create mode 100644 scripts/Q68WiUWY7GxiXBbT.js create mode 100644 scripts/Q9EmlWmuDac83cJw.js create mode 100644 scripts/QF8LanKNoAlTkQG0.js create mode 100644 scripts/QKTA2TqZ77pvHWSJ.js create mode 100644 scripts/QKjR6P1WEHXf4K77.js create mode 100644 scripts/QPVVDPcJ4Xi5FmQl.js create mode 100644 scripts/QQ2gHThZHdO4yLLX.js create mode 100644 scripts/QQPiREc50HT5W2Tr.js create mode 100644 scripts/QRSACifDrvojIXHB.js create mode 100644 scripts/QaGNsqKm2Nf0zGVm.js create mode 100644 scripts/QbIYnshWeP1U8SUy.js create mode 100644 scripts/Qgn92fZyc3Psn8QJ.js create mode 100644 scripts/Qk7t2l5ep9RDVpgE.js create mode 100644 scripts/QoEOxRruQXYrZrv3.js create mode 100644 scripts/QqkE7rlqhkeRohFD.js create mode 100644 scripts/QqybHxNCzPEzG1Qh.js create mode 100644 scripts/QwHoqu2oO8QO8Mad.js create mode 100644 scripts/R32U01LBjBrK1pns.js create mode 100644 scripts/R5dOZWFxE2n6tooX.js create mode 100644 scripts/R6SnyF3y4Vsq6oga.js create mode 100644 scripts/R95pDZMHnD9iHAl8.js create mode 100644 scripts/RDtJXji3hgcKnEBk.js create mode 100644 scripts/RHyBLYT5oHf7EPnG.js create mode 100644 scripts/RI8crJxeD8JLDwMh.js create mode 100644 scripts/RJpglw5eVRM1f9t0.js create mode 100644 scripts/RKIFGN583PQnqHGk.js create mode 100644 scripts/RNHrSTfMLXm5sXkC.js create mode 100644 scripts/RNr9CwyvLhlnwD2h.js create mode 100644 scripts/ROXCqAFSTLouJniL.js create mode 100644 scripts/RSsGiDFibuqg3sHr.js create mode 100644 scripts/RZlMkxJz5apn0mUj.js create mode 100644 scripts/RprZWlnopSqZt7KZ.js create mode 100644 scripts/RqWnhnwFxaHubgiA.js create mode 100644 scripts/RrchOMpEdIvceJxl.js create mode 100644 scripts/RuW1PWUFxIbbSlIm.js create mode 100644 scripts/RvipIYj9H7n4UDMe.js create mode 100644 scripts/S1QihXuvdEVzeRtB.js create mode 100644 scripts/S3DCTw4yJ85eSaKp.js create mode 100644 scripts/S3Dev4hleOYqDNe9.js create mode 100644 scripts/S4793DLFhjMxpM8x.js create mode 100644 scripts/S6tUyFJvGMV19mvP.js create mode 100644 scripts/S95QqpX1cZyIVCPy.js create mode 100644 scripts/SGr50Hq1AHIEzIFN.js create mode 100644 scripts/SLy1Fs3oXcHgFgjK.js create mode 100644 scripts/SO4Aa9argKbuO9rQ.js create mode 100644 scripts/SPOkFWZWziZk5b7A.js create mode 100644 scripts/SRmfstEs278bP9Pz.js create mode 100644 scripts/SSqGxyN9hw0HDmED.js create mode 100644 scripts/SWIJjM2RCmzfr64u.js create mode 100644 scripts/SrCHfOJFZwDickqa.js create mode 100644 scripts/StAderQaQQsxb6Rv.js create mode 100644 scripts/SvFKt9hMcFQjeILA.js create mode 100644 scripts/T5fiTzhXEQAv9Drf.js create mode 100644 scripts/T74FEjfFrh3f6MKv.js create mode 100644 scripts/TAw9vXnfyIAl5DGs.js create mode 100644 scripts/TBpNFRL5uehs0fze.js create mode 100644 scripts/TEiNj5FgkoD3YbhS.js create mode 100644 scripts/TGN070HeJLl3gSMY.js create mode 100644 scripts/TNWmIkuubqBn38he.js create mode 100644 scripts/TOyQLrugFGzwc5nY.js create mode 100644 scripts/TQRL4mZhZohXg1Au.js create mode 100644 scripts/TU2xjbJ0zFtytF3J.js create mode 100644 scripts/TY0xSQ00XXyEr49r.js create mode 100644 scripts/TcqumwUFAL6V0cty.js create mode 100644 scripts/TdjlJro0RRVSh8g8.js create mode 100644 scripts/TmaS8o33825QUMrx.js create mode 100644 scripts/TnFobCxG4pxlYmKr.js create mode 100644 scripts/ToKlHDAjJOsC51ag.js create mode 100644 scripts/TpZItJ5Ugbazaobd.js create mode 100644 scripts/Tq45Nd8J3eTvHT41.js create mode 100644 scripts/TrIYdcG3jDER4WgY.js create mode 100644 scripts/TwgdEucxcHloc4cX.js create mode 100644 scripts/TwwKxFjK6TNGKbRB.js create mode 100644 scripts/TxfmxDGBj04AQQpt.js create mode 100644 scripts/TzgmYRXFXRspIo1i.js create mode 100644 scripts/U1RUcgP8LD2qeGTm.js create mode 100644 scripts/U1UpSRJOSjPpO4HS.js create mode 100644 scripts/U26XMie3Kjoddisj.js create mode 100644 scripts/U2xKn7R1gm8kiQm8.js create mode 100644 scripts/U4A8FDNmwBGTuQZO.js create mode 100644 scripts/U5ndCwcJ1s3Ns26w.js create mode 100644 scripts/U78c4oUjKwyUu6jT.js create mode 100644 scripts/U9xh2wriSqCosugW.js create mode 100644 scripts/UC6G3pFQwzUhrw6F.js create mode 100644 scripts/UH5MIzqi2MvEqTwj.js create mode 100644 scripts/ULmZMLezDamerN04.js create mode 100644 scripts/UTlgF4azrGQZsoDv.js create mode 100644 scripts/UWrzokgabRKUpnkG.js create mode 100644 scripts/UYLXm2W6jVn21Age.js create mode 100644 scripts/UaImulhbPURkLJg2.js create mode 100644 scripts/UgQW0UMPOZ0jwfVJ.js create mode 100644 scripts/Um6xMMiUftLXJxEt.js create mode 100644 scripts/UnqnWi0dZYLf5fTT.js create mode 100644 scripts/UsAHQecRlWL5PhP6.js create mode 100644 scripts/UsuwsmU1TUQLQVM2.js create mode 100644 scripts/UvycHOjSPm5Zv9KJ.js create mode 100644 scripts/UwjkHRAQHESdYXJs.js create mode 100644 scripts/Ux4buMc7llF1Kg8p.js create mode 100644 scripts/V1D2Uo3WDKYQePU3.js create mode 100644 scripts/V2lsVTi6q28eL5jl.js create mode 100644 scripts/V7qmFwUMCY2tfziH.js create mode 100644 scripts/V9wD9FWHWxZUOGSI.js create mode 100644 scripts/V9xm4X1x3lPYTQaI.js create mode 100644 scripts/V9zm2hKUVLVZtAcN.js create mode 100644 scripts/VAPsww9x3HAw1sKP.js create mode 100644 scripts/VAs1nXvicdQK18Do.js create mode 100644 scripts/VKpKq4RSbI1KkUQK.js create mode 100644 scripts/VNOKTzCrFbZ6PJUj.js create mode 100644 scripts/VQaC6ynouW5EQCbC.js create mode 100644 scripts/Vb7rgl8T4VRswbnZ.js create mode 100644 scripts/VbL0TgaBAmYjrezZ.js create mode 100644 scripts/Vkuu70BZV4DPYO2Q.js create mode 100644 scripts/VlFUDaKUYoBYKYn0.js create mode 100644 scripts/VqTrKPtxv9hpn0Hr.js create mode 100644 scripts/VuE1mhrB6X6MYTzg.js create mode 100644 scripts/VurA2XNqC0d9U49C.js create mode 100644 scripts/VzO0ZDcTWvaBn4vm.js create mode 100644 scripts/VzgTGb5QXKoyPNh3.js create mode 100644 scripts/W9nyUNQStMr1pUHJ.js create mode 100644 scripts/WB6sIpLEPC8YPX67.js create mode 100644 scripts/WKXyVHQwQCNTfSKv.js create mode 100644 scripts/WO5n7Vbx8AgoVrwC.js create mode 100644 scripts/WPQbVpD1uwSLAXq1.js create mode 100644 scripts/WRe1eGmGVGejPcS8.js create mode 100644 scripts/WTRYAEzwxRuGENyI.js create mode 100644 scripts/WY3DajPRGcMNt158.js create mode 100644 scripts/WiYtNU2Y5BJfIpeM.js create mode 100644 scripts/WnWA0e0bgqBsZp2L.js create mode 100644 scripts/Wo4wQKUxSItAhRzZ.js create mode 100644 scripts/WwxXgsNxlccmqTze.js create mode 100644 scripts/WzMmwjZbhyCbHxyZ.js create mode 100644 scripts/X3bLbOfcJAftOMa7.js create mode 100644 scripts/X7ikFOGKYzTMr4d1.js create mode 100644 scripts/XClTZOjuhcxWLF51.js create mode 100644 scripts/XO9m2AvFRAAeEuty.js create mode 100644 scripts/XPxAKqPpPYE4E6B5.js create mode 100644 scripts/XRrGBbplNLZpXnCH.js create mode 100644 scripts/XXnzUdsIYQ9Wjyu0.js create mode 100644 scripts/XYaYeiVkc5GKYTjC.js create mode 100644 scripts/XcvDYNZgJ2rpAdDV.js create mode 100644 scripts/Xe8ijqWU3bbtq7ZY.js create mode 100644 scripts/Xf4FcZ4ZLdWmOXBa.js create mode 100644 scripts/XfRvVBTVIuAm8RaZ.js create mode 100644 scripts/Xg4qHLsyXGuUZfT8.js create mode 100644 scripts/Xk9XPklxxTvFlwpI.js create mode 100644 scripts/XthZ3GCC3WhsEI2g.js create mode 100644 scripts/Xu5cED1MhT4ba7da.js create mode 100644 scripts/XuFxKPYheYF4WMmQ.js create mode 100644 scripts/Y6ppJBerpM3TtSic.js create mode 100644 scripts/Y7McxsHFeGhwQx0J.js create mode 100644 scripts/Y8J66v8VTKUASGuK.js create mode 100644 scripts/YDqpKJVy8ijEKdLX.js create mode 100644 scripts/YEBw2CzHYxsTpTy5.js create mode 100644 scripts/YFSgWRXel0bWE3EE.js create mode 100644 scripts/YHEIkBKWXKNPqglh.js create mode 100644 scripts/YMaxpXnml01bLGpO.js create mode 100644 scripts/YOKoZFlBEpFavfOS.js create mode 100644 scripts/YQ2LnLxp0xgy3meI.js create mode 100644 scripts/YRUTliBzAQvncGNX.js create mode 100644 scripts/YaKnYEbmmZZtByJc.js create mode 100644 scripts/Yf2MmOzazzMdmoPU.js create mode 100644 scripts/YhhiWEQbox3WZA3Q.js create mode 100644 scripts/YjAIsFlxKTJvYs60.js create mode 100644 scripts/YjJcRdytVRm88qLn.js create mode 100644 scripts/YsS2RZsl2ZsqjhWV.js create mode 100644 scripts/YwLEw4BiKq4EMy57.js create mode 100644 scripts/YyKU2rIRmFSCqSlW.js create mode 100644 scripts/Z1zriXibT0mAmdhb.js create mode 100644 scripts/Z30zYayPryXOjT5N.js create mode 100644 scripts/Z4WrrlVGpPY4iUbG.js create mode 100644 scripts/Z52yZDm6lP6fOP3O.js create mode 100644 scripts/Z6OmmC0irJzxSnMH.js create mode 100644 scripts/Z6jNlyZMECkW4Hon.js create mode 100644 scripts/ZCkYe5XMVY1RWMXG.js create mode 100644 scripts/ZCrfdLPOxiNDCDSg.js create mode 100644 scripts/ZCuOjLAeENKN1Q4L.js create mode 100644 scripts/ZEXhYJqqxF6QAixX.js create mode 100644 scripts/ZEdDcBka21rnMuz5.js create mode 100644 scripts/ZGlJnrIemqul24j7.js create mode 100644 scripts/ZI2YnAAGoLpmVDIL.js create mode 100644 scripts/ZJy2rvpKmUHXGrAi.js create mode 100644 scripts/ZMwJad6v4G13SgjR.js create mode 100644 scripts/ZNW3ubbKIYXAyE48.js create mode 100644 scripts/ZNu4B0OdjkM9lmtu.js create mode 100644 scripts/ZTE8LdRblyG4yYoE.js create mode 100644 scripts/ZYsMgB4BwXBJcpYf.js create mode 100644 scripts/ZbuW8y7t9Y8oUFWq.js create mode 100644 scripts/ZdHvGvSJBsIuPphF.js create mode 100644 scripts/Ze9E2zR1GFGWGMVH.js create mode 100644 scripts/ZhuitY1KOU1Xe7cP.js create mode 100644 scripts/ZqTW093qENOwGONP.js create mode 100644 scripts/ZrePyV2spv3v65Tg.js create mode 100644 scripts/ZsQR3AVKi0v5U593.js create mode 100644 scripts/ZvbBM4gTJHPdU8jU.js create mode 100644 scripts/Zxh4RAENoaAQAaNg.js create mode 100644 scripts/ZxtOdwsM2Sqj9Zam.js create mode 100644 scripts/a02tlRCXpaoaDjSN.js create mode 100644 scripts/a0YU3whUm16wGBNu.js create mode 100644 scripts/a4Aza4a9v8JMU8dC.js create mode 100644 scripts/a6gacHsvgwtsIFSQ.js create mode 100644 scripts/a7pEvCycVnFBXGAQ.js create mode 100644 scripts/a8RabrnJ08O07rDX.js create mode 100644 scripts/a8i0sA1RBnD8nHZt.js create mode 100644 scripts/aAvJrAKLzXhS9qN6.js create mode 100644 scripts/aCVtaW8ag1WibcAr.js create mode 100644 scripts/aIYUsBIDKWJ3CEtj.js create mode 100644 scripts/aMHGjWyn6BXCI4pw.js create mode 100644 scripts/abLWYtNTu1UVDQAs.js create mode 100644 scripts/abVIvJBzuskNzCQv.js create mode 100644 scripts/afdmOvPGMpEdZvCb.js create mode 100644 scripts/agsm3NI1NDtHRG4y.js create mode 100644 scripts/ahbA7o5G9dzMFl76.js create mode 100644 scripts/alJgj25l3239h2SW.js create mode 100644 scripts/ayIbw2Vw2t9xg33P.js create mode 100644 scripts/b1zMefdoZYtzCm7i.js create mode 100644 scripts/b2Kb4IuD22RhKhR0.js create mode 100644 scripts/b2WaqRna5CFXmbDG.js create mode 100644 scripts/b5DfAWtpV1x2R8If.js create mode 100644 scripts/b5prg1FLjCAvBjLy.js create mode 100644 scripts/bBdXzBmxgFFBwMMS.js create mode 100644 scripts/bEVlJOOA1kLlzpWx.js create mode 100644 scripts/bLkt8VpTTPoTxW0W.js create mode 100644 scripts/bMEFHPCei2evnZZw.js create mode 100644 scripts/bQyVajMN1ETwlzvM.js create mode 100644 scripts/bRtZH0xRh8dgqMeW.js create mode 100644 scripts/bWr8leucbWslBCYG.js create mode 100644 scripts/bhXUW7IJtEaUGAoV.js create mode 100644 scripts/brNRqfpPqD2Ki0cM.js create mode 100644 scripts/btPrQkGRKUkhNe3N.js create mode 100644 scripts/bwtQOSWn120NICkf.js create mode 100644 scripts/bwx9wuEOJPF7btD1.js create mode 100644 scripts/bzaoWcieMFaU5B5l.js create mode 100644 scripts/c31hjp7k0hlpdGBC.js create mode 100644 scripts/c3KA1knL2NYNUEww.js create mode 100644 scripts/cAioHYtlxuOCwRLh.js create mode 100644 scripts/cApfxL7Ic0NKdoSr.js create mode 100644 scripts/cBSy9CR5NZvcLRg8.js create mode 100644 scripts/cDBhmHn5kjgWBAlT.js create mode 100644 scripts/cEg09bnvZD6Ysnpc.js create mode 100644 scripts/cJFDnq1HI4gXWcJo.js create mode 100644 scripts/cK1Jysfu5IMUUH0C.js create mode 100644 scripts/cOuukVo8WakDZIUj.js create mode 100644 scripts/cUFCL02JoaZObRcX.js create mode 100644 scripts/cUnbADgOQ4fMKgrH.js create mode 100644 scripts/cV9JiAgUPOeUHKnS.js create mode 100644 scripts/cYPIXzl86a3LFsTE.js create mode 100644 scripts/cgmA2N0MkjA7qIZy.js create mode 100644 scripts/ch5SD2XOQfcYo0X5.js create mode 100644 scripts/chUpiI3el8IO8MSs.js create mode 100644 scripts/csLKDJKZaUK9vwLT.js create mode 100644 scripts/ct6WGaRMfrcnHhyv.js create mode 100644 scripts/cuqCtQsfLBBAGjnu.js create mode 100644 scripts/cysQDjlDzT8HdNeo.js create mode 100644 scripts/d29mu8vRt9AQUm0L.js create mode 100644 scripts/d6mVm08o8SeklAcW.js create mode 100644 scripts/d9iU08yvqcffF026.js create mode 100644 scripts/dAMtbn3uQwF8KpKU.js create mode 100644 scripts/dIxYt421K010eogY.js create mode 100644 scripts/dM449AU0FQRnOc3l.js create mode 100644 scripts/dM8FbRH2V8CpOkXw.js create mode 100644 scripts/dSmRhZ6o1bUcOSF9.js create mode 100644 scripts/dXGosSxdoYbET2O8.js create mode 100644 scripts/dZ4c5pKDqQV02aIK.js create mode 100644 scripts/dbOSvpgcPjsc2uvq.js create mode 100644 scripts/dbYjr4oG67Z880To.js create mode 100644 scripts/dcwY8dCd3PNCEzk6.js create mode 100644 scripts/dfEgat3jz4EtWszH.js create mode 100644 scripts/dfnCK8jCPXNLM7Gh.js create mode 100644 scripts/dk02qSJfJaIo3Geh.js create mode 100644 scripts/dkY7WRYjFVh8GB0m.js create mode 100644 scripts/dkiNmwFXztIVbuxg.js create mode 100644 scripts/dqvHDMlcitLx1pUx.js create mode 100644 scripts/dt85W8pzZ09w1QLi.js create mode 100644 scripts/dtFvpY96RPzNnphq.js create mode 100644 scripts/dwSgcFxKN3S0hLJL.js create mode 100644 scripts/e0TuMgYuI7ZtGoQr.js create mode 100644 scripts/e34s1XxHckAWfwHt.js create mode 100644 scripts/e7IxnxePdXSy6L4E.js create mode 100644 scripts/eAtqyBd1HsDWuBuI.js create mode 100644 scripts/eHRv7f2BTtle6Y1K.js create mode 100644 scripts/eHgk3HZ6eyLFTZ9o.js create mode 100644 scripts/ePPgxQOqL1Uhz2k9.js create mode 100644 scripts/eWWLmA2xINR321aK.js create mode 100644 scripts/eb69QPmNQEJXtk4l.js create mode 100644 scripts/ebDQH0MdGAG02CHl.js create mode 100644 scripts/ed7Sud9HM3uB2j6b.js create mode 100644 scripts/egDtqMxe3iekc6hv.js create mode 100644 scripts/eh1J3s0s4A2AxoFp.js create mode 100644 scripts/ekjJQHyMbZT2vqdc.js create mode 100644 scripts/eqxE7nBO13yJS7hc.js create mode 100644 scripts/esuLwq4g5T8k1kLT.js create mode 100644 scripts/ezGqDoC9hNRBnFTB.js create mode 100644 scripts/f062aa2BNClx08D6.js create mode 100644 scripts/f3rXusHh6VIpVPUl.js create mode 100644 scripts/f4vvAGQ8OGoEbrgy.js create mode 100644 scripts/f5Mp3kXwCFdPkW6N.js create mode 100644 scripts/f6WnrJvoNkfoNN9Y.js create mode 100644 scripts/f7WZvYle9iqefRsh.js create mode 100644 scripts/f8cnfvGKJH3bYVGN.js create mode 100644 scripts/fEFfHFeJxkR0aIJK.js create mode 100644 scripts/fEyKQqCjDwml3DXO.js create mode 100644 scripts/fFGuTi0HLjwneMcJ.js create mode 100644 scripts/fIUxKZMWJ8HMPmH9.js create mode 100644 scripts/fKzlu6fFE2th9uIJ.js create mode 100644 scripts/fP2edYbj6QjPPAjL.js create mode 100644 scripts/fPKYkBllp7Et62lX.js create mode 100644 scripts/fY0TsQwnU14fdPl2.js create mode 100644 scripts/fYLSe6CrYciap5y8.js create mode 100644 scripts/faRFSsrQylQRZFLk.js create mode 100644 scripts/fcY3pa72dELnOFXV.js create mode 100644 scripts/feMPZhhFeXRtKdKY.js create mode 100644 scripts/ffvcCEazZBinHlUX.js create mode 100644 scripts/fiF9sM5UpcHMYa33.js create mode 100644 scripts/fkFmNcesqqNTMhVn.js create mode 100644 scripts/fl762icfKrt9ear2.js create mode 100644 scripts/ft0LaRWZT5WtnptP.js create mode 100644 scripts/fve7tiyF5X9B7mHJ.js create mode 100644 scripts/fzTB7t3x4bLmAXji.js create mode 100644 scripts/g07HI7vyqiFXPB0o.js create mode 100644 scripts/g0SzfsLyW7aD2F19.js create mode 100644 scripts/g1L8OYO9nCOhdKGL.js create mode 100644 scripts/g4t56A09yrpZaJQ2.js create mode 100644 scripts/gFUXBbTskQBKjxqm.js create mode 100644 scripts/gKIPujyuFSn0No9v.js create mode 100644 scripts/gKPL3t4vlZAsvtGr.js create mode 100644 scripts/gL0ftUnK5TNXBRRt.js create mode 100644 scripts/gPQrszvIgGlW9yM4.js create mode 100644 scripts/gVpFUka7qfGiEC1v.js create mode 100644 scripts/ga6bQzPuoIiQQrKg.js create mode 100644 scripts/gbhxWXboV9CytWNU.js create mode 100644 scripts/gh2KS1prBKcsSK6M.js create mode 100644 scripts/gnVpxOeBZpNF4HIF.js create mode 100644 scripts/gpPaCe6yER79l4u8.js create mode 100644 scripts/gpuBg3y9rocJL7yT.js create mode 100644 scripts/gqZLfIr6svrtdwdC.js create mode 100644 scripts/gsCnd3mf1vXFU2ei.js create mode 100644 scripts/gu72JaTs9GrSiVTd.js create mode 100644 scripts/h0DfPwUUOBjyAHMZ.js create mode 100644 scripts/h1XKoMuVnS0bagRO.js create mode 100644 scripts/h766UvswLCsxcMow.js create mode 100644 scripts/hA8PzeiCsHqqlUZm.js create mode 100644 scripts/hCzxUyO6mjLNIpaM.js create mode 100644 scripts/hDC6lroDEPVBituR.js create mode 100644 scripts/hK0YMJfYbpbJZizO.js create mode 100644 scripts/hObTbWi4ZdwXimIW.js create mode 100644 scripts/hR1qD2kpFHF8JT8h.js create mode 100644 scripts/hSlEY2oh8quVmdXR.js create mode 100644 scripts/hZAax4emLahEEqcZ.js create mode 100644 scripts/hfO4INH3EeETDTFt.js create mode 100644 scripts/hhCs5VBKx50S5IsY.js create mode 100644 scripts/hhv7PrRdlf9sfC82.js create mode 100644 scripts/hlHKeFWrOA8CsLr9.js create mode 100644 scripts/hluehsCuBZYc1Ejt.js create mode 100644 scripts/hmk8zV1LTElHUI8A.js create mode 100644 scripts/hnsmzvcuiUYB065I.js create mode 100644 scripts/hpwJRAhCsXTp9bd9.js create mode 100644 scripts/hwHpIunCq3ifk2QU.js create mode 100644 scripts/hwOZxgt7e65iWvYz.js create mode 100644 scripts/hxmwtw5zAHyS2upG.js create mode 100644 scripts/i59IpmZNLJEPWZ3L.js create mode 100644 scripts/i5AN97A7IOeygEFA.js create mode 100644 scripts/i7xl0jNpLnBT2h2l.js create mode 100644 scripts/iAo3wxMLA64rsKjj.js create mode 100644 scripts/iBEPQ3NwtI9DfkEy.js create mode 100644 scripts/iHn3YzvqNfbwzjZz.js create mode 100644 scripts/iLpq4yCFN6YACrYA.js create mode 100644 scripts/iM4B3IZ4VtpZsl09.js create mode 100644 scripts/iM6JLF8jDXMViReZ.js create mode 100644 scripts/iMDZLr7ueJWBnilj.js create mode 100644 scripts/iMu8BZ7eHMAbPEO1.js create mode 100644 scripts/iNAQJa5HyaEckknX.js create mode 100644 scripts/iT0h3VZLEBQnn5Bx.js create mode 100644 scripts/iT3C15fMyQrj1RmG.js create mode 100644 scripts/iVhi3Z6zPaf1bf8g.js create mode 100644 scripts/iX0ctHYHg12pjaCU.js create mode 100644 scripts/id9ZdkERMZnZTWXt.js create mode 100644 scripts/igVAVU7DOuzhNG14.js create mode 100644 scripts/imKVsCy8rya2gkwO.js create mode 100644 scripts/inPxRSx0CDj1nwAm.js create mode 100644 scripts/ioeTj5mx8jlA5EX5.js create mode 100644 scripts/ipkkRffJh61WE7zR.js create mode 100644 scripts/iuSoKntfJ4eAPafQ.js create mode 100644 scripts/iuYuf05BNuZ5fllI.js create mode 100644 scripts/j1AmrY1SxFJQyapo.js create mode 100644 scripts/j3zDMWkns32Yrxn3.js create mode 100644 scripts/j6Bf1iivH8cqSnnK.js create mode 100644 scripts/j98hvy6r9G2Vjmid.js create mode 100644 scripts/jC8o5PbnqEvOoZ9N.js create mode 100644 scripts/jFwema0iwzBphxie.js create mode 100644 scripts/jGDk7avWFSnyFoql.js create mode 100644 scripts/jHgxpe6TJDlP3oTn.js create mode 100644 scripts/jLsL4KRI6LEG9Ii2.js create mode 100644 scripts/jObJanFoev4N6ZRv.js create mode 100644 scripts/jRSgPhpfN7MH7TTp.js create mode 100644 scripts/jW87rmQLtROdVEhW.js create mode 100644 scripts/jWkfoVpHLiRaHTza.js create mode 100644 scripts/jYJRO5XPyG7y6fih.js create mode 100644 scripts/jbZPLb4wuqJpHLUx.js create mode 100644 scripts/jdS2u1tQPYeO55WI.js create mode 100644 scripts/jfk5VDKMTIf4ee0v.js create mode 100644 scripts/jgO1Kf60Ctt6R0qO.js create mode 100644 scripts/jmxlpyLrIuoxQtvU.js create mode 100644 scripts/jpcU8FFWSlQ3gD0L.js create mode 100644 scripts/jrvj7bRyMBB9LixP.js create mode 100644 scripts/jsgLEVYvMieyYT6L.js create mode 100644 scripts/k3FqFgsF6a3TkxAD.js create mode 100644 scripts/k8TC0yzp4xfOXD2n.js create mode 100644 scripts/k9SvH4Lm3ZuI8S1N.js create mode 100644 scripts/kBXVEnSWzaQZLkJH.js create mode 100644 scripts/kIM4Fs1lFVV7TSnj.js create mode 100644 scripts/kMSdRskYDI2J1gnp.js create mode 100644 scripts/kWynO1lQzjiSs8RK.js create mode 100644 scripts/kYiDBPRKIokFkr4Z.js create mode 100644 scripts/kYmscP2HuXjDovBD.js create mode 100644 scripts/kiJ6AiaYVUjt6aV6.js create mode 100644 scripts/kkC5EhqA05U6U0gU.js create mode 100644 scripts/kmsGLWGxCY8Z8jVG.js create mode 100644 scripts/kvaN100w0nBUlLbj.js create mode 100644 scripts/l8qFKSnMpy4P7XQR.js create mode 100644 scripts/lCOdnKz8XpnkDs6Q.js create mode 100644 scripts/lFO6XdfUODmFArqx.js create mode 100644 scripts/lII4KMRblqwFBlsV.js create mode 100644 scripts/lOzkngzye4RmvALp.js create mode 100644 scripts/lPudo1grrVp05i7a.js create mode 100644 scripts/lQJ68n3y1xDyNicE.js create mode 100644 scripts/lSOAZ4FG44bT4jh1.js create mode 100644 scripts/lU4s3UTtBkU38djI.js create mode 100644 scripts/lYYkGzqNshiYc7WI.js create mode 100644 scripts/laptAldsT0Fm1rDt.js create mode 100644 scripts/lhemR8EP5tGNKout.js create mode 100644 scripts/ljpM7muMyxGD04EX.js create mode 100644 scripts/lol5J6h0pErzM71s.js create mode 100644 scripts/lvjcddwRiN9iGruy.js create mode 100644 scripts/lwVhn4bSXJ3eoT9q.js create mode 100644 scripts/m3qEVO5fseV6KHXa.js create mode 100644 scripts/m58MpMZBblpq5LJu.js create mode 100644 scripts/m8qBlbH7ROoqa22o.js create mode 100644 scripts/mBcLf11upaHS8AQq.js create mode 100644 scripts/mJ9eMPub4epJSf00.js create mode 100644 scripts/mPxmCsXYirAIT913.js create mode 100644 scripts/mRvLsSVxNyt8LVZb.js create mode 100644 scripts/mTnmPcjWmvScIBWY.js create mode 100644 scripts/mV4Tmc0yfpL09KV7.js create mode 100644 scripts/mYL4i1vNlMl4vFYy.js create mode 100644 scripts/ma0sWhebqwdRHWvY.js create mode 100644 scripts/maKr58mvvyKxFyC3.js create mode 100644 scripts/masOBNgSi5HYkf3m.js create mode 100644 scripts/mgLGN1XPzPE4dReN.js create mode 100644 scripts/mr8qm5Bg6k1idZ6Q.js create mode 100644 scripts/mziJBUYcsrhkdcCJ.js create mode 100644 scripts/n5RJqJL9fdRIxkuN.js create mode 100644 scripts/nCWAflBj7Si2BI1Q.js create mode 100644 scripts/nD2QVg3DrPK3foMf.js create mode 100644 scripts/nEaF3jbCiVYD8jia.js create mode 100644 scripts/nGTxNWBUBgTr87wU.js create mode 100644 scripts/nHJdlqbOP0ECgywb.js create mode 100644 scripts/nSXzktHyNjGUXjaw.js create mode 100644 scripts/nYtAjSArsNbrU2ob.js create mode 100644 scripts/naF5EWr1CBkYRZTK.js create mode 100644 scripts/ncIjDE6TFx88IQA1.js create mode 100644 scripts/neaaVy6D6tfcst5P.js create mode 100644 scripts/ngMm7SgtVqVovFJG.js create mode 100644 scripts/njPP9wDAsdh4WHIj.js create mode 100644 scripts/nkbTnaeBpthyhw4J.js create mode 100644 scripts/nkdKBJ8ItqWiRAWL.js create mode 100644 scripts/nuIpPD4uaZRuJni8.js create mode 100644 scripts/nvrFhHHVq3KzirlR.js create mode 100644 scripts/nxNqWmmF6mJTnrLo.js create mode 100644 scripts/nzh8d46l1ikhkz8Q.js create mode 100644 scripts/o1zD8mej9TWKNxUq.js create mode 100644 scripts/o3JUBKLvE6bBxK2n.js create mode 100644 scripts/o88xuUConwt0vFLw.js create mode 100644 scripts/oDNfCNyt5KaUYmg2.js create mode 100644 scripts/oEsUsI74yGTZ9CwU.js create mode 100644 scripts/oGdsGPgJWcyWkiWl.js create mode 100644 scripts/oHenUKtaS3jT5xQn.js create mode 100644 scripts/oPg4se8iQRD14kmB.js create mode 100644 scripts/oV81zgbZsuTFG6L2.js create mode 100644 scripts/oW1gtYVT5nrxDjM7.js create mode 100644 scripts/oWM43EdUiyHgUlfW.js create mode 100644 scripts/oWa7RkScnl6lR5vd.js create mode 100644 scripts/obIXhQXKFyyQoNNV.js create mode 100644 scripts/ocBW3osTFnb5JCfe.js create mode 100644 scripts/ofddAHvzn1xUueSG.js create mode 100644 scripts/ogJBAXTXyhTqACPO.js create mode 100644 scripts/ohl803m0tUwNfKAk.js create mode 100644 scripts/okW06V9UiPC4Vcrn.js create mode 100644 scripts/okr3TtzpFoefUuJS.js create mode 100644 scripts/oqgd9G6oI1ncPYLw.js create mode 100644 scripts/p222EiR8RRtlPm31.js create mode 100644 scripts/pAgiAGyaLJY10894.js create mode 100644 scripts/pBMioPUtDn1mk9f5.js create mode 100644 scripts/pG5OVokZzCRHIrwz.js create mode 100644 scripts/pHyXdPnWwoFrUA5n.js create mode 100644 scripts/pLKv4moua6XhNdmA.js create mode 100644 scripts/pNPjXEoQGHLKzq0r.js create mode 100644 scripts/pPV9oEydXb7oi6jX.js create mode 100644 scripts/pR4Q2OnPxXtwRVli.js create mode 100644 scripts/pnB9TzSEytkxk3Rb.js create mode 100644 scripts/pq1YQffxtOcqCRTn.js create mode 100644 scripts/px7eEdhOEt7zOTrq.js create mode 100644 scripts/pzimrxrqpv282Oqb.js create mode 100644 scripts/pzknBcJtZWeliE27.js create mode 100644 scripts/q0LvphC8RDSyR0oY.js create mode 100644 scripts/q3nRyXaxksdCiLFM.js create mode 100644 scripts/qAEZgtu5CrfUkxhx.js create mode 100644 scripts/qK4q4o6cQhcGzFX3.js create mode 100644 scripts/qSwCYMMiIHmSV1X5.js create mode 100644 scripts/qT0WBPxLMMO9gvCd.js create mode 100644 scripts/qUwnVlWpsmDom3RK.js create mode 100644 scripts/qZschZU0nee0kJlk.js create mode 100644 scripts/qaVde0sTuMBRi2nl.js create mode 100644 scripts/qcyl98GYD55BkJsD.js create mode 100644 scripts/qijgjcOBCDmhglRX.js create mode 100644 scripts/qjli5evn8UA9uTeZ.js create mode 100644 scripts/qmOt7h17hGAKqQe0.js create mode 100644 scripts/qu194dVXm9Vx1TGk.js create mode 100644 scripts/quPcuKsq2fcild4a.js create mode 100644 scripts/qxzhPtysAjPWspKf.js create mode 100644 scripts/r6hi5vMdLhTaaPfb.js create mode 100644 scripts/rCh3ltUrUMovd2Kc.js create mode 100644 scripts/rF0Z3hTUUnSxL3Mq.js create mode 100644 scripts/rIISfbCShejmJNKw.js create mode 100644 scripts/rLMaVNEGdZ6xj5Au.js create mode 100644 scripts/rRfff55c7elyvbCb.js create mode 100644 scripts/rUGSx06BuBvX9kgf.js create mode 100644 scripts/rVpPNILEzWL9lj6b.js create mode 100644 scripts/rXMylpnEtZpwou6x.js create mode 100644 scripts/ramav4ymrDDkPKK4.js create mode 100644 scripts/ratP9ByLjQPiLlFK.js create mode 100644 scripts/rdaMhMyHrJjQ6vVC.js create mode 100644 scripts/re1UFtxvRRjpPB7Z.js create mode 100644 scripts/red2bt4PGgIWAdTR.js create mode 100644 scripts/rgSwSeB3shIMVMb6.js create mode 100644 scripts/rnioLwiJP7ps5Jwy.js create mode 100644 scripts/roKvPHDSpX4IV11C.js create mode 100644 scripts/rpxQU26BU7nwjtqY.js create mode 100644 scripts/rr4htuVq45onXdRG.js create mode 100644 scripts/rxB1AqfVMDqTRieE.js create mode 100644 scripts/s0kTuDE0qv68V2KI.js create mode 100644 scripts/s5bO0Sf0qpS27Tve.js create mode 100644 scripts/s6eZXfZkC1My6EXl.js create mode 100644 scripts/s7gJQdzuM3fz2zQK.js create mode 100644 scripts/s8idWt9YdMTRfnjV.js create mode 100644 scripts/s8xU6OOZbbfo6VIw.js create mode 100644 scripts/s94yKZ4o5XN4JWM1.js create mode 100644 scripts/sAVpm7hFRHpbCLXm.js create mode 100644 scripts/sB4KB9bT3nQhAoqG.js create mode 100644 scripts/sHfkTRqTWPg2JAGN.js create mode 100644 scripts/sKO8TcLIkCTnFvXu.js create mode 100644 scripts/sNSfDBIA2k17hPYI.js create mode 100644 scripts/sSMg43ZjnNmpytfj.js create mode 100644 scripts/sUHuj00IpoZ7Gd03.js create mode 100644 scripts/sWyO1DNaqb2EdHoW.js create mode 100644 scripts/sYlGRLApZ3Ub24ea.js create mode 100644 scripts/sZwLitzwKBTaFca3.js create mode 100644 scripts/sagKJM6oDFlw4ED2.js create mode 100644 scripts/sbK1a7txpSoXFzyB.js create mode 100644 scripts/scfm5iWWBxWI6QaK.js create mode 100644 scripts/sgS9rblPkQB36C8S.js create mode 100644 scripts/shkBUtUuMPDKvFm7.js create mode 100644 scripts/skVq3eDEYKFF2iZp.js create mode 100644 scripts/sm9d5lk6cM0OuUkf.js create mode 100644 scripts/sx7Ikn8WW00gBFb4.js create mode 100644 scripts/syBgPp7rOymCZejX.js create mode 100644 scripts/syqqBkyP5tGqZ78t.js create mode 100644 scripts/t48hkacYdOpzWvK9.js create mode 100644 scripts/t56mnblo1kv3gM1M.js create mode 100644 scripts/t8LYOuN5peEdWeXP.js create mode 100644 scripts/tCIT1a12Gt6k2ohA.js create mode 100644 scripts/tDrs0aNIYmZPsOoS.js create mode 100644 scripts/tFAKRRRfTjQfdQz3.js create mode 100644 scripts/tG1qGqzBLmAR3WHm.js create mode 100644 scripts/tGVEV6TLl310mFLP.js create mode 100644 scripts/tKBq1nGZo8t6vvQ6.js create mode 100644 scripts/tNTO1LVN7JqHf4YN.js create mode 100644 scripts/tUwP7TjrOOOnaCYJ.js create mode 100644 scripts/tcZug8ehU6lyYBd9.js create mode 100644 scripts/tdICiJ26rJrDbxT6.js create mode 100644 scripts/tn6SwmjAuNzqE6dx.js create mode 100644 scripts/tnE8LF6E3svIlLca.js create mode 100644 scripts/tnilBagajWM8UGQt.js create mode 100644 scripts/toSrgcvWq9b5eN0K.js create mode 100644 scripts/tolkNN5P7oOC8GKZ.js create mode 100644 scripts/u3olS2p7Ls1JXfAH.js create mode 100644 scripts/u5dNZ0s3lWfL8KFb.js create mode 100644 scripts/u6CYMSZADrfXd48Q.js create mode 100644 scripts/uACa6u4JLNMRgFlr.js create mode 100644 scripts/uAy4w7y8Uu9POF8C.js create mode 100644 scripts/uLBDnWC3S0lRitbj.js create mode 100644 scripts/uNYstk3eXmWamhzs.js create mode 100644 scripts/uOHAsKlkFuIaAmjb.js create mode 100644 scripts/uSwkYENTOcnfRrqA.js create mode 100644 scripts/ucF4aiJ1gpDB333G.js create mode 100644 scripts/ugL5IBB6R2yWyMWd.js create mode 100644 scripts/upfK6GM33qZCZjll.js create mode 100644 scripts/uwdQvZtzy2HVeEzx.js create mode 100644 scripts/ux3jaLpAUhZ5YqA6.js create mode 100644 scripts/v00nVCRKqqRvY28t.js create mode 100644 scripts/v4CCxVaVGf9i8U7X.js create mode 100644 scripts/v4ITTsSY9EvCbhZP.js create mode 100644 scripts/v5xrDWcrTNFJkyQB.js create mode 100644 scripts/v6LIG7EwWYALxCpP.js create mode 100644 scripts/vFUVWZ1l8wpTjLcx.js create mode 100644 scripts/vJQRBxDfPwHens0a.js create mode 100644 scripts/vM2BPwYhHQaBAt2C.js create mode 100644 scripts/vNp9wgdSvnNEjZyS.js create mode 100644 scripts/vPG4rV640aSzKzxe.js create mode 100644 scripts/vS2D9QUslR7ZtXXm.js create mode 100644 scripts/vSDMygIT9nNvEGWG.js create mode 100644 scripts/vY3xeTTL3ghPrJpN.js create mode 100644 scripts/vZ5HCrhY8e4R1TrG.js create mode 100644 scripts/vc4bELo0cWYoILfB.js create mode 100644 scripts/vc8eVKtyjtOGvWlK.js create mode 100644 scripts/vcM0IgsYVmfWrlO3.js create mode 100644 scripts/vgfs0DXvF5iKrz1M.js create mode 100644 scripts/vj3zArmX27vCxYJW.js create mode 100644 scripts/vjyTKcNrJzX4XWnS.js create mode 100644 scripts/vuzRRj5d9XdNYx3o.js create mode 100644 scripts/vvVhAqreedtmOR9b.js create mode 100644 scripts/vvdo1NxjmGVkmFCT.js create mode 100644 scripts/vzMxIDjRlQSxXtCW.js create mode 100644 scripts/w3r54pKZQKaH2Yer.js create mode 100644 scripts/w4JKuTECFmu3YmTR.js create mode 100644 scripts/w4zubIHP0XgMXsFe.js create mode 100644 scripts/w7K0lbxQKJ2tsc6f.js create mode 100644 scripts/wAETU6aTRr9d4oCU.js create mode 100644 scripts/wAntJhgb8Og5vJXh.js create mode 100644 scripts/wS6OIR3QN4mOUHn0.js create mode 100644 scripts/wUlYLBT59Efys5aS.js create mode 100644 scripts/wbM7tpw4TxvadcWm.js create mode 100644 scripts/whUSkaR1yem21bXp.js create mode 100644 scripts/wsqNM4NHnwaAAQym.js create mode 100644 scripts/wyTCozh9qGTx6yK0.js create mode 100644 scripts/wzkxiKjxVEeNS1di.js create mode 100644 scripts/x2RLUUNB7BiIDYCP.js create mode 100644 scripts/x76tKw4L8dX00ikE.js create mode 100644 scripts/x8XK2fzzXCnSwfjt.js create mode 100644 scripts/x9G6Du5EWV6byf4C.js create mode 100644 scripts/x9iKFYYc4Ocy8PTS.js create mode 100644 scripts/xBpLQa7yBPczDMY8.js create mode 100644 scripts/xIRU2SaqLeWmqGDI.js create mode 100644 scripts/xL4S0H1RP8hhXW7c.js create mode 100644 scripts/xLKAuD6yzwjAL6tJ.js create mode 100644 scripts/xMhhVol8Is3DJ3gb.js create mode 100644 scripts/xPDMpOvC1ZBVxrNg.js create mode 100644 scripts/xPwa3NftkpMBc2AO.js create mode 100644 scripts/xQ3xR2Wf0wHFa76H.js create mode 100644 scripts/xQnoRTHotZKrwPrx.js create mode 100644 scripts/xRTmMwNfdirjsi8X.js create mode 100644 scripts/xRd6oA1QWLVpfoBm.js create mode 100644 scripts/xS2su09zcza9du09.js create mode 100644 scripts/xUpKYT7BZCSmAfUy.js create mode 100644 scripts/xYTkj8jhSVOSoLbC.js create mode 100644 scripts/xcy5GOUSZ0meIejZ.js create mode 100644 scripts/xgdhf0wlNP2cHIQx.js create mode 100644 scripts/xgplXZMs459X7XXM.js create mode 100644 scripts/xklncIMwQIespDxS.js create mode 100644 scripts/xnHobI9HojObLHMp.js create mode 100644 scripts/xobGBJbgFjQCrwvq.js create mode 100644 scripts/xpgXWoK2zDnG1uiF.js create mode 100644 scripts/xq3RANOtmPhy77ne.js create mode 100644 scripts/xqWxV9w5ezBQdJkZ.js create mode 100644 scripts/xvGxwv7X0Vq3vNqb.js create mode 100644 scripts/xvH4PKJasHcehOZz.js create mode 100644 scripts/y3agVFVBR8tVqWyx.js create mode 100644 scripts/yAL0YwZWVm8o1nxa.js create mode 100644 scripts/yCgH3N9AurIiAv0i.js create mode 100644 scripts/yDvxF9llUYwJg0sE.js create mode 100644 scripts/yFMvxecXAZ6T2O0S.js create mode 100644 scripts/yIGItnshXI4W46cp.js create mode 100644 scripts/yMMzZ7daCqRlGT3N.js create mode 100644 scripts/yPxYRObUiqAIhlNB.js create mode 100644 scripts/yRRzSKlcN3L7rEEe.js create mode 100644 scripts/yTmRoUstxHMso91c.js create mode 100644 scripts/yXUPiWuQ5o0JBY4i.js create mode 100644 scripts/yatUu0cd7iKs50rq.js create mode 100644 scripts/ybxDG2ezvRx02LYx.js create mode 100644 scripts/ynNCBAYwJFkTiXV1.js create mode 100644 scripts/ynV7tz0OdCwlsQp6.js create mode 100644 scripts/ynoHNXXCGRS6fTqF.js create mode 100644 scripts/yzN7ZNlgCiSVJqsU.js create mode 100644 scripts/z5HfNUrHy5MS3K7a.js create mode 100644 scripts/z926Cl2vxUfyLY0V.js create mode 100644 scripts/z9NEbIUBsKMaTuCz.js create mode 100644 scripts/zA6TDttpwMSMl7D8.js create mode 100644 scripts/zBHTIBU8OlYj1YIO.js create mode 100644 scripts/zFYCaGR0wbFWjl4T.js create mode 100644 scripts/zK38Rl5t9zbFi4Se.js create mode 100644 scripts/zR4WAjzXHTZuiu5G.js create mode 100644 scripts/zUv9e0A3OEXWY9Mv.js create mode 100644 scripts/zY4ZjY7uyKIKMYmX.js create mode 100644 scripts/zadppy7FEbXvgUON.js create mode 100644 scripts/zi8Z3NlwVj3IfgAW.js create mode 100644 scripts/ziG9H5Kdb7xC3dFE.js create mode 100644 scripts/zk44dFEGkylB7kW6.js create mode 100644 scripts/zphxI8VSWbNQCMBy.js create mode 100644 scripts/zqShIJnrRReGgP94.js create mode 100644 scripts/zsiV6XEHlCNGLLPl.js create mode 100644 scripts/zsoTVkHe4nHY1M52.js create mode 100644 scripts/zzk2uRSFjFHB5kjw.js diff --git a/compendium/tracking.md b/compendium/tracking.md index 4a34e6c..2709f47 100644 --- a/compendium/tracking.md +++ b/compendium/tracking.md @@ -2,8 +2,9 @@ Fini : F Cheminade -> Items UA1 -> DONE Faytoto -> acteurs UA1 Dwim -> RNHD actors +Highcrown -> Acteurs Ennemi Ombre -> DONE En cours : -Highcrown -> Acteurs Ennemi Ombre (27/03/24 :en cours) KeylaKhaine -> Acteurs Mort sur le Reik (27/03/24 :en cours) +Kyllian -> Acteurs Middenheim (15/05/24, en cours) diff --git a/compendium/wfrp4e-dotr.actors.json b/compendium/wfrp4e-dotr.actors.json index ca73bb2..f165370 100644 --- a/compendium/wfrp4e-dotr.actors.json +++ b/compendium/wfrp4e-dotr.actors.json @@ -16,709 +16,881 @@ "converter": "npc_characteristics" } }, - "entries": { - "‘Wet’ Wilgryn Augenlos": { - "name": "Wilgryn Augenlos dit 'Le Trempé'", - "description": "" - }, + "entries": { "Adalia Eisen": { "name": "Adalia Eisen", - "description": "" + "description": "", + "gmNotes": "

Adalia est devenue patrouilleuse fluviale pour deux raisons précises : avoir une chance de servir l’Empire et son peuple, et éviter d’être pendue pour avoir volé une chèvre. Concernant son service à l’Empire, Adalia n’est pas certaine d’avoir accompli quoi que ce soit d’utile jusqu’à présent, pour chaque équipage de naufrageurs qu’ils enferment, un autre fait son apparition dans la semaine, mais au moins, personne n’a encore posé de question à propos de la chèvre. Adalia est une patrouilleuse fluviale assez pragmatique ; ainsi, elle accepte de fermer les yeux sur quelques paquets d’herbe à pipe de contrebande, du moment que son équipage se tient à carreau. Même si cette philosophie lui a valu la réputation d’être une personne assez juste, à qui l’on veut bien confier des tuyaux et autres informations utiles, ses supérieurs voient d’un mauvais œil ce qu’ils considèrent comme une attitude laxiste vis-à-vis du maintien de l’ordre.

" }, "Agrin Losburg": { "name": "Agrin Losburg", - "description": "" + "description": "", + "gmNotes": "

Le sang du flagellant est celui de Sigmar

\n

L’espérance de vie d’un zélote n’est généralement guère bien longue, ce qui fait d’Agrin une sorte de curiosité. Approchant des 70 ans, mais aussi vigoureux qu’un homme ayant la moitié de son âge, Agrin aime raconter des anecdotes sur les pèlerinages de sa jeunesse. D’après lui, les jeunes d’aujourd’hui sont beaucoup moins dégourdis que ceux des années 2470(c’est à peine s’ils savent par quel bout il faut tenir un fléau !) Tandis que d’autres dans sa situation auraient sans doute pu s’élever à une position importante, Agrin s’est écarté de toutes ces tentations qu’il jugeait néfastes pour son humilité. Il ne connaît pas de plus grand bonheur que de s’accroupir devant un modeste feu de camp et de prier le grand Sigmar par le sacrifice de sa propre chair.

" }, "Alex Eisen": { "name": "Alex Eisen", - "description": "" + "description": "", + "gmNotes": "

Ce marchand sociable et quelque peu rustre vient de vendre sa cargaison à un bon prix et offre à boire à quiconque veut bien écouter les récits fastidieux et emplis d’autosatisfaction de ses relations commerciales. Après-demain, il prévoit de descendre le fleuve jusqu’à Altdorf, où il amarrera son bateau et se rendra au nord, à Middenheim, pour le carnaval de la ville.

‘Vous ne connaissez pas le carnaval ? Mes amis, qu’attendez-vous ! À côté, la Schaffenfest de Bögenhafen est un spectacle de foire, je vous assure ! Une semaine entière de spectacles, d’expositions, de boissons, de jeunes créatures et de tout ce qui vous fait envie. Oui, je sais ce que vous allez me dire : les habitants du Middenland n’ont aucun sens de l’humour, et en temps normal, j’aurais été d’accord avec vous. Mais pendant le carnaval... c’est une tout autre paire de manches, voyez-vous ! Ma foi, il faut bien qu’ils se détendent d’une manière ou d’une autre, et ils le font lors de cette semaine de folie. Ils relâchent toute la pression pour être à nouveau prêts à passer le reste de l’année aussi impassibles qu’une statue de nain. Sans vouloir les vexer, très chers camarades. Une autre tournée ? Aubergiste !’

Tous les clients de l’auberge connaissent le carnaval de Middenheim, et la plupart d’entre eux partageront l’entrain d’Alex. Les aventuriers avaient déjà plusieurs raisons de se rendre à Middenheim, ils en ont maintenant une de plus.

" }, "Amoeba": { "name": "Amibes", - "description": "

Les amibes sont des créatures simples et unicellulaires qui ressemblent à une substance gluante ou à de la gelée informe. Elles rampent lentement ou, pour se déplacer plus rapidement, déploient des pseudopodes qui peuvent atteindre la moitié de leur longueur. Elles se nourissent de matière organiques, laissant de côté les métaux et minéraux. Elles sont inexorables, dépourvues d'esprit et existent simplement pour se déplacer et absorber de la nourriture, qu'il s'agisse de feuilles, d'animaux morts, de champignons, ou d'aventuriers endormis. Les amibes sont attirées par la chaleur, qu'elles associent à de la nourriture, mais fuient les températures extrêmes qui peuvent endommager leur membrane cellulaire. Elles sont par ailleurs dépourvues de sens.

" - }, - "Armchair General": { - "name": "Général en pantoufles", - "description": "" + "description": "

Les amibes sont des créatures simples et unicellulaires qui ressemblent à une substance gluante ou à de la gelée informe. Elles rampent lentement ou, pour se déplacer plus rapidement, déploient des pseudopodes qui peuvent atteindre la moitié de leur longueur. Elles se nourrissent de matière organiques, laissant de côté les métaux et minéraux. Elles sont inexorables, dépourvues d'esprit et existent simplement pour se déplacer et absorber de la nourriture, qu'il s'agisse de feuilles, d'animaux morts, de champignons, ou d'aventuriers endormis. Les amibes sont attirées par la chaleur, qu'elles associent à de la nourriture, mais fuient les températures extrêmes qui peuvent endommager leur membrane cellulaire. Elles sont par ailleurs dépourvues de sens.

", + "gmNotes": "" }, "Astrit": { "name": "Astrit", - "description": "" + "description": "", + "gmNotes": "" }, "August Hauser": { "name": "August Hauser", - "description": "" + "description": "", + "gmNotes": "

Cela fait plus d’une décennie qu’Hauser a dédié sa vie à la rivière, et il a toujours fait en sorte de naviguer sur des eaux où peu de gens le reconnaîtraient. Aimable, rigoureux dans son travail, et doté d’un penchant pour les paris aux enjeux excentriques, ce patrouilleur fluvial à la carrure robuste prend cependant une mine sombre lorsqu’on lui pose trop de questions sur son passé. C’était il y a quelques mois qu’il fit la rencontre, à sa grande surprise, d’une jeune femme portant une amulette de Bögenhauer en argent, l’ultime cadeau qu’il avait fait à sa femme avant de les quitter, elle et leur petite fille tout juste née. Hauser usa alors de son don pour les jeux d’argent, ainsi que d’un crochet du gauche, pour faire monter @UUID[Actor.kMZg1EbDjxYSQrWu]{Gertrud} à bord de son bateau de patrouille. Même s’il est bien trop tard pour réparer ses erreurs, Hauser nourrit quand même l’espoir de transmettre un peu de savoir utile à la jeune femme.

" }, "Avaloi Winesong": { "name": "Avaloi Chantevin", - "description": "" + "description": "", + "gmNotes": "

Fille d’un prince marchand ruiné et devenu chef cuisinier assassiné, Avaloi s’est retrouvée seule et abandonnée de tous dans le Vieux Monde. Elle s’est mise à la seule chose qu’elle connaissait : l’art de son père, qu’elle a expérimenté dès son plus jeune âge. Aujourd’hui, surtout par curiosité, Avaloi vit dans les souvenirs de mets fins d’une époque révolue, tout en s’étouffant avec les ‘produits frais’ putrides de l’Empire et en priant pour le moment où elle s’habituera aux innombrables puanteurs qui infestent son nouveau ‘foyer’.

" }, "Aynjulls Isembeard": { "name": "Aynjulls Isembart", - "description": "" + "description": "", + "gmNotes": "

La plupart du temps, Aynjulls porte une veste de cuir maculée de taches d’huile, des hauts-de-chausses écarlates et de grosses bottes de sécurité à clous. Elle est réputée pour son travail rapide et de qualité, ce dont elle tire une grande fierté. De caractère bourru et renfrogné, elle est tellement démunie face à la disparition de ses ouvriers qu’elle est prête à essayer n’importe quoi — même si elle doit faire appel à un elfe !

" }, "Bathilda Fischer": { "name": "Bathilda Fischer", - "description": "" - }, - "Beak-Face Mutant": { - "name": "Mutant Doté d'un bec", - "description": "

Les attaquants du bateau

\n

A tort ou à raison, la population de mutants de l'Empire est msie au ban de la société. Si certains cherchent simplement à se cacher, beaucoup se tournent vers la violence, soit pour survivre, soit pour punir la société qui les a abandonnées.

" - }, - "Beastman – Gor": { - "name": "Homme-Bête – Gor", - "description": "" + "description": "", + "gmNotes": "

Dès son plus jeune âge, Bathilda a fait preuve d’une grande cruauté. Renvoyée emploi après emploi, les gens se lassant ou ayant peur de la jeune Reiklander, il était inévitable qu’elle finisse par rejoindre une organisation criminelle d’une manière ou d’une autre. Bathilda s’attendait à trouver des âmes sœurs parmi les naufrageurs, mais fut consternée d’apprendre qu’ils préféraient laisser leurs victimes en vie tant que celles-ci coopéraient. Depuis, elle observe attentivement le capitaine, certaine que si elle parvient à prendre sa place, elle montrera au Reik ce qu’est vraiment un naufrageur...…

" }, "Bella Hornwhistler": { "name": "Bella Siffletdecorne", - "description": "" + "description": "", + "gmNotes": "

Comme sa mère le lui avait prédit, Bella commence déjà à regretter d’avoir quitté le Mootland. Depuis que l’expédition a pris le chemin du retour, la jeune étudiante a remarqué qu’une sorte de miasme infâme semble les avoir suivis. En tant que halfling, elle est elle-même dotée d’une résistance naturelle aux forces corruptrices du Chaos ; malheureusement, tous ses compagnons n’ont pas cette chance. Bella est certaine qu’au moins un de ses compagnons leur cache quelque chose, mais elle ne sait pas encore exactement qui. Elle a désespérément besoin d’aide, de quitter ce bateau, et d’une demi-douzaine des fameuses tourtes à l’anguille et aux épices de sa maman.

" }, "Bernhardt Dampfer": { "name": "Bernhardt Dampfer", - "description": "" - }, - "Big Eared Mutant": { - "name": "Mutant à grandes oreilles", - "description": "" - }, - "Birdfolk": { - "name": "Peuple Oiseaux", - "description": "

Tous les hommes-oiseaux possèdent un bec crochu, des serres, et des ailes. Même si leur corps et leur tête conservent une forme humaine, ils sont recouverts de plumes colorées. Certains ressemblent à des grives, d'autres à des canaris, à des perroquets, ou d'autres espèces encore. Leur taille varie d'un individu à l'autre : quelques-uns sont de taille humaine, mais la plupart ne sont pas plus grands que des halflings.

\n

Les hommes-oiseaux sont capables de parler une version simplifiée du reikspiel, et sont assez heureux, malgré leur cage pas si dorée. 

" + "description": "", + "gmNotes": "

En temps normal, Bernhardt est un homme chaleureux et jovial, mais ces derniers temps, il est ravagé par l’inquiétude et la fatigue : il est clair qu’il tient beaucoup au bateau et à son équipage. Il s’inquiète particulièrement pour son fils, @UUID[Actor.5EI89gq14N3aYdg3]{Karl Dampfer}.

\n

Bernhardt pense qu’il a déjà affronté tout ce que le fleuve peut lui réserver, mais il n’a jamais eu affaire à un vampire avant ça. Il croit d’ailleurs que les histoires à leur sujet, du moins à notre époque, ne sont que des contes. Il refusera de prendre des mesures drastiques envers sa cargaison tant qu’il n’aura pas de preuve irréfutable de la nature vampirique du @UUID[Actor.NSfa2kFiXH3Wwtwe]{Graf Orlock}.

" }, "Boris Landsmaan": { "name": "Boris Landsmaan", - "description": "" - }, - "Brother Martin": { - "name": "Frère Martin", - "description": "" - }, - "Brother Rolf": { - "name": "Frère Rolf", - "description": "" + "description": "", + "gmNotes": "

Boris a nettoyé des porcheries pendant douze ans. Un jour, alors qu’il transportait des porcs au marché avec sa barge, des pirates ont abordé, ont emmené les porcs, le peu d’argent qu’il possédait et Boris lui-même. Ils n’étaient pas méchants et avaient juste besoin de lui comme otage pendant qu’ils s’enfuyaient à quelques kilomètres en aval. Ils lui ont proposé de le déposer à Dunkelberg : il aurait pu rentrer à pied en quelques heures. Retrouver les porcs. Retrouver la soue. Il leur a dit de poursuivre la navigation. Dorénavant, Boris ne nettoie plus les porcheries.

" }, "Brunhilde Gratten": { "name": "Brunhilde Gratten", - "description": "

Il y a cent vingt ans, Brunhilde servit d'éclaireur à l'expédition organisée par Dagmar von Wittgenstein pour trouver la malepierre. Après avoir découvert ce qu'il cherchait, Dagmar tua tous les membres de l'expédition : il poignarda Brunhilde à plusieurs reprises pendant qu'elle dormait et enterra les autres vivants dans une caverne non loin de là.

\n

Depuis ce jour, Brunhilde hante la région autour de @UUID[Scene.yP2ara84Sj86X6ZE]{The Devil's Bowl}, yearning for a proper burial for herself and her companions. She will tell the tale of Dagmar’s betrayal — of how he led them into the lush hills to find a meteorite that he calculated had landed here, and of how he changed when he found it, becoming first secretive and then murderous.

" + "description": "

Il y a cent vingt ans, Brunhilde servit d'éclaireur à l'expédition organisée par Dagmar von Wittgenstein pour trouver la malepierre. Après avoir découvert ce qu'il cherchait, Dagmar tua tous les membres de l'expédition : il poignarda Brunhilde à plusieurs reprises pendant qu'elle dormait et enterra les autres vivants dans une caverne non loin de là.

\n

Depuis ce jour, Brunhilde hante la région autour de @UUID[Scene.yP2ara84Sj86X6ZE]{La Cuvette du diable}, animée par la seule volonté que sa dépouille et celles de ses compagnons soient enfin convenablement enterrées . Elle racontera l’histoire de la trahison de Dagmar , comment il les mena dans ces collines verdoyantes pour trouver une météorite dont il avait calculé le point d’impact, et comment il changea une 63 fois celle -ci trouvée , adoptant d’abord un comportement mystérieux, puis meurtrier.

", + "gmNotes": "" }, "Brutagh The Mutant": { - "name": "Brutagh The Mutant", - "description": "

Brutagh was once a woodcutter, but thanks to prolonged exposure to warpstone, little of his humanity remains. He is now completely insane, apart from rare moments of lucidity when he becomes melancholic, his eyes fill with tears, and he rambles about his life in the forest. Most of the time, though, he prowls the caves, venturing out only to find food. Until he attacks, Brutagh should never be fully visible: he should remain a shadowy, indistinct figure, only ever glimpsed briefly. Brutagh’s body, arms and head are covered in a hard, green carapace that confers 2 AP to these areas. He has an extremely long neck that he can snake around corners. Suckers on his hands and feet allow him to cling to passage roofs and walls.

" + "name": "Brutagh le Mutant", + "description": "

Brutagh était jadis bûcheron. Mais à cause de son exposition prolongée à la malepierre, il a perdu beaucoup de son humanité. Désormais, il est complètement fou, même s’il a de brefs moments de lucidité quand il se laisse aller à la mélancolie : ses yeux s’emplissent de larmes, et il divague sur son ancienne vie dans les bois. La plupart du temps, il rôde dans la grotte et ne sort que pour chercher de la nourriture. Brutagh ne doit pas être vu avant d’attaquer : il doit être une présence furtive, mystérieuse et insaisissable. Le tronc, les bras et la tête de Brutagh sont couverts d’une carapace verte et dure, qui lui confère 2 PA dans ces zones. Son cou extrêmement long peut serpenter au tournant d’un couloir. Des ventouses sur ses mains et ses pieds lui permettent de grimper sur les murs et au plafond.

", + "gmNotes": "" }, "Cannibal": { - "name": "Cannibal", - "description": "

These unfortunates have suffered terribly under the experiments arranged by @UUID[Actor.fmUd7AtbJckbiWo6]{Lady Margritte} and administered by @UUID[Actor.vgazeY44kVGP4tmW]{Jean Rousseaux}. Each Beggar already has 4 Corruption points, and you should make one or two rolls on the @Table[mutatephys]{table} to determine what mutations they bear. Even brief physical contact counts as a @Corruption[minor]{Minor Exposure to Corruption}.

" + "name": "Les mendiants de Wittgendorf", + "description": "

Ces malheureux ont terriblement souffert des expériences menées par @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte} et administrées par @UUID[Actor.vgazeY44kVGP4tmW]{Jean Rousseaux}. Chaque mendiant possède déjà 4 points de Corruption, et vous êtes invité à leur attribuer une ou deux mutations à déterminer en effectuant un ou deux lancers en vous basant sur le @Table[mutatephys]{tableau de corruption physique}. Même un bref contact physique compte comme une @Corruption[minor]{Exposition Mineure à la Corruption}.

", + "gmNotes": "" }, "Carlo": { "name": "Carlo", - "description": "" + "description": "", + "gmNotes": "

@UUID[Actor.HoRIcFyhgSPLyrd0]{Luigi} ne va nulle part sans ses deux « petits » cousins, Carlo et @UUID[Actor.LskCuTumSjA0zyDs]{Furio}. Ces deux Tiléens colossaux au regard vide le suivent de près en permanence, prêts à pousser tout ce qui se trouve sur son chemin, vivant ou non. Même s’il ne s’agit pas des gardes du corps les plus malins, leur loyauté n’est plus à prouver, si l’on considère ce qui attend ceux qui déçoivent Il Signor Belladonna. Carlo fait d’ailleurs parfois des cauchemars au sujet de cloaques. Des cloaques, et des rats.

" }, "Castle Servant": { - "name": "Castle Servant", - "description": "" + "name": "Domestiques du château", + "description": "", + "gmNotes": "

Comme tous les autres occupants du château, les domestiques n’ont pas échappé aux effets de la malepierre. Ils portent chacun une Mutation mineure. Les domestiques ont envie de partir, mais ne veulent pas prendre de risques inutiles. Pour les convaincre de se battre, l’un des aventuriers doit faire un Test de Difficult (-10) Leadership. Un autre Test est requis chaque fois qu’un domestique est touché. Si le Test échoue, ils fuiront tous.

" }, "Chaotic Corpse": { - "name": "Chaotic Corpse", - "description": "" + "name": "Le cadavre du Chaos", + "description": "", + "gmNotes": "" }, "Chaotic Organ": { - "name": "Chaotic Organ", - "description": "" + "name": "L'orgue du Chaos", + "description": "", + "gmNotes": "" }, "Corrobreth The Priest": { - "name": "Corrobreth The Priest", - "description": "" + "name": "Corrobreth le prêtre", + "description": "", + "gmNotes": "

Le visage de Corrobreth porte de profondes marques verticales sur chaque joue, qui se remarquent surtout quand il sourit. Il n’aime pas trop se joindre aux conversations banales ; lorsqu’il prend la parole, c’est souvent pour donner des conseils ou fournir des informations précieuses. Comme tous les adeptes de @UUID[Compendium.wfrp4e-core.journals.NcH9OhleJFfaUdon.JournalEntryPage.dY6NZyY5pujNM5h8]{Rhya}, il évite autant que possible d’ôter la vie, sauf en cas de légitime défense ou pour sa subsistance. Par conséquent, il préfère éviter les conflits en usant de discrétion et de diplomatie plutôt qu’affronter le danger. Corrobreth est conscient des transformations causées par la météorite de malepierre. Il connaît la position de son cratère d’impact et sait qu’il est entouré de monolithes. Il n’a jamais eu de raison de s’y rendre lui-même, mais acceptera malgré tout de servir de guide aux aventuriers.

" }, "Crakatz": { "name": "Crakatz", - "description": "" + "description": "", + "gmNotes": "" }, "Crot Scaback": { - "name": "Crot Scaback", - "description": "

The Skaven

\n

Crot and his followers have been drawn to this area by the traces of warpstone that remain here. Their instincts tell them that a large piece of warpstone was here, but has been removed. They have been watching the adventurers since they arrived, and when they enter the caves, the Skaven see a chance to capture and question them.

\n

Crot Scaback – Skaven Champion

\n

Crot stands 6 ft tall — huge for a Skaven — and is covered in dirty grey fur. He has a prehensile tail that he can use to attack in any direction. He is cunning and utterly ruthless. Crot speaks Reikspiel in a very clipped, squeaky fashion, repeating some words in pairs and running others together.

" + "name": "Crap Raüdig", + "description": "

The Skaven

\n

Crap et ses compagnons sont venus dans cette région car ils ont été attirés par les résidus d’énergie de la malepierre. Leur instinct leur dit qu’un gros morceau de malepierre se trouvait là, mais qu’il n’y est plus. Ils observent les aventuriers depuis leur arrivée, et quand ceux-ci sont entrés dans les grottes, les skavens y ont vu une opportunité de les capturer et de les interroger.

\n

Crap Raüdig – Champion Skaven

\n

Crap mesure 1,80 m (ce qui est très grand pour un skaven) et son corps est recouvert d’une fourrure grise sale. Il possède une queue préhensile qu’il peut utiliser pour attaquer dans toutes les directions. Il est rusé et absolument sans pitié. Crap parle le Reikspiel avec maints couinements et de manière saccadée, répétant certains mots ou les joignant ensemble.

", + "gmNotes": "" }, "Dederick Ritter": { "name": "Dederick Ritter", - "description": "" + "description": "", + "gmNotes": "

Peu d’entre eux ont opté volontairement pour la vie de naufrageur. Dederick n’a pas vraiment eu le choix après que la barge qu’il pilotait s’est accrochée à un récif, coulant avec les 3 000 Couronnes de la meilleure eau-de-vie de Kemperbad qu’il transportait pour l’entreprise commerciale Kliendorfer. Ce qui aurait dû être une simple affaire pour ses assureurs s’est transformé en une fuite nocturne jusqu’à Weissbruck, une auberge en flammes et trois corps laissés dans le sillage de Dederick. Aujourd’hui, il gagne sa vie comme il le doit, son ancien équipage et quelques nouvelles recrues, certaines plus désespérées que d’autres, tirant le meilleur parti de la situation en transmettant leur malheur aux autres.

" }, "Dumpling Hayfoot": { - "name": "Dumpling Hayfoot", - "description": "" + "name": "Boulette Piedfoin", + "description": "", + "gmNotes": "

Cuisinière d'Etelka

Boulette sera très impressionnée par tout halfling qui n’est pas cuisinier, puisqu’elle n’en a jamais croisé un en dehors du Mootland qui ait choisi un autre métier. Elle sera soulagée de voir les aventuriers et leur demandera de l’escorter jusqu’à Grissenwald, « ou tout autre endroit où je pourrai prendre une diligence ou un bateau vers de meilleurs horizons. Ma Maîtresse se débrouillera. Je n’ai pas de scrupule à partir sans prévenir, étant donné la situation déplorable dans laquelle elle m’a laissée. »

Boulette est très heureuse de répondre aux questions des aventuriers, car selon elle, elle n’a plus à faire preuve de loyauté envers Etelka. Si quelqu’un l’insulte ou la menace, elle mettra les aventuriers dans le même panier que sa maîtresse et refusera de les aider.

Note : certaines de ces informations doivent être modifiées si, par exemple, Etelka a rencontré Heidlemann à Kemperbad au lieu de l’attendre ici.

" }, "Durak Dimholt": { "name": "Durak Dimholt", - "description": "" + "description": "", + "gmNotes": "

Prospecteur Nain Blessé

\n

Durak est un personnage austère et obstiné qui est resté fidèle à son clan contre vents et marées, malgré l’envie de partir une fois la mine vendue. Il a été pris en embuscade par une patrouille de gobelins alors qu’il était sorti chasser. Si les joueurs le sauvent, Durak se montre très reconnaissant, et une fois complètement guéri, il serait prêt à rejoindre les aventuriers et quitter Khazid Slumbol. Cependant, si le groupe comprend ne serait-ce qu’un elfe, tous les joueurs doivent faire un Test de Hard (-20) Charm, sinon Durak refusera de les suivre.

" }, "Dwarf Engineer": { - "name": "Dwarf Engineer", - "description": "" + "name": "Ingénieurs nains", + "description": "", + "gmNotes": "

Il reste six ingénieurs la première fois que les aventuriers rencontrent @UUID[Actor.aGPAXAzBh5AnTWFl]{Aynjulls}: Thingrim, Belegol, Kardak, Gundrun, Guzul and Minak. Ils sont tous désarçonnés et terrifiés par la mort mystérieuse de leurs collègues, mais ils tentent de ne rien laisser paraître.

" }, "Dwarf Gambler": { - "name": "Dwarf Gambler", - "description": "" + "name": "Nain joueur", + "description": "", + "gmNotes": "

Apparence: Impeccable, bien habillé.

\n

Personnalité: Charmant, amusant.

\n

Motivations: Profit, amusement, sécurité personnelle.

\n

Exemple de dialogue: « Quelqu’un veut jouer honnêtement à un jeu de hasard ? » et « Souhaitez-vous votre revanche sur la partie d’hier ? »

" }, "Dwarf Miner": { - "name": "Dwarf Miner", - "description": "" + "name": "Mineurs nains", + "description": "", + "gmNotes": "" }, "Eberhardt Kleingeld": { "name": "Eberhardt Kleingeld", - "description": "" + "description": "", + "gmNotes": "

Le rôle du commissaire de bord est d’être à la disposition des passagers lorsque le capitaine est occupé à autre chose. Il est responsable de la tenue des comptes du bateau, de la supervision de toutes les transactions en espèces et de la surveillance du contenu du coffre.

\n

Apparence: taille : 1,75 m, mince, cheveux gris ramenés en arrière, yeux bleus.

\n

Personnalité: correct, digne, amical.

\n

Motivations: rendre les passagers heureux et garder l’argent en sécurité, superviser l’équipe de régisseurs.

\n

Exemples de dialogue: « Merci d ’avoir porté cela à mon attention. Je m’en occupe immédiatement ».

" }, "Edgar ‘The Pike’ Ebrecht": { - "name": "Edgar ‘The Pike’ Ebrecht", - "description": "" + "name": "Edgar ‘La Pique’ Ebrecht", + "description": "", + "gmNotes": "

Lorsqu’un répurgateur a commencé à donner des coups de botte pour enfoncer la porte qu’Edgar était chargé de garder, il a compris que sa chance avait finalement tourné. Edgar savait que le groupe qu’il servait était douteux, mais il avait choisi d’ignorer ce qui se tramait derrière ces portes fermées qu’il était payé pour surveiller. C’est cette ignorance qui l’a sauvé du bûcher, mais pas des chaînes de la servitude. Cependant, « La Pique » est un meilleur gladiateur qu’il n’était portier, et avec quelques victoires supplémentaires et une bonne dose de sa graisse de porc préférée — une astuce qu’il a apprise d’un nain plutôt étrange— il peut encore espérer regagner sa liberté.

" }, "Elderly Duchess": { - "name": "Elderly Duchess", - "description": "" + "name": "Duchesse âgée", + "description": "", + "gmNotes": "

Apparence: âgée, impeccable, légèrement frêle.

\n

Personnalité: impérieux, exigeant, snob.

\n

Motivations: inspirer le respect, terrifier les serviteurs, effrayer les roturiers.

\n

Etemple de dialogue: « Je déteste voyager. C’est si inconfortable. Une telle agitation ! » et « Certaines personnes n’ont aucune idée de la façon correcte de se comporter ».

" }, "Elias Answell": { "name": "Elias Answell", - "description": "" + "description": "", + "gmNotes": "

Le bateau d’Elias, Je décline à regret, est autant une maison qu’un navire de commerce. Avec ses voiles rouge sang et son intérieur de cuivre rutilant, cette péniche de 12 m de long reflète toute l’excentricité de son capitaine. Elle se transmet de génération en génération aux membres de la famille Answell et a été réaménagée tellement de fois qu’elle ressemble de plus en plus à ce qui pourrait être la mise en pratique physique d’une expérience de pensée tiléenne au sujet de la nature de l’identité. Quant à Elias, c’est un homme calme et réfléchi ; son implacable honnêteté a fait de lui un négociant respecté de tous, malgré son goût immodéré pour le poisson mariné, à l’odeur particulièrement nauséabonde.

" }, "Ella Greendale": { - "name": "Ella Greendale", - "description": "" + "name": "Ella Vertvallon", + "description": "", + "gmNotes": "

Premier pilote Ella Vertvallon

\n

Ella est chargée de la navigation quotidienne de l'Empereur Luitpold. Ayant grandi sur les rives de l’Aver dans le Mootland, Ella est fascinée par les rivières depuis son plus jeune âge. Elle a construit son premier bateau à l’âge de douze ans, et à vingt ans, ce qui est encore considéré comme l’enfance par la plupart des halflings, elle dirigeait déjà sa propre entreprise de transport fluvial local. Bien que le capitaine soit aux commandes, Ella considère l'Empereur Luitpold comme son propre navire et sa priorité est de veiller à sa sécurité.

\n

Apparence: taille : 1,20 m, forte carrure, cheveux bruns bouclés, yeux marrons.

\n

Personnalité: agréable, agitée, efficace.

\n

Motivations: éviter les dangers de la rivière, avancer dans la vie.

\n

Exemple de dialogue: « Les cartes c’est très bien, mais il faut connaître la rivière comme sa poche. Ce n’est pas le moment de se pencher sur une carte lorsqu’une rivière gonflée par la pluie te pousse sur un banc de sable et t’expédie des arbres tombés dans la foulée ».

" }, "Elvyra Kleinestun": { "name": "Elvyra Kleinestun", - "description": "" + "description": "", + "gmNotes": "

La trentaine passée, les cheveux châtain clair et les yeux bleu foncé, Elvyra affiche une personnalité attachante et extravertie. Sous son apparente désinvolture se cachent un esprit affuté et un grand enthousiasme pour les médicaments, herbes et autres préparations médicales.

Elle peut parler boutique toute la journée ainsi qu’une grande partie de la nuit, toujours ravie de faire la connaissance de personnes partageant ses passions. Cependant, elle a tendance à considérer les médecins comme des rats de bibliothèque coincés avec peu de connaissances pratiques, et les partisans de Verena comme des idiots pleurnichards dont la foi supplante l’intelligence. Ainsi, les personnages qui en font partie doivent montrer qu’ils sont réellement intéressés, et de préférence bien informés, avant qu’elle ne s’ouvre à eux.

Elvyra habite à @UUID[JournalEntry.49qp95QA3aWDRmWS.JournalEntryPage.sDCpxwZ4AINph6av]{Weissbruck} depuis deux ans. Originaire d’Altdorf, elle a déménagé peu de temps après avoir décidé qu’il était plus rentable d’escroquer les gens que de fabriquer et de vendre de véritables médicaments, bien qu’elle fournisse toujours de vrais produits à ses voisins et à ceux qu’elle apprécie. Les Personnages l’auront probablement rencontrée à Bögenhafen. 

" }, "Emaciated Mutant": { - "name": "Emaciated Mutant", - "description": "" + "name": "Mutant Décharné", + "description": "", + "gmNotes": "" }, "Emelia Luneburg": { - "name": "Emelia Luneburg", - "description": "" + "name": "Altgräfin Emelia Luneburg", + "description": "", + "gmNotes": "

L’altgräfin Luneburg est une femme au cœur juste, mais elle juge parfois utile de rappeler aux classes inférieures qui tient les rênes de l’Empire. Elle se plaît à formuler des requêtes fantaisistes, exigeant de ses serviteurs qu’ils lui apportent toutes sortes de choses, d’une simple pomme rouge véreuse à un recueil de cantiques bretonniens. Elle se soucie peu des détails et, la plupart du temps, elle n’inspecte même pas ce qu’on lui apporte : elle souhaite seulement constater qu’un effort a été fait, et que les égards dus à son rang ont été observés en tout point. Si tel est le cas, elle accorde une belle récompense aux personnes impliquées, d’au moins deux fois la valeur des biens qui lui ont été présentés. Dans le cas contraire, eh bien... Disons que l’Altgräfin cache sous ses jupons volumineux un tromblon chargé, et qu’elle est reconnue comme étant une tireuse hors pair.

" }, "Ernst Heidlemann": { "name": "Ernst Heidlemann", - "description": "" + "description": "", + "gmNotes": "

Ernst est un homme sec et dégingandé au visage de fouine, aux cheveux châtains et au teint blafard. Il se fait passer pour un médecin récemment diplômé au service de @UUID[Actor.wXB3Bam0z0kp45Ht]{dame Etelka}, et entretient la supercherie en refusant de soigner qui que ce soit d’autre. Ernst est discret et réservé, il ne parle pas beaucoup, mais peut se montrer cinglant avec ceux qui lui déplaisent. Il est cruel et calculateur, et pendant la campagne, il n’hésitera pas à recruter des voyous pour effectuer ses basses besognes, afin de réserver ses pouvoirs jusqu’au moment le plus opportun.

Maladie débilitante: Ernst souffre d’une maladie débilitante qui le tue à petit feu. Ses maîtres lui ont fourni des potions pour en combattre les effets et il en conserve toujours sur lui. S’il n’en consomme pas, il perd 1 point d’Endurance toutes les 12 heures, et meurt quand il arrive à zéro.

" }, "Etelka Herzen": { "name": "Etelka Herzen", - "description": "" + "description": "", + "gmNotes": "

Au premier abord, Etelka est une noble amicale, mais timide. Elle est de taille moyenne, ses cheveux blonds lui arrivent aux épaules, et ses yeux sont bleus. Derrière cette façade se cache une femme impitoyable et déterminée, qui ne laisse rien ni personne s’interposer entre elle et ses objectifs. Afin de maintenir son identité secrète, elle n’emploie la magie que lorsqu’elle est sûre qu’il n’y a aucun témoin (ou qu’il n’y aura aucun survivant). Quand on l’attaque, elle attend en général un ou deux Rounds avant de commencer à lancer des sorts. La présence d’Etelka est reconnaissable entre mille : la corruption qui émane d’elle est évidente. Sa peau émet une forte odeur âcre qu’elle recouvre avec de puissants parfums. Son odeur s’attarde parfois derrière elle jusqu’à 15 minutes après son départ. Toute personne entrant dans un lieu qu’elle a récemment quitté ne pourra que le remarquer.

" }, "Eusapia Balacañon": { "name": "Eusapia Balacañon", - "description": "" + "description": "", + "gmNotes": "

La grâce et la sophistication de l’aristocratie estalienne associées à la présence et la stature de la noblesse de l’Empire font de Balacañon un membre respecté de la haute société. Et le fait qu’elle soit un sorcier la fait craindre à juste titre. Véritable machine de guerre, Balacañon combine son éducation avec les énergies primitives de Ghur pour se démarquer.

" }, "Experienced Broker": { "name": "Experienced Broker", - "description": "" + "description": "", + "gmNotes": "

Apparance : âgé, aristocrate, bien habillé.

\n

Personnalité : exige le respect. Sympathique à moins d’être offensé.

\n

Motivations : profit, statut social.

\n

Exemple de dialogue : « Je ne voudrais pas voyager autrement » et « Vous ne vous souvenez probablement pas de la crise de 85 ».

" }, "Father Marcus": { "name": "Father Marcus", - "description": "" + "description": "", + "gmNotes": "

Le père Marcus, tant par son air que par sa manière de s’exprimer (avec un léger accent middenlander), a tout du stéréotype de l’érudit distrait. Il est vif et perspicace, mais après n’avoir côtoyé que des prêtres et érudits pendant si longtemps, il a tendance à penser que tout le monde en sait autant que lui, et sa conversation peut rapidement devenir incompréhensible pour le profane. Il se montre parfois vague ou distant, mais il n’est pas malveillant, et il est difficile de ne pas l’apprécier.

" }, "Fishing Skiff": { - "name": "Fishing Skiff" + "name": "Esquif de pêche" + }, + "Brother Martin": { + "name": "Frère Martin", + "description": "", + "gmNotes": "

Martin et @UUID[Actor.8xYAPlRLgbNOq519]{Rolf} sont tous deux solidement bâtis et ont l’air de savoir se servir d’une épée. Ils parlent peu, surtout en présence du @UUID[Actor.bUxA8zyayMarTXP7]{Père Marcus}, et il est clair qu’ils éprouvent une immense admiration pour lui, qui s’apparente presque à de la vénération. Lorsque leur supérieur n’est pas présent, ils sont assez conviviaux ; ils ne sont jamais allés à Altdorf et laissent transparaître un enthousiasme discret à l’idée de se rendre en ville, interrogeant les Personnages au sujet de la capitale lorsque le père Marcus n’est pas là. Ils peuvent également mentionner qu’en plus d’être un érudit, le père Marcus est à la tête de leur monastère, et qu’il est par conséquent très haut placé.

" + }, + "Brother Rolf": { + "name": "Frère Rolf", + "description": "", + "gmNotes": "

@UUID[Actor.tCDLCDRYyPyNkFzB]{Martin} et Rolf sont tous deux solidement bâtis et ont l’air de savoir se servir d’une épée. Ils parlent peu, surtout en présence du @UUID[Actor.bUxA8zyayMarTXP7]{Père Marcus}, et il est clair qu’ils éprouvent une immense admiration pour lui, qui s’apparente presque à de la vénération. Lorsque leur supérieur n’est pas présent, ils sont assez conviviaux ; ils ne sont jamais allés à Altdorf et laissent transparaître un enthousiasme discret à l’idée de se rendre en ville, interrogeant les Personnages au sujet de la capitale lorsque le père Marcus n’est pas là. Ils peuvent également mentionner qu’en plus d’être un érudit, le père Marcus est à la tête de leur monastère, et qu’il est par conséquent très haut placé.

" }, "Frida Bismarck": { "name": "Frida Bismarck", - "description": "" + "description": "", + "gmNotes": "

Cette commerçante à la petite semaine revient de Marienburg et sera intéressée par toute nouvelle en provenance de l’amont du fleuve. Selon elle, Marienburg est en pleine guerre des prix. Les factions marchandes s’affaiblissent mutuellement et peu de marchandises entrent dans la ville, car les commerçants fluviaux savent qu’ils n’obtiendront pas un prix correct tant que la guerre ne sera pas terminée.

\n

Si les aventuriers disent à Frida qu’ils transportent une cargaison à Marienburg pour le compte des Blucher, elle sera curieuse, car elle a demandé le matin même à un employé des Blucher s’ils avaient besoin d’un transporteur pour Marienburg, question à laquelle ils ont répondu par la négative. Les autres marchands considèrent Frida comme du menu fretin. Transporteuse indépendante et très intelligente, elle possède une barge de 7 mètres de long. Elle n’est pas du genre à créer des problèmes.

" }, "Fritz Carhingar": { "name": "Fritz Carhingar", - "description": "" + "description": "", + "gmNotes": "

La partie inférieure du corps de Fritz a considérablement maigri après des années d’inactivité, et ses jambes ont l’air de deux bâtonnets. Le haut de son corps est émacié et sa grande barbe blanche est crasseuse. Son regard est perdu dans le vague, mais sa bouche esquisse un sourire amical.

\n

Fritz est « l’invité » de @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte} depuis son échec face à la maladie qui rongeait @UUID[Actor.ihG2gFIFF6Ai5Gik]{Ludwig}, il y a de cela cinq ans. Il a vu @UUID[Actor.tslFtQFPcFWc7XQ5]{Slagdarg} écarteler, découper, brûler et briser de nombreuses victimes, ce qui lui a fait perdre l’esprit. ‘Bien le bonjour, ’ dira-t-il. ‘Comment allez-vous ? Vous venez prendre le thé ? Je suis l’invité de dame Ingrid. C’est elle qui m’a offert cette belle chambre.’ Fritz caresse les barreaux de sa cage, ‘t Slagdarg veille sur moi depuis mon arrivée. Il va bientôt venir s’occuper de vous, ne vous en faites pas.

" }, "Fritz Carhingar (Alternative)": { - "name": "Fritz Carhingar (Alternative)", - "description": "" + "name": "Fritz Carhingar (Alternatif)", + "description": "", + "gmNotes": "" }, "Frontier Commander": { - "name": "Frontier Commander", - "description": "" + "name": "Commandant frontalier", + "description": "", + "gmNotes": "

Apparence: d’âge moyen, coriace, mal à l’aise dans des habits de cour.

\n

Personnalité: grincheux, asocial, terrifiant si on le croise.

\n

Motivations: en finir avec cette foutue affaire et retourner sur le terrain.

\n

Exemple de dialogue: ‘Je n’y connais pas grand-chose à ce sujet. J’ai été soldat toute ma vie » et « Celui-là ne tiendrait pas cinq minutes dans les collines.’

" }, "Furio": { "name": "Furio", - "description": "" + "description": "", + "gmNotes": "

@UUID[Actor.HoRIcFyhgSPLyrd0]{Luigi} ne va nulle part sans ses deux « petits » cousins, @UUID[Actor.2IwkTzKIsxtjA4AG]{Carlo} et Furio. Ces deux Tiléens colossaux au regard vide le suivent de près en permanence, prêts à pousser tout ce qui se trouve sur son chemin, vivant ou non. Même s’il ne s’agit pas des gardes du corps les plus malins, leur loyauté n’est plus à prouver, si l’on considère ce qui attend ceux qui déçoivent Il Signor Belladonna. Carlo fait d’ailleurs parfois des cauchemars au sujet de cloaques. Des cloaques, et des rats.

" }, "Furry Mutant": { - "name": "Furry Mutant", - "description": "

The Boat Attackers

\n

Rightly or wrongly, the Empire’s population of mutants are shunned from society. While some simply seek to hide themselves away,  many turn to violence — either to survive, or to punish the society that abandoned them.

" + "name": "Mutant à fourrure", + "description": "

Les attaquants du Bateau

\n

À tort ou à raison, la population de mutants de l’Empire est mise au ban de la société. Si certains cherchent simplement à se cacher, beaucoup se tournent vers la violence, soit pour survivre, soit pour punir la société qui les a abandonnés.

", + "gmNotes": "" + }, + "Armchair General": { + "name": "Général en pantoufles", + "description": "", + "gmNotes": "

Apparence: impeccable, d’âge moyen ou âgé.

\n

Personnalité: courtois, charmant, snob.

\n

Motivations: fréquenter des gens, raconter des histoires sans fin.

\n

Exemple de Dialogue: ‘La dernière fois que j’étais au palais... et e vous ai parlé de la bataille de Rogenburg ? J’étais sur le flanc gauche...

" }, "Georg Hegel": { "name": "Georg Hegel", - "description": "

Hegel was Captain of the Guard before his unfortunate death three months ago. He has not been allowed to rest in peace, however, for @UUID[Actor.fmUd7AtbJckbiWo6]{Lady Margritte} (who does not entirely trust @UUID[Actor.OF35NiRpF5Nmbl2z]{Lieutenant Doppler}) reanimated Hegel using magic and a sprinkling of warpstone dust. Now Hegel is little more than a skeleton rattling around inside his armour, but he is absolutely loyal to Lady Margritte, knowing that his continued existence relies on her powers.

" + "description": "

Hegel était capitaine de la garde avant son fâcheux trépas, il y a trois mois. Malheureusement, même sa mort ne l’a pas libéré de son travail : @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte} (qui ne fait pas totalement confiance à @UUID[Actor.OF35NiRpF5Nmbl2z]{Doppler}) l’a réanimé grâce à sa magie et une pincée de poudre de malepierre. Désormais, Hegel n’est rien de plus qu’un squelette coincé dans son armure, mais sa loyauté envers dame Margritte reste absolue. Il sait qu’il doit son existence actuelle à ses pouvoirs.

", + "gmNotes": "" }, "Gertrud Schützenberger": { "name": "Gertrud Schützenberger", - "description": "" + "description": "", + "gmNotes": "

armi ceux qui ont connu Gertrud dans sa jeunesse, très peu auraient pu imaginer qu’elle rejoindrait la Patrouille fluviale un jour ; et pourtant, sa rencontre fortuite avec le patrouilleur fluvial @UUID[Actor.WwacZBjM7X2WLkp2]{August Hauser}, dans une auberge près de Kemperbad, résulta en un pari stupide, un nez cassé et une place sur le pont d’un bateau de patrouille. Depuis, la jeune femme a montré qu’elle avait un don pour flairer les ennuis, et ce malgré son nez cassé : son instinct a permis plus d’une fois d’arrêter des contrebandiers, des pirates, ou pire encore. Gertrud n’est pas encore sûre de vouloir consacrer sa vie à la Patrouille fluviale, mais pour le moment, son salaire lui permet de vivre, et Hauser s’est révélé être un mentor attentif.

" }, "Ghoul Champion": { - "name": "Ghoul Champion", - "description": "

One of the Wizard Dagmar's final experiments, this unfortunate creature has guarded its long dead creator’s home for centuries. Preserved by foul sorcery and the occasional foolhardy rat, the Ghoul is ravenous for a more substantial meal.

" + "name": "Champion goule", + "description": "

Cette funeste créature est l’une des dernières expériences de Dagmar. Elle garde la demeure vide de son créateur depuis sa mort, il y a des siècles. Elle survit grâce à sa sorcellerie ignoble et aux rats qu’elle trouve de temps en temps. Mais il lui en faut plus. Elle a faim.

", + "gmNotes": "" }, "Giant Bat (Wittgenstein)": { - "name": "Giant Bat (Wittgenstein)", - "description": "" + "name": "Chauves-souris géante (Wittgenstein)", + "description": "", + "gmNotes": "" }, "Giant Leech": { - "name": "Giant Leech", - "description": "

Giant Leeches hunt in marshes and near rivers, and typically grow to between one and three feet in length. They can detect vibrations, heat, and light with sensory organs on their heads. They are aggressively predatory when not satiated.

The Analgesic Saliva of a Giant Leech may be harvested (carefully) from a living specimen. Turned into a @UUID[JournalEntry.JhZ4qkEf569rEcsY.JournalEntryPage.uxIVUGe1gSkqbo8m#poultices]{Poultice} it grants +1 SL to any Heal Test made to treat a critical wound.

Chameleoleeches

Chameleoleeches have glands near their heads that secrete a powerful @UUID[Compendium.wfrp4e-dotr.items.rYgOZSGFwF3a7GBu]{Hallucinogen}. This only affects sentient mammals, who are plagued by hallucinations of their greatest desires. Some find these delusions addictive.

Tree Leeches

These creatures have the @UUID[Compendium.wfrp4e-core.items.sJ3yX1kvzu2hgNq5]{Amphibious} and @UUID[Compendium.wfrp4e-core.items.rOV2s6PQBBrhpMOv]{Arboreal} Traits rather than Aquatic. They conceal themselves among the hanging vines and foliage of wetlands areas, waiting to drop onto a passing source of body heat.

" + "name": "Sangsue Géante", + "description": "

Les sangsues géantes chassent dans les marais et près des rivières. Elles atteignent généralement une longueur de 30 à 90 cm. Elles peuvent détecter les vibrations, la chaleur et la lumière grâce à des organes sensoriels situés sur leur tête. Ce sont des prédateurs agressifs lorsqu’elles ne sont pas rassasiées.

La salive analgésique d’une sangsue géante peut être récoltée (avec précaution) sur un spécimen vivant. Transformée en @UUID[JournalEntry.JhZ4qkEf569rEcsY.JournalEntryPage.uxIVUGe1gSkqbo8m#poultices]{Cataplasme} elle accorde +1 DR à tout Test de Guérison effectué pour traiter une blessure critique.

Sangsues-Caméléons

Les sangsues-caméléons possèdent des glandes près de leur tête qui sécrètent un puissant @UUID[Compendium.wfrp4e-dotr.items.rYgOZSGFwF3a7GBu]{hallucinogène}. Il n’affecte que les mammifères sensibles, qui sont en proie à des hallucinations de leurs plus grands désirs. Certains trouvent ces illusions addictives.

Sangsues Des arbres

Ces créatures possèdent le trait @UUID[Compendium.wfrp4e-core.items.sJ3yX1kvzu2hgNq5]{Amphibie} et @UUID[Compendium.wfrp4e-core.items.rOV2s6PQBBrhpMOv]{Arboricole} plutôt qu’Aquatique. Elles se dissimulent parmi les vignes et les feuillages suspendus des zones humides, attendant de tomber sur une source de chaleur corporelle qui passe par là.

", + "gmNotes": "" }, "Giant Rat (Wittgenstein)": { - "name": "Giant Rat (Wittgenstein)", - "description": "" + "name": "Rat Géant (Wittgenstein)", + "description": "", + "gmNotes": "" }, "Goat Mutant": { - "name": "Goat Mutant", - "description": "" + "name": "Mutant chèvre", + "description": "", + "gmNotes": "" }, "Goblin of the Twisted Maw": { - "name": "Goblin of the Twisted Maw", - "description": "

The Goblins of the Twisted Maw are originally from @UUID[Compendium.wfrp4e-core.journals.ozE2DMCMK64eE5pD.JournalEntryPage.w0YfGxsBuLoODCgc]{The Grey Mountains}, but this group left the tribe a few years ago rather than submit to a dominant tribe of orcs. Ever since, they have been hiding in the forest, competing with mutants and Beastmen for food and territory.

\n

They regard @UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka Herzen} with mixed feelings: contempt because she is a Human, fear because of her magical powers, and jealousy because of her house and possessions, and her freedom to do as she pleases. In her absence, they have been exploring her house and enjoying themselves in the surrounds.

" + "name": "Gobelin de la Gueule Tordue", + "description": "

Les gobelins de la Gueule Tordue sont originaires des @UUID[Compendium.wfrp4e-core.journals.ozE2DMCMK64eE5pD.JournalEntryPage.w0YfGxsBuLoODCgc]{Mountagnes Grises}. Ils se sont séparés de leur tribu il y a quelques années de cela pour échapper au joug d’un puissant clan d’orcs. Ils se cachent depuis dans la forêt et se disputent les territoires et la nourriture avec les mutants et les hommes-bêtes.

\n

Leurs sentiments à l'égard d' @UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka Herzen} sont mitigés : ils la méprisent parce qu’elle est humaine, craignent ses pouvoirs magiques et sont jaloux de sa maison, de ses possessions, et du fait qu’elle soit libre de faire ce qu’elle veut. En son absence, ils ont inspecté sa demeure et profité de ce nouvel environnement.

", + "gmNotes": "" }, "Gorim Greathammer": { - "name": "Gorim Greathammer", - "description": "" + "name": "Gorim Grandmarteau", + "description": "", + "gmNotes": "

Gorim est bien bâti avec une longue chevelure et d’une barbe assortie, chef des quelques nains restés à Khazid Slumbol. Pour empêcher son peuple de mourir de faim, il a vendu son marteau de guerre magique pour partager les gains au sein du clan. Comme les autres nains, Gorim est persuadé qu’@UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka Herzen} leur a dérobé une mine riche en or en les arnaquant sur le prix.

" }, "Graf Orlok": { "name": "Graf Orlok", - "description": "

Though not himself a relic of the Time of Three Emperors, ‘Graf ’ Orlok, as he styles himself, claims a noble lineage dating far beyond his own 257 years and to that time of strife and war in the Empire. Orlok has left behind the trappings of his unlife in the mountains - a crumbling castle, a handful of bumbling servants, and the quotidian fears of rural peasants - in hope of finding new stimulation to relieve the boredom of his long, long years. Should the Character’s happen to disturb Orlok by night he will prove a fearsome foe indeed, though promises of a suitably entertaining distraction or willing service might stay his fangs for a little while. Still, the graf is a creature of animal need, and before long he will seek blood from any suitable source.

" + "description": "

Bien qu’il n’ait pas connu l’Âge des Trois Empereurs, « Graf » Orlok, comme il aime être appelé, affirme que sa lignée remonte à cette période de guerre et de conflits dans l’Empire, et non à sa naissance il y a 257 ans. Orlok a abandonné son ancienne vie dans les montagnes (un château en ruines, une poignée de domestiques empotés, et les peurs quotidiennes des paysans du coin) dans l’espoir de trouver un nouvel environnement plus stimulant, qui lui fera oublier l’ennui de ses longues, longues années. Si les aventuriers le dérangent pendant la nuit, il s’avérera être un adversaire redoutable, mais des promesses de distractions assez amusantes ou de services utiles pourraient le pousser à couvrir ses crocs (du moins pendant un temps). Évidemment, il reste un prédateur aux besoins sanguinaires, et il ne lui faudra pas longtemps avant de devoir repartir à la chasse.

", + "gmNotes": "" }, "Great Wolf": { - "name": "Great Wolf", - "description": "" + "name": "Loup Géant", + "description": "", + "gmNotes": "" }, "Green Furred Mutant": { - "name": "Green Furred Mutant", - "description": "" + "name": "Mutant à fourrure verte", + "description": "", + "gmNotes": "" }, "Grissenwald Villager": { - "name": "Grissenwald Villager", - "description": "" + "name": "Villageois humains", + "description": "", + "gmNotes": "" }, "Grugor Lustig": { "name": "Grugor Lustig", - "description": "" + "description": "", + "gmNotes": "

La vie d’un escroc professionnel n’est pas chose aisée, mais Grugor a porté l’art de l’escroquerie à des niveaux encore jamais vus. Il s’investit corps et âme dans les produits douteux qu’il essaie de vendre à une clientèle peu méfiante. Une série de peintures qu’il a créées à Nuln est en fait devenue une sorte de mode lorsque l’on a découvert qu’il s’agissait de faux. Une poignée de critiques ont même admis en privé qu’ils préféraient les œuvres de Lustig aux originaux. Sa brève carrière de brasseur a donné lieu à plusieurs fûts de Bugman XXXXXX qui ont failli tromper un certain nombre de nains à moitié ivres, et en effet, à l’insu de Lustig, au moins un d’entre eux a prêté le Serment du Tueur à cause de cet incident. À présent, Lustig s’est mis en tête de créer les « potions magiques les plus authentiques ». Cependant, fidèle à lui-même, une poignée de ses « fausses » potions présentent des propriétés magiques, même si elles ne produisent pas l’effet escompté...

" }, "Grundar (Castle Wittgenstein)": { - "name": "Grundar (Castle Wittgenstein)", - "description": "" + "name": "Grundar (Château Wittgenstein)", + "description": "", + "gmNotes": "

Comme tous les autres occupants du château, les domestiques n’ont pas échappé aux effets de la malepierre. Ils portent chacun une Mutation mineure. Les domestiques ont envie de partir, mais ne veulent pas prendre de risques inutiles. Pour les convaincre de se battre, l’un des aventuriers doit faire un Test de Difficult (-10) Leadership. Un autre Test est requis chaque fois qu’un domestique est touché. Si le Test échoue, ils fuiront tous.

" }, "Guard Sergeant": { - "name": "Guard Sergeant", - "description": "" + "name": "Sergent de la Garde", + "description": "", + "gmNotes": "

Les gardes du château étaient autrefois humains, mais le fait d’avoir vécu si près de la malepierre les a quelque peu transformés. Sous leur cotte de mailles et leur casque intégral se cache un corps en putréfaction. Quiconque aperçoit le visage ou le corps d’un garde devra faire un Test de Peur 2 ou rester pétrifié. En plus de ça, l’odeur de pourriture et de saleté est telle que quiconque se trouve dans un rayon de 2 mètres doit réussir un Test de Challenging (+0) Endurance, sous peine d’un malus de -10 à la CC. 

Voir la mutation @UUID[.Item.5TYShpZL7umAIBns]{Chair en putréfaction} pour appliquer le malus de CC et de Peur.

" }, "Gurda": { "name": "Gurda", - "description": "" + "description": "", + "gmNotes": "" }, "Gutbag Stoat Throttler": { - "name": "Gutbag Stoat Throttler", - "description": "

Goblin Leader

\n

A little (very little) brighter than the average Goblin, Gutbag has been inspired by his acquaintance with @UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka Herzen}, and has decided to become a wizard himself. He has no idea how to achieve this, but until he has a better idea he is copying her in as many ways as he can, even wearing her clothes, jewellery, and perfume. One of these strange habits must surely be the source of her power, after all.

\n

Gutbag presents a comical sight. He wears a red ball gown of Etelka’s that is at least two feet too long for him, and it drags on the ground and constantly threatens to trip him. His head is adorned with a glittering tiara. When confronting the adventurers, he waves his arms theatrically, chanting gibberish at the top of his voice. When nothing happens after a Round of chanting, he shrugs fatalistically, draws his sword, and charges.

\n

If things go badly he will try to flee, begging for mercy if caught and blaming his actions on the society that raised him. ‘We wus forced inta this ya know! We wus a nice ‘n’ peaceful tribe, nevva did any ’arm, didn’t caws no trubble. But we wus picked on and forced outta da mountains by erm... trolls. Yeah! Big trolls it wus... Hey, if ya let us go, I wun’ caws no more trubble.’

" + "name": "Gutbag Tueur-de-Fouines", + "description": "

Chef des Gobelins

\n

Gutbag, un gobelin un peu (à peine) plus intelligent que la moyenne, a pris @UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka Herzen} pour modèle et a décidé de devenir sorcier à son tour. Il ne sait absolument pas comment s’y prendre, mais en attendant d’y voir plus clair, il la copie sous tous les aspects : il porte ses vêtements, ses bijoux, et même son parfum. L’une de ces étranges habitudes doit bien être la source de son pouvoir, non ?

\n

GGutbag a un côté comique. La robe de bal rouge d’Etelka est trop longue d’au moins 60 cm pour lui, et elle traîne au sol, menaçant à chaque pas de le faire trébucher. Une tiare scintille sur sa tête. Face aux aventuriers, il fait de grands mouvements de bras théâtraux et scande des inepties d’une voix puissante. Lorsque rien ne se passe après 1 Round d’incantations, il hausse les épaules d’un air fataliste et dégaine son épée avant de charger.

\n

Si les choses tournent au vinaigre, il essaiera de s’enfuir, et en cas de capture, il suppliera d’être épargné, en rejetant la faute sur la société qui l’a façonné.On nous a forcés, d’abord ! On était une gentille tribu, nous, on a jamais nui à personne, on a rien fait de mal. On s’en est pris à nous, on nous a fait quitter les montagnes, c’est la faute des... des trolls. Ouais ! Des grands trolls. Si vous nous laissez partir, on arrêtera les bêtises.

", + "gmNotes": "" }, "Hannes (Fellow Travellers)": { - "name": "Hannes (Fellow Travellers)", - "description": "" + "name": "Hannes (Compagnons de Voyage)", + "description": "", + "gmNotes": "

Le pillage de tombes n’est pas une vocation pour la plupart des gens, mais @UUID[Actor.2fsU3gUUNfv86mhk]{Hans} et Hannes se sont découvert une passion commune pour cette activité. Leur première incursion s’est faite tout à fait par hasard : ils sont tombés sur un cimetière isolé où un prêtre de Morr négligent s’était endormi à mi-chemin des derniers préparatifs, et ils se sont servis dans les affaires du cadavre. Depuis lors, ils ont découvert que le cadavre lui-même a souvent plus de valeur que les bagues que l’on peut enlever à des doigts froids et les plombages en or arrachés à des crânes pourris. À leur manière, ils font progresser les connaissances médicales, ou du moins, c’est ce qu’ils pensent.

" }, "Hans (Fellow Travellers)": { - "name": "Hans (Fellow Travellers)", - "description": "" + "name": "Hans (Compagnons de Voyage)", + "description": "", + "gmNotes": "

Le pillage de tombes n’est pas une vocation pour la plupart des gens, mais Hans et @UUID[Actor.DRlS1CNBxnVL4aim]{Hannes} se sont découvert une passion commune pour cette activité. Leur première incursion s’est faite tout à fait par hasard : ils sont tombés sur un cimetière isolé où un prêtre de Morr négligent s’était endormi à mi-chemin des derniers préparatifs, et ils se sont servis dans les affaires du cadavre. Depuis lors, ils ont découvert que le cadavre lui-même a souvent plus de valeur que les bagues que l’on peut enlever à des doigts froids et les plombages en or arrachés à des crânes pourris. À leur manière, ils font progresser les connaissances médicales, ou du moins, c’est ce qu’ils pensent.

" }, "Hans Sauber": { "name": "Hans Sauber", - "description": "" + "description": "", + "gmNotes": "

Maître d’équipage Hans Sauber

\n

Si le @UUID[Actor.qmyTFgfbGqPl1cT9]{capitaine Willendorf} est le gant de velours, bien qu’elle soit tout sauf tendre, alors Sauber est la main de fer. Ses fonctions consistent à superviser l’équipage de bagnards rameurs et à maintenir l’ordre à bord. Bien qu’il soit aussi poli que les normes sociales l’exigent, il ne faut pas prendre sa courtoisie pour de la servilité. Même les jeunes nobles les plus obtus se rendent bien compte qu’il n’est pas le genre d’homme qu’il faut traiter à la légère, bien que de temps en temps quelqu’un essaye de tester ses limites. Ces vauriens finissent toujours par être débarqués du navire, soit au port suivant, soit directement dans la rivière.

\n

Apparence: taille : 1,85 m, forte carrure, cheveux blond foncé, yeux bleus, visage marqué de cicatrices.

\n

Personnalité: agressif, professionnel, bourru.

\n

Motivations: empêcher l’équipage de se relâcher et les passagers de devenir ingérables.

\n

Exemple de dialogue: « METTEZ-Y DU VÔTRE ! »

" }, "Hans Vollrat": { "name": "Hans Vollrat", - "description": "" + "description": "", + "gmNotes": "

Les canotiers de la  Maria Borger  sont des hommes amicaux et affables avec la plupart des gens qu’ils croisent sur le fleuve, mais ils gardent toujours une arbalète à portée de main. @UUID[Actor.aXFzRsefQ7YCXxOj]{Reiner} et @UUID[Actor.5EI89gq14N3aYdg3]{Karl} ont une vingtaine d’années, et se préparent à reprendre l’entreprise familiale. @UUID[Actor.ohx4btGNaWPnb59A]{Hans} est plus âgé et expérimenté que les deux fils Dampfer : ça fait presque dix ans qu’il travaille avec leur père. À cause du travail nécessaire à l’entretien et au bon fonctionnement de la barge, sans parler de son inquiétude pour ses camarades malades, Reiner n’a pas une minute à lui. Il fera de son mieux pour assister les aventuriers, mais ses corvées sur le bateau occuperont le plus clair de son temps.

" }, "Hans-Peter Schiller": { "name": "Hans-Peter Schiller", - "description": "" + "description": "", + "gmNotes": "

Hans Peter est un homme mince de taille moyenne aux cheveux noirs et bouclés et aux yeux marron. Il a l’air plutôt détendu, bien que sous cette façade se cache une grande soif de connaissance... et donc de pouvoir. 

\n

Il se forme aux côtés d’@UUID[Actor.j3XNhduYwpEeBcOk]{Heironymous} depuis environ deux ans, et a l’air plutôt satisfait de sa vie d’apprenti. En vérité, ce n’est pas le cas, et il passe le plus clair de son temps libre à espionner Hieronymus pour apprendre ses secrets, mais sans grand succès. Sa soif de pouvoir se manifeste par des accès de jalousie contre les autres apprentis, qu’il considère comme des rivaux, et avec lesquels il serait incapable de se lier d’amitié. Selon lui, une vie d’aventurier n’est pas aussi précieuse qu’une vie studieuse passée à travailler dur et à nourrir de grandes ambitions. Les autres apprentis se rendront peut-être compte que Hans Peter ne prend pas en considération, voire sabote leur travail. Après tout, c’est lui l’apprenti préféré d’Hieronymus. 

\n

Hieronymus est conscient des défauts de caractère et de l’ambition de son élève, et le surveille donc de près.

" }, "Hanse": { "name": "Hanse", - "description": "" + "description": "", + "gmNotes": "" }, "Harold": { "name": "Harold", - "description": "" + "description": "", + "gmNotes": "

Harold et @UUID[Actor.0fjPbArcl7uXDEnT]{Stefan}, quand ils ne sont pas occupés à récurer les casseroles dans les cuisines du @UUID[JournalEntry.w5rvSKCXvivjnTVU.JournalEntryPage.PTqp6A7lC9v8x7uu]{Col du Cygne}, prennent un malin plaisir à botter les fesses des ivrognes, des profiteurs, des fauteurs de troubles, des troubadours et des mimes. Leur taille et leur réputation leur permettent d’éviter la plupart des problèmes, mais on peut toujours compter sur eux pour se jeter corps et âme dans n’importe quelle situation impliquant la boisson.

" }, "Heironymous Blitzen": { - "name": "Heironymous Blitzen", - "description": "" + "name": "Hieronymous Blitzen", + "description": "", + "gmNotes": "

Hieronymus est un personnage à l’air particulièrement excentrique. Ses cheveux gris sont souvent en pagaille et ses yeux bleus pétillent en permanence d’une lueur de folie. Il est richement vêtu, dans un style évoquant la noblesse de campagne, et prend suffisamment soin de lui pour que tout cela lui aille bien. Mais il y aura toujours quelque chose qui cloche. Porter des chaussures dépareillées ne le gêne aucunement, par exemple, ni le fait de porter des couleurs qui ne vont vraiment pas ensemble. Les trivialités du monde ne l’intéressent pas toujours, et il sait bien que les gens seraient déçus de rencontrer un sorcier qui ne soit pas un minimum étrange. Il a souvent l’air perplexe et ses mouvements sont saccadés, voire maladroits, mais contrôlés. Il fait exprès d’avoir l’air distrait et légèrement irritable, mais en général, il écoute attentivement tout ce qu’on lui dit. Il a tendance à opter pour des réponses courtes qui vont droit au but, ce qui révèle son côté organisé derrière cette façade chaotique.

\n

Il garde en général sur lui environ 10 CO, mais peut avoir accès à bien plus.

" }, "Herbert Marcuse": { "name": "Herbert Marcuse", - "description": "" + "description": "", + "gmNotes": "

Herbert est aubergiste à @UUID[JournalEntry.WKhLoiUL9sdUE2Gs.JournalEntryPage.kAXCwOUU0oL8j10u]{L’Étoile Filante} depuis deux décennies. Ayant perdu sa famille dans un incident survenu deux ans plus tôt, il est normal qu’il paraisse un peu renfrogné.

" }, "Hilda Eysenck": { "name": "Hilda Eysenck", - "description": "" + "description": "", + "gmNotes": "

Hilda est l’agent secret des hors-la-loi à Wittgendorf. Elle vit avec son grand-père vieillissant, Hans, et ils gagnent péniblement leur vie en tant que meuniers du village. Elle a réussi à cacher ses liens avec les hors-la-loi aux gardes du château, mais elle est prête à risquer sa couverture pour emmener les aventuriers au campement des hors-la-loi. Elle est courageuse, mais reste prudente. Après avoir mené les Personnages au camp,elle les accompagnera dans leur reconnaissance du château, mais seulement si on le lui demande.

" }, "Hilma Bootschlecht": { "name": "Hilma Bootschlecht", - "description": "" + "description": "", + "gmNotes": "

Hilma Bootschlecht sait que certaines personnes se retirent plus tôt que d’autres lorsqu’une bagarre se prépare dans un bar, mais que Sigmar l’emporte si elle comprend un jour pourquoi. Le craquement d’un nez qui se casse, le choc d’un bon coup de pied dans un ventre rempli de bière, ou encore le fracas agréable d’un tabouret de bar qui se brise sur le dos de quelqu’un sont autant de choses qui font que la vie vaut la peine d’être vécue. Elle ne comprend vraiment pas pourquoi certaines personnes essaient d’éviter cela. Alors, oui, la gueule de bois peut être un problème, et la majeure partie de son salaire sert à payer la bière et les amendes, mais à quoi peut bien servir l’argent si ce n’est à être dépensé ? Et si jamais elle est vraiment ric-rac, les Kliendorfer sont toujours prêts à payer un petit supplément pour que quelqu’un débarque une petite cargaison d’une barge à l’abri des regards des inspecteurs fiscaux...

" + }, + "Beastman – Gor": { + "name": "Homme-Bête – Gor", + "description": "", + "gmNotes": "" }, "Ingrid von Wittgenstein": { - "name": "Ingrid von Wittgenstein", - "description": "" + "name": "Dame Ingrid von Wittgenstein", + "description": "", + "gmNotes": "

La peau pâle et les cheveux blancs de dame Ingrid la font paraître moribonde. Ses beaux vêtements sont recouverts de poils de chat et tachés d’empreintes de pattes, surtout au niveau de ses cuisses. Elle dirige cette famille depuis la métamorphose de son mari Ludwig (voir @UUID[Actor.ihG2gFIFF6Ai5Gik]{Ludwig von Wittgenstein}). Bien qu’elle ne montre aucun signe extérieur de mutation, la souillure du Chaos a atteint les tréfonds de son âme. Ces dernières années, sa folie a empiré, et elle passe désormais ses journées à dorloter ses chats mutants.

\n

Les meubles de dame Ingrid ont été dégradés et lacérés par d’innombrables griffes. Les rideaux sont en lambeaux et toutes les surfaces en bois sont profondément marquées par des griffures.

" }, "Jean Rousseaux": { "name": "Jean Rousseaux", - "description": "" + "description": "", + "gmNotes": "

Rousseaux est en surpoids, ses vêtements sont légèrement trop petits et recouverts du tabac en poudre dont il est excessivement friand. Il n’a pas échappé aux effets de la malepierre : le contact quotidien a provoqué une desquamation de sa peau et il a pris l’habitude de se plâtrer le visage avec de la poudre blanche pour la cacher. S’il est vu la nuit sans son maquillage, Rousseaux offre un spectacle hideux. Voir son vrai visage compte comme une @Corruption[minor]{Exposition Mineure à la Corruption}.

\n

Jean Rousseaux est né en Bretonnie. Après avoir commencé une carrière d’étudiant en médecine, il a décidé qu’il pourrait gagner plus d’argent en tant que charlatan et s’est mis à voyager à travers l’Empire avant de s’établir à Wittgendorf, il y a dix ans. Il s’est établi comme médecin, vendant aux villageois des « médicaments » inefficaces, mais créant une dépendance. En utilisant ses compétences médicales limitées, il a pu guérir des affections mineures et détourner tout soupçon de charlatanisme.

\n

La poudre de malepierre ayant eu des effets néfastes sur le village, Rousseaux a cessé d’utiliser ses compétences de guérison. Au lieu de cela, il demande simplement à @UUID[Actor.gjlMsoOEcSH8lNQs]{Kurt} de distribuer son @UUID[Compendium.wfrp4e-dotr.items.zQBh7HQBBaTL9rRb]{tord-boyaux} aux paysans. Il est épris de @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte} réalise tous ses souhaits. C’est elle qui lui fournit la malepierre qu’il ajoute ensuite au tord-boyaux. Rousseaux en surveille les effets et en rend compte à dame Margritte, mais il ne sait pas que la poudre est en réalité de la malepierre et serait très choqué de l’apprendre.

\n

En raison de la pénurie de nourriture qui a suivi la maletempête, Rousseaux s’est mis à manger des cadavres. L’un d’eux se trouve dans sa cave, mais s’il est découvert, il prétendra qu’il est là uniquement à des fins scientifiques de dissection. Un regard plus attentif révélera des couverts de qualité à proximité du cadavre.

\n

Rousseaux s’intéresse de près aux aventuriers, les interroge sous couvert de conversation polie et rapporte chaque détail à dame Margritte au château. Selon lui, les malformations observées chez les villageois seraient le résultat inévitable de la consanguinité au sein d’une communauté isolée : ‘J’aide du mieux que je peux ’, explique-t-il, ‘mais il n’y a pas grand- chose à faire’. Il parle en bien de la famille Wittgenstein et est impatient que les aventuriers rencontrent dame Margritte lors du dîner organisé chez lui.

\n

Il ne mentionne pas la source du tord-boyaux que boivent les mendiants, mais ne démentira pas ses activités si on lui présente des preuves. Selon lui : ‘C’est seulement pour aider ces pauvres malheureux. Quels que soient les effets secondaires, cet alcool dilue leur souffrance’. Si les aventuriers contestent, il se vexe. ‘Bien évidemment,’ dit-il avec sarcasme, ‘vous autres, voyageurs bien éduqués, en savez plus sur la médecine que les médecins et les professeurs de la meilleure académie de toute la Bretonnie. Suis-je bête d’avoir pensé le contraire.’

" }, "Johanna Schnee": { "name": "Johanna Schnee", - "description": "" + "description": "", + "gmNotes": "

Doktor Schnee vient d’entrer dans l’âge mûr et était auparavant titulaire à Hugeldal. Schnee est un médecin itinérant qui tente de rassembler des informations pour une grande thèse qu’elle espère présenter à l’Université d’Altdorf. Fascinée par la propagation des maladies et déterminée à combattre leur pestilence partout où elle se rend, elle a connu à la fois un grand succès et une profonde frustration. Nombreux sont ceux qui, dans son domaine, la considèrent comme un génie, alors que beaucoup d’autres la voient comme une arriviste arrogante, aux théories farfelues sur les ‘poisons invisibles’, les ‘germes’, et autres balivernes de ce genre.

" }, "Josef Quartjin": { "name": "Josef Quartjin", - "description": "" + "description": "", + "gmNotes": "

Plutôt grand, Josef mesure 1 m 77, et est doté d’une bonne musculature sous une couche généreuse de gras. Il fait remarquer avec amusement, à voix basse et avec un fort accent de classe ouvrière d’Altdorf, que sa forte corpulence le protège du froid, le soir sur la rivière. Sa longue barbe hirsute épouse la courbe de son énorme ventre. Josef affiche un tempérament jovial qui se lit dans ses yeux marron, et il aime être en bonne compagnie, surtout si cette compagnie lui offre à boire.

" }, "Karl Dampfer": { "name": "Karl Dampfer", - "description": "" + "description": "", + "gmNotes": "

Les canotiers de la  Maria Borger  sont des hommes amicaux et affables avec la plupart des gens qu’ils croisent sur le fleuve, mais ils gardent toujours une arbalète à portée de main. @UUID[Actor.aXFzRsefQ7YCXxOj]{Reiner} et @UUID[Actor.5EI89gq14N3aYdg3]{Karl} ont une vingtaine d’années, et se préparent à reprendre l’entreprise familiale. @UUID[Actor.ohx4btGNaWPnb59A]{Hans} est plus âgé et expérimenté que les deux fils Dampfer : ça fait presque dix ans qu’il travaille avec leur père. À cause du travail nécessaire à l’entretien et au bon fonctionnement de la barge, sans parler de son inquiétude pour ses camarades malades, Reiner n’a pas une minute à lui. Il fera de son mieux pour assister les aventuriers, mais ses corvées sur le bateau occuperont le plus clair de son temps.

" }, "Kidnappers": { - "name": "Kidnappers", - "description": "" + "name": "Ravisseur", + "description": "", + "gmNotes": "" }, "Kitchen Staff": { - "name": "Kitchen Staff", - "description": "" + "name": "Personnel de cuisine", + "description": "", + "gmNotes": "

Le fait que chaque repas soit servi à l’heure et selon les normes de qualité les plus élevées témoigne des compétences et du niveau de commandement de @UUID[Actor.JgMiudqnXlYViAOG]{Max}. De nombreux passagers ont même exprimé leur incrédulité lorsqu’ils ont appris que tout ceci était réalisé par le seul chef et un personnel de cuisine composé de deux personnes. Cela demande un travail acharné du matin au soir, une planification magistrale et une préparation minutieuse, mais Max n’a jamais failli à la tâche. Les cuisiniers qu’il a formés ont par la suite travaillé dans certains des hôtels et restaurants les plus prestigieux de l’Empire, et plus d’une fois il a dû faire preuve de beaucoup de tact pour empêcher un riche passager de les emmener avec lui.

" }, "Klaus": { "name": "Klaus", - "description": "" + "description": "", + "gmNotes": "

Selon certaines rumeurs, Klaus, qui mesure près de 2 mètres, serait à moitié ogre, mais il les déteste car il craint qu’elles ne soient fondées. Il parle doucement, mais n’a pas besoin de jouer les gros bras : quand il parle, les gens l’écoutent. Klaus est à la tête du groupe de débardeurs des @UUID[Actor.FTT9hoFswIqAW9do]{Blucher} ; il supervise le chargement et le déchargement des bateaux et s’assure que les gens obéissent aux Blucher. Les débardeurs le craignent tout autant qu’ils le respectent, mais ils ont surtout peur de lui. Klaus est loyal envers les Blucher et l’idée de les trahir ne lui a jamais traversé l’esprit.

" }, "Klaus Jager": { "name": "Klaus Jager", - "description": "" + "description": "", + "gmNotes": "

Comme tant de chasseurs avant lui, Klaus a commencé sa vie en tant que braconnier, chassant le gibier partout où il pouvait en trouver, y compris dans la réserve privée des von Bildhofen. Il a finalement été capturé après une longue poursuite à travers les landes, mais le Graf fut si impressionné par les rapports de son garde-chasse sur ce chasseur rusé qu’il fit une proposition très simple à Klaus : un travail ou un nœud coulant. Inutile de préciser que Klaus a choisi la première option et a gagné la confiance de la famille.

" }, "Kratz, Sergeant Of The Guard": { - "name": "Kratz, Sergeant Of The Guard", - "description": "" + "name": "Kratz, Sergent de la garde", + "description": "", + "gmNotes": "

Le sergent Kratz est un homme grand et musclé à l’air menaçant. Il porte une armure noire et ne retire jamais son casque (son visage est si putréfié qu’il en arrive à apprécier lui- même l’effet que son apparence produit sur les autres résidents du château). Kratz adore persécuter les villageois, et il verra dans un premier temps les aventuriers comme de potentielles nouvelles victimes de son sens de l’humour particulier. Kratz ne se limite pas à de l’intimidation, il n’hésitera pas à mettre ses menaces à exécution et à attaquer quiconque s’oppose à lui. Il frappera ceux qui l’agacent avec son coup-de-poing, mais face à quelqu’un de déterminé à lui résister, il sortira son fléau. Kratz n’est toutefois pas stupide et battra en retraite s’il se rend compte qu’il n’a aucune chance de vaincre.

" }, "Krazold Ironhand": { - "name": "Krazold Ironhand", - "description": "" + "name": "Krazold Poignefer", + "description": "", + "gmNotes": "

UArborant une attitude étrangement décontractée pour une naine, Kraz, comme elle préfère qu’on l’appelle, est devenue nautonière après que sa propre barge s’est échouée sur un banc de sable. Kraz habite encore aujourd’hui à côté de cette barge échouée, dont la vue n’inspire que peu de confiance à ceux qui souhaiteraient potentiellement l’engager pour guider leurs bateaux. Cependant, Kraz connaît bien son banc, et l’accident avec son propre bateau fut le dernier qu’elle ait jamais eu. Elle a dit à sa famille, qui habite Grissenwald, qu’elle économisait pour faire tirer son bateau hors de la rivière et le faire réparer ; mais Kraz n’a entendu que des mauvaises choses à propos des conditions de vie à Grissenwald, et n’a donc aucune intention d’y retourner pour le moment.

" }, "Kurt Kutzmann": { "name": "Kurt Kutzmann", - "description": "" + "description": "", + "gmNotes": "

Kurt passe la plupart de ses journées à s’occuper de l’alambic et à distribuer du tord-boyaux aux paysans. Ses mains sont couvertes d’une tache brune et ses doigts épais et boudinés commencent à ressembler à des gourdin. Kurt boit lui-même du tord-boyaux et est presque complètement dérangé. Ses paroles ont peu de sens et on l’entend souvent se chanter des absurdités en travaillant. La nuit, il verrouille la salle de distillation et va dormir dans sa chambre. C’est un fidèle fanatique de @UUID[Actor.vgazeY44kVGP4tmW]{Rousseaux}, à qui il obéit sans discuter.

" }, "Kurt von Wittgenstein": { "name": "Kurt von Wittgenstein", - "description": "" + "description": "", + "gmNotes": "

Kurt est complètement fou et passe son temps à préparer et empailler des cadavres de tous types. Il adore ses « amis » naturalisés et leur parle comme s’ils étaient encore en vie. Il avoue sans problème qu’il aimerait que tous les habitants du château (non, du monde entier !) deviennent ses « amis », et l’idée provoque en lui une excitation perturbante. Les domestiques refusent depuis peu d’entrer dans son atelier, puisque la dernière à avoir osé se trouve désormais accrochée au dos de la porte. Elle n’apporte plus ses repas, mais Kurt juge que leurs conversations sont désormais bien plus intéressantes.

" }, "Lady Margritte von Wittgenstein": { - "name": "Lady Margritte von Wittgenstein", - "description": "" + "name": "Dame Margritte von Wittgenstein", + "description": "", + "gmNotes": "

Dame Margritte est jeune et jolie, mais ses recherches en nécromancie ont eu de lourdes conséquences sur son apparence. Son obsession pour la mort et les cadavres a fini par déteindre sur elle : sa peau d’une extrême pâleur commence à se tendre sur ses os. Elle masque ce problème avec du maquillage et elle a réussi jusque-là à maintenir une apparence quasi normale.

La Grande Expérience

Dame Margritte est la fille d'@UUID[Actor.ySbdLyidudlMwGhU]{Ingrid} et @UUID[Actor.ihG2gFIFF6Ai5Gik]{Ludwig}, mais c’est aussi et surtout l’arrière-arrière-petite-fille de Dagmar von Wittgenstein. Elle a pris la suite des expériences de son aïeul et son nouveau projet consiste à se servir de la malepierre pour créer le mort-vivant idéal, une créature qui ne soit pas @UUID[Compendium.wfrp4e-core.items.D0ImWEIMSDgElsnl]{Instable} et qui soit capable de se passer de supervision, ainsi que de mener et contrôler d’autres morts-vivants. Elle se sert également de @UUID[Actor.vgazeY44kVGP4tmW]{Rousseaux} (see @UUID[JournalEntry.WKhLoiUL9sdUE2Gs.JournalEntryPage.W7qHxIXBRPthzGHY]{La Maison du Médecin}) pour étudier les effets de la poudre de malepierre sur les êtres vivants.

Dame Margritte a utilisé des cadavres de villageois et de mendiants imprégnés de malepierre pour se fabriquer un être composite dont elle espère faire le chef d’une armée de morts-vivants. Son projet a mis du temps à arriver à terme, mais son monstre est désormais prêt. Il ne lui manque plus que la touche finale : l’étincelle de vie, une impulsion électrique tirée d’un éclair, qu’elle lui insuffle au moment où les aventuriers entrent dans son laboratoire. Gorgée de vie, la créature obéira à tous ses ordres, tant que dame Margritte sera à même de lui donner des instructions lorsqu’elle se « réveillera ».

" }, "Large Barge": { - "name": "Large Barge" + "name": "Grande Barge" }, "Lashworm": { - "name": "Lashworm", - "description": "

Lashworms are small, carnivorous creatures that live in fissures, which they disguise with debris, leaving only a hair-like ‘trigger’ outside. A Hard (-20) Perception Test is required to see the Lashworm’s lair, and a Difficult (-10) Lore (Beasts) Test is required to identify it as the lair of a Lashworm. This test may be modified at your discretion if the Character has encountered Lashworms before.

\n

When the ‘trigger’ senses any movement within 5 yd, a thin, saw-toothed organ whips out, grasping a shred of its victim’s flesh, then retracting into the crevice almost instantly. Characters must make a Difficult (-10) Cool Test or gain a @Condition[Surprised] condition. The Lashworm will spend the next 4 hours digesting this meal, and will not attack again in that time.

\n

Lashworms are incredibly fast, and always attack first, even if their target is aware of their presence.

" + "name": "Ver fouetteur", + "description": "

Les vers fouetteurs sont de petites créatures carnivores qui vivent dans des fissures qu’ils camouflent avec des décombres. Ils ne laissent qu’un « déclencheur » fin comme un cheveu à l’extérieur. Un Test de Hard (-20) Perception est nécessaire pour détecter leur présence, en plus d’un Test de Difficult (-10) Lore (Beasts) pour savoir qu’elle appartient à un ver fouetteur. Ce test peut être ajusté si l’aventurier qui le réalise a déjà été confronté à des vers fouetteurs par le passé.

\n

Quand le déclencheur détecte du mouvement dans un rayon de 5 mètres, un organe fin, couvert de dents aiguisées comme des lames de rasoir, jaillit de son trou, arrache un morceau de chair à sa victime, et se rétracte presque instantanément. Les Personnages doivent réussir un Test de Difficult (-10) Cool ou subir l'état @Condition[Surpris]. Le ver fouetteur passera les quatre prochaines heures à digérer son repas, et n’attaquera plus pendant ce temps.

\n

Les vers fouetteurs sont incroyablement rapides, et attaquent toujours en premier, même quand leur cible a conscience de leur présence..

", + "gmNotes": "" }, "Lesser Daemon Of Slaanesh": { - "name": "Lesser Daemon Of Slaanesh", - "description": "

The Daemonette is 5 ft tall, and has white skin with deep-green, saucer-like eyes. Its face and figure resemble those of a Human woman, except that its arms end in powerful, crab-like claws.

\n

It will try to distract the adventurers with conversation as it edges close enough to cast @UUID[Compendium.wfrp4e-core.items.2fBaYkBsPZzxNSNj]{Acquiescence}. It asks why the adventurers are not dancing, or pleasuring themselves in some other way. Why do they look so unhappy? If attacked, the Daemonette will fight, taking great pleasure in the battle so long as it appears to be winning. The Daemonette has no wish to have its soul thrown back to the Realm of Chaos in shame, and will vanish in a puff of pink smoke if reduced to 5 Wounds or less.

" + "name": "Démon mineur de Slaanesh", + "description": "

La démonette mesure un mètre cinquante, possède une peau crémeuse et de très grands yeux ronds vert foncé. Son visage et sa silhouette sont similaires à ceux d’une humaine, à l’exception de ses bras qui se terminent par des griffes puissantes aux allures de pinces de crabe.

\n

Elle essayera de distraire les aventuriers en leur parlant afin de pouvoir s’approcher suffisamment d’eux et lancer le sort @UUID[Compendium.wfrp4e-core.items.2fBaYkBsPZzxNSNj]{Consentement}. Elle leur demandera pourquoi ils ne dansent pas ou ne s’adonnent pas à d’autres plaisirs. Pourquoi ont-ils l’air si malheureux ? Lorsqu’on l’attaque, la démonette frappe en retour et a l’air ravie de se battre tant qu’elle semble en position de force. Puisqu’elle n’a aucune envie que son âme soit renvoyée dans son Royaume du Chaos et couverte de honte, elle disparaîtra dans un nuage de fumée rose s’il ne lui reste plus que 5 Points de Blessure ou moins.

", + "gmNotes": "" }, "Liza Sauber": { "name": "Liza Sauber", - "description": "" + "description": "", + "gmNotes": "

Liza porte une simple blouse et se déplace pieds nus. Elle aime beaucoup @UUID[Actor.kyAFKxInnAxoqJfL]{Elvyra} et fera tout ce qu’elle peut pour l’aider.

" }, "Ludwig von Wittgenstein": { "name": "Ludwig von Wittgenstein", - "description": "" + "description": "", + "gmNotes": "

Ludwig est un individu raffiné et cultivé, qui apprécie la littérature, l’art et la sculpture. Contrairement aux autres membres de sa famille, il est chaleureux et accueillant. Depuis sa transformation en cafard il y a une dizaine d’années, il quitte rarement sa chambre. Il se console par la musique et la lecture, et apprécie de plus en plus la compagnie de ses millions d’« amis » cafards. On ne peut pas dire qu’il soit satisfait de son sort, mais il s’en contente du mieux qu’il peut.

\n

Ludwig déplore le comportement de sa famille, qu’il attribue à ‘la malédiction des Wittgenstein’‘Tout a commencé avec Dagmar von Wittgenstein,’  explique-t-il.  ‘C’était mon arrière- grand-père, celui qui a construit l’observatoire près de Grünburg. Il est devenu obnubilé par une étoile filante. Il n’avait qu’une seule idée en tête : la retrouver. C’est ce qu’il a fini par faire. Alors il l’a ramenée ici. Depuis, tout va de mal en pis pour nous.’

" }, "Luigi Belladonna": { "name": "Luigi Belladonna", - "description": "" + "description": "", + "gmNotes": "

Luigi est de taille moyenne et a les cheveux gris. Il affiche également un léger embonpoint, mais personne n’a jamais pu le lui faire remarquer deux fois. Ses bajoues semblent toujours garder un peu de nourriture en réserve, voire une paire de chaussettes, et ses yeux bruns lui donnent un regard sévère et impitoyable. Son discours n’est qu’un murmure rauque, ce qui force ses interlocuteurs à se pencher vers lui pour entendre ce qu’il leur raconte. Luigi ne se répète jamais, et n’élève jamais la voix. Il n’en a pas besoin : c’est à son audience de prêter l’oreille. Il choisit bien ses mots et parle de manière formelle, signe d’une éducation et de pensées complexes qu’on ne s’imagine pas forcément retrouver chez un criminel. Ses vêtements sont composés des plus belles soies et laines, et ses cheveux sont élégamment gominés. Ses petits doigts potelés sont ornés de bagues en or et en diamant. Il a l’air en tous points d’un marchand prospère, jouissant d’une fortune gagnée et non héritée.

\n

Cela fait des années que Luigi n’est plus un voyou. Avec le temps, il a appris à persuader les autres de faire le sale boulot à sa place, et s’attend à être obéi sans discussion. Le fait que son commerce soit du mauvais côté de la loi laisse Luigi de marbre : à ses yeux, seuls l’argent, l’autorité et l’influence comptent. 

" }, "Matthias Blucher": { "name": "Matthias Blucher", - "description": "" + "description": "", + "gmNotes": "

Malgré les apparences, la personne importante dans cette interaction n’est pas @UUID[Actor.q7DYHbjxedEeX2WN]{Max} mais son patron, Matthias Blucher. Malgré son jeune âge, Matthias a l’instinct d’un marchand et le sang des Blucher. Il est déjà à la tête des activités commerciales de la famille sur cette partie du Reik.

" }, "Maw": { - "name": "Maw", - "description": "

The maw gapes wide, revealing bright-green teeth and an interior filled with a sickly green ichor. Characters who have been dragged 6 yd will be within biting range: roll to hit as normal. Any Character reduced to 0 Wounds is swallowed in the following Round.

" + "name": "La Gueule", + "description": "

La gueule est grande ouverte, révélant des rangées de dents couvertes d’un pus sanguinolent et verdâtre. Les Personnages qui se sont fait tirer sur 6 m sont à portée de morsure : faites un jet d’attaque normal. Tout Personnage réduit à 0 Point de Blessure est avalé au Round suivant.

", + "gmNotes": "" }, "Max Wagner": { "name": "Max Wagner", - "description": "" + "description": "", + "gmNotes": "

Max Wagner est au moins deux fois plus âgé que @UUID[Actor.FTT9hoFswIqAW9do]{Matthias Blucher}, mais il sait qu’il ne sera jamais un aussi bon marchand que son jeune maître. Les compétences de Max résident dans les détails de la logistique, la manipulation des chiffres sur le papier et la structuration des transactions pour tirer le maximum de profit. Il a un énorme respect pour Matthias et l’ensemble de la famille Blucher et ne fera rien pour les trahir, même s’il est mal à l’aise avec la façon dont Matthias fait parfois affaire.

" }, "Maximillian ‘Max’ Berryhill": { - "name": "Maximillian ‘Max’ Berryhill", - "description": "" + "name": "Maximillian ‘Max’ Vallonbaie", + "description": "", + "gmNotes": "

Chef cuisinier Maximillian 

\n

Aucun cadre de luxe, qu’il s’agisse d’un château, d’un hôtel ou d’un bateau, n’est totalement complet sans un cuisinier halfling pour offrir une cuisine de classe mondiale aux clients les plus exigeants. Max est à bord de l'Emperor Luitpold depuis plus longtemps que n’importe quel autre membre de l’équipage, à l’exception du commissaire de bord @UUID[Actor.JxoG6n49gRjNg6kR]{Purser Kleingeld}, et certains reviennent sur le bateau de croisière simplement pour déguster sa cuisine.

\n

Apparence: Taille : 1,15 m, corpulence forte, cheveux roux bouclés, yeux marrons.

\n

Personnalité: bavard, sociable, perfectionniste.

\n

Motivations: fournir aux passagers la meilleure nourriture du Vieux Monde.

\n

Exemple de dialogue: ‘BARBARES ! Vous ne pouvez pas servir ça tiède !’ et ‘Je suis tout à fait d’accord, monsieur. Trop d’origan gâcherait normalement le goût, mais...’

" }, "Maximillian Schnippmesser": { - "name": "Maximillian Schnippmesser", - "description": "" + "name": "Maxmillian Schnippmesser", + "description": "", + "gmNotes": "

Max est un grand homme dégingandé aux yeux gris pâle et dont les cheveux gris arrivent aux épaules. Il a des bras relativement longs et porte presque toujours un ciré crasseux qui lui descend aux mollets, ainsi qu’un chapeau à calotte haute qui se balance dangereusement sur sa tête. Max parle d’une voix fluette et nasillarde, et bute constamment sur ses mots. Tout ceci, complété par un nez busqué et une carrure toute en angles, lui donne souvent l’air d’un étourneau nerveux quelque peu dépenaillé. Ses manches sont souvent tachées de sang, mais mis à part ce détail, il s’agit, à sa manière, de quelqu’un de très méticuleux.

\n

Il donne l’impression d’être impatient, incisif et méprisant, mais cerne très bien les gens qu’il rencontre, et est loin d’être aussi dur qu’il aime le prétendre. Vif d’esprit et intelligent, il est bien conscient qu’il pourrait faire fortune en se mettant au service de riches hypocondriaques, mais il préfère venir en aide à ceux qui ont réellement besoin de lui, sans se soucier de leur potentiel manque d’argent. Aux yeux de certains, il est donc devenu un dangereux dissident.

" }, "Mia Answell": { "name": "Mia Answell", - "description": "" + "description": "", + "gmNotes": "

Mia Answell a deux buts précis dans la vie : obtenir une situation confortable en faisant le moins d’efforts possible, et hériter du bateau de son père, le Je décline à regret. Parce que son @UUID[Actor.USyqhyNdCSObjPB4]{père} est une bonne pâte, Mia est parvenue à accomplir le premier de ses deux objectifs avec brio. Malheureusement pour lui, cette victoire douteuse a rendu Mia encore plus impatiente de réaliser le second. Si un groupe de parfaits bons à rien venait à croiser sa route, Mia inventerait toutes sortes d’histoires au sujet de son père pour les convaincre de l’aider à faire d’elle le nouveau capitaine du Je décline à regret Qu’un tel groupe soit tout aussi bien capable de s’emparer du bateau est une idée qui risque de ne pas lui venir à l’esprit avant qu’il ne soit trop tard.

" }, "Monstrous Leech": { - "name": "Monstrous Leech", - "description": "" + "name": "Sangsue Monstrueuse", + "description": "", + "gmNotes": "" + }, + "Big Eared Mutant": { + "name": "Mutant à grandes oreilles", + "description": "", + "gmNotes": "" }, "Mutant Bees": { - "name": "Mutant Bees", - "description": "" + "name": "Abeilles Mutantes", + "description": "", + "gmNotes": "" }, "Mutant Cat": { - "name": "Mutant Cat", - "description": "

The cats vary greatly, but each has at least one visible mutation. Some have long ears or long tails, some are strangely coloured (bright blue, red and yellow stripes), others have human-like hands, or long fangs, or multiple limbs or eyes. You should feel free to describe any kind of mutation that comes to mind. These cats have been thoroughly spoilt by Lady Ingrid. The other residents of the castle try to avoid them, as they can be quite vicious. The creatures are dreaded by the servants of the castle, whom they have been known to attack, and more than one of the beasts has developed a taste for blood that goes beyond mice and small birds.

" + "name": "Chat mutant", + "description": "

Les chats sont très différents les uns des autres, mais ils ont au moins tous une mutation visible. Certains arborent de grandes oreilles ou une grande queue, d’autres ont un pelage aux couleurs étranges (tigré bleu, rouge et jaune vifs), d’autres encore possèdent des mains humaines, ou de longs crocs, voire même plusieurs yeux ou pattes. N’hésitez pas à décrire tous les types de mutations qui vous viennent à l’esprit. Ces chats ont été terriblement gâtés par dame Ingrid. Les autres résidents du château essayent de les éviter parce qu’ils peuvent se montrer vicieux. Les domestiques du château redoutent ces créatures qui les attaquent fréquemment, et qui sont nombreuses à avoir développé un penchant pour le sang de victimes plus grosses que des souris et de petits oiseaux.

", + "gmNotes": "" + }, + "Beak-Face Mutant": { + "name": "Mutant Doté d'un bec", + "description": "

Les attaquants du Bateau

\n

A tort ou à raison, la population de mutants de l'Empire est msie au ban de la société. Si certains cherchent simplement à se cacher, beaucoup se tournent vers la violence, soit pour survivre, soit pour punir la société qui les a abandonnées.

", + "gmNotes": "" }, "Naiad": { - "name": "Naiad", - "description": "

Naiads are beautiful and elusive nature spirits that inhabit some rivers of the Old World. They usually appear as slender, elfin-looking women with pale, blue-tinged flesh and white or blue hair and eyes — but they are natural shapeshifters and can assume a terrifying war-form. Naiads prefer seclusion and defend their territory ferociously from perceived threats. They are inscrutable creatures, with deep passions that are quick to rise without warning.

" + "name": "Naïade", + "description": "

Les naïades sont des esprits de la nature, belles et insaisissables, qui habitent certaines rivières du Vieux Monde. Elles se présentent généralement sous la forme de femmes élancées, à l’allure elfique, au teint pâle et bleuté, aux cheveux et aux yeux blancs ou bleus, mais elles sont naturellement métamorphes et peuvent prendre la forme de guerrières terrifiantes. Les naïades préfèrent l’isolement et défendent férocement leur territoire contre les menaces perçues. Ce sont des créatures impénétrables aux passions profondes qui se déchaînent sans prévenir.

", + "gmNotes": "" }, "Oarsmen": { - "name": "Oarsmen", - "description": "" + "name": "Rameur", + "description": "", + "gmNotes": "

Les rameurs font avancer l'Emperor Luitpold lorsque le vent est insuffisant pour les voiles. La majorité d’entre eux sont d’anciens détenus de la prison pour débiteurs, le Donjon Mundsen d’Altdorf, qui a conclu un accord avec les Lignes Hindelin selon lequel les condamnés les plus forts et les mieux éduqués peuvent travailler à la rame sur les bateaux de la compagnie pour rembourser leurs dettes. Bien que ce travail ne soit pas de tout repos, les rameurs dorment sur leurs rames et doivent être prêts à ramer à toute heure du jour et de la nuit, leur sort est bien meilleur que celui de simples galériens : ils sont nourris régulièrement, encouragés à rester propres et traités correctement par le maître d’équipage.

" }, "Organ Tentacles": { - "name": "Organ Tentacles", - "description": "

A tentacle can only be severed by damage of 6 Wounds or more, delivered in a single blow by an edged weapon. All other damage is instantly regenerated.

" + "name": "Les tentacules", + "description": "

Il est possible de sectionner un tentacule si l’attaque fait au moins 4 Points de Blessure, qu’elle a été infligée par une arme tranchante et en un seul coup. Tous les autres dégâts sont absorbés par sa capacité de régénération.

", + "gmNotes": "" }, "Otto Boormann": { - "name": "Otto Boormann", - "description": "" + "name": "Comte Otto Boormann", + "description": "", + "gmNotes": "

Le comte Otto est un homme d’âge mûr, plutôt replet, avec des cheveux gris et clairsemés toujours coupés avec soin. Au premier abord, il n’est qu’un petit noble guindé et mesquin, qui se croit au-dessus du commun des mortels et insiste pour être traité avec le plus de courbettes possible. Sous cette façade, c’est un homme politique compétent et un excellent juge de caractère ; bien sûr, son snobisme n’est pas feint, mais il est exagéré. Otto a compris qu’il y a bien des avantages à être sous-estimé.

" }, "Otto Gerber": { "name": "Otto Gerber", - "description": "" + "description": "", + "gmNotes": "

Cet austère marchand du Nord remontait le fleuve lorsque son bateau et sa cargaison lui ont été volés par des pirates fluviaux. Il essaie maintenant d’accomplir les missions qui s’offrent à lui afin de rentrer à bon port. Il proposera ses services en tant que « consultant commercial », présentant différentes personnes les unes aux autres en échange d’un pourcentage pour tout accord conclu. Il est à l’affût de la possibilité de se rendre en aval du fleuve à un bon prix (ou gratuitement). Il parlera aux aventuriers de la famille Blucher en échange de quelques pistoles, mais insistera pour échanger dans l’un des boxes à rideaux, où personne ne pourra les entendre ni profiter gratuitement de son expérience.

\n

Otto a fait affaire avec les Blucher à plusieurs reprises et pense que ce sont des hommes d’affaires fiables.. @UUID[Actor.FTT9hoFswIqAW9do]{Matthias} est peut- être jeune, mais il dirige brillamment l’exploitation locale (il n’a même pas fait de pause après son mariage). Les Blucher donnent également dans le commerce d’armes, en particulier d’armes fabriquées par des nains qu’ils transportent des Montagnes Noires à Marienburg, bien qu’ils ne le crient pas sur tous les toits. Otto pense que si cela venait à se savoir, aucun elfe ne traiterait plus avec les Blucher.

" }, "Outlaw": { - "name": "Outlaw", - "description": "" + "name": "Hors-la-loi", + "description": "", + "gmNotes": "

@UUID[Actor.J2gcD0wui2vjEoLB]{Sigrid} est à la tête d’un groupe d’anciens villageois qui ont préféré devenir hors-la-loi plutôt que de continuer à subir le règne sévère et insensé de la famille Wittgenstein. Il y a dix- huit mois, son mari a été emmené au château et personne n’a plus jamais entendu parler de lui. Pour se venger, Sigrid a tué un garde et s’est enfuie dans la forêt, refusant de se soumettre à la justice des Wittgenstein. D’autres hommes et femmes ont fui le village pour la rejoindre ; sa bande compte actuellement trente hors-la-loi.

" }, "Patrol Boat": { - "name": "Patrol Boat" + "name": "Bateau de Patrouille" + }, + "Birdfolk": { + "name": "Peuple Oiseaux", + "description": "

Tous les hommes-oiseaux possèdent un bec crochu, des serres, et des ailes. Même si leur corps et leur tête conservent une forme humaine, ils sont recouverts de plumes colorées. Certains ressemblent à des grives, d'autres à des canaris, à des perroquets, ou d'autres espèces encore. Leur taille varie d'un individu à l'autre : quelques-uns sont de taille humaine, mais la plupart ne sont pas plus grands que des halflings.

\n

Les hommes-oiseaux sont capables de parler une version simplifiée du reikspiel, et sont assez heureux, malgré leur cage pas si dorée. 

", + "gmNotes": "" }, "Pig Headed Mutant": { - "name": "Pig Headed Mutant", - "description": "" + "name": "Mutant à tête de porc", + "description": "", + "gmNotes": "" }, "Purple Hand Cultist": { - "name": "Purple Hand Cultist", - "description": "

All the Purple Hand cultists have some item of clothing that is purple: a tunic, cloak, belt, or something else. After three or four cultist encounters, begin making secret Challenging (+0) Intelligence Tests for the adventurers to spot this purple theme. Also, every cultist has a small purple tattoo of an open hand, somewhere on their bodies. Although the cultists have a variety of occupations which provide them with suitable cover stories, they all have a number of Skills in common, that are listed below. In addition, they have whatever non-combat Skills are consistent with their cover and the situation in which they are encountered.

" + "name": "Adepte de la Main Pourpre", + "description": "

Tous les adeptes de la Main Pourpre portent un vêtement de cette couleur : tunique, cape, ceinture ou autre. Après trois ou quatre rencontres avec des adeptes, commencez à effectuer des Tests Challenging (+0) Intelligence secrets pour que les aventuriers repèrent ces éléments de couleur pourpre. De plus, tous les adeptes ont un petit tatouage violet représentant une main ouverte quelque part sur le corps. Bien qu’ils disposent d’une variété de professions leur fournissant une couverture plausible, ils ont tous un certain nombre de Compétences en commun énumérées ci-dessous. Ils disposent également de toutes les Compétences hors combat cohérentes avec leur couverture et la situation dans laquelle ils se trouvent.

", + "gmNotes": "" }, "Quick-witted Dealmaker": { - "name": "Quick-witted Dealmaker", - "description": "" + "name": "Négociateur vif d’esprit", + "description": "", + "gmNotes": "

Apparence: tout âge et toute carrure. Bien habillé sans trop en faire.

\n

Personnalité: observateur, diplomate, aimable.

\n

Motivations:profiter, s’amuser, établir des contacts utiles.

\n

Exemple de dialogue: ‘Restons en contact. Nous pourrions faire affaire un jour’.

" }, "Rat Swarm (Castle Wittgenstein)": { - "name": "Rat Swarm (Castle Wittgenstein)", - "description": "" + "name": "Horde de rats(Château Wittgenstein)", + "description": "", + "gmNotes": "" }, "Regina Willendorf": { "name": "Regina Willendorf", - "description": "" + "description": "", + "gmNotes": "

Capitaine Regina Willendorf

En plus d’être aux commandes de l'@UUID[JournalEntry.0VspKmtULhucmZCl]{Empereur Luitpold}, avec une autorité qui n’a d’égal que celle de l’Empereur lui-même, le capitaine Willendorf est le visage public de la compagnie des Lignes Hindelin et doit être une hôte aimable aussi bien qu’un chef inflexible. Son principal devoir social est de dîner tous les soirs à la table du capitaine et de faire la conversation avec les passagers les plus distingués du bateau de croisière, mais il peut également arriver qu’elle doive arbitrer des différends entre les passagers sans offenser aucune des parties. Il s’agit d’un rôle exigeant, mais elle possède à la fois les compétences en matière de navigation et de relations sociales pour le mener à bien et occupe l’un des postes les plus convoités de la vie fluviale.

Apparence: taille : 1,75 m, athlétique, cheveux châtain clair, yeux bleus.

Personnalité: formelle, polie, ponctuelle, efficace.

Motivations: un voyage sans problème et des passagers satisfaits.

Exemple de dialogue: ‘Vous profitez bien du voyage ?’

" }, "Reginhard Vieth": { "name": "Reginhard Vieth", - "description": "" + "description": "", + "gmNotes": "

Reginhard Vieth a fait enfermer plus de @UUID[JournalEntry.tYjAPDY7d9Hu5lt1.JournalEntryPage.NA0PooQSdYnBPi6K]{pirates} que la plupart des gens n’en verront jamais, les traînant dans les cellules sous le château Reikguard ou laissant la rivière emporter leurs corps. Pourquoi n’aurait-il pas été autorisé à garder un peu de leur butin pour lui ? Le salaire d’un patrouilleur fluvial était une somme dérisoire comparée à l’argent et aux marchandises qu’il pouvait dérober à ses proies. De telles pensées rongeaient Reginhard, jusqu’à ce qu’un marchand ingrat de trop soit témoin de la nouvelle vie de Vieth et de ses plus loyaux officiers : ils étaient bien déterminés à commencer une nouvelle vie de l’autre côté de la loi. Aujourd’hui, Vieth est la terreur de son tronçon des voies navigables de l’Empire et la honte de ses camarades patrouilleurs fluviaux.

Vieth ne se sépare jamais de son chapeau, fabriqué avec la peau d’un requin qui a failli lui arracher la jambe. Cependant, ce couvre-chef a un autre but qu’afficher fièrement son exploit, car il cache ses mutations : un aileron de requin et des branchies qui ont poussé dans son cou et son dos. Grâce à elles, Vieth est capable de respirer sous l’eau et de nager avec une habileté surnaturelle.

" }, "Reik Eel": { - "name": "Reik Eel", - "description": "

The Reik Eel is found in river Reik and its many tributaries. It commonly grows up to 12–15 feet in length and has a ridge down the length of its green-grey back. Some can grow to truly terrifying sizes, and there are tales — only a little exhaggerated, of Reik Eels swallowing entire row boats.

\n

Reik Eels of size Enormous will typically @UUID[Compendium.wfrp4e-core.items.KynNUYYKzTMeHrKl]{Constrict} their victims before attempting to drag them beneath the water to drown.

" + "name": "Anguille du Reik", + "description": "

L’anguille du Reik se trouve dans le Reik et ses nombreux affluents. Elle atteint généralement une longueur de 3 à 5 mètres et possède une crête sur toute la longueur de son dos vert-gris. Certaines peuvent atteindre des tailles vraiment terrifiantes, et il existe des récits, à peine exagérés, d’anguilles du Reik avalant des barques entières.

\n

Les Anguilles du Reik de Taille Énorme étoufferont généralement leurs victimes @UUID[Compendium.wfrp4e-core.items.KynNUYYKzTMeHrKl]{Empêtré} avant de tenter de les entraîner sous l’eau pour les noyer.

", + "gmNotes": "" }, "Reiner Dampfer": { "name": "Reiner Dampfer", - "description": "" + "description": "", + "gmNotes": "

Les canotiers de la  Maria Borger  sont des hommes amicaux et affables avec la plupart des gens qu’ils croisent sur le fleuve, mais ils gardent toujours une arbalète à portée de main. @UUID[Actor.aXFzRsefQ7YCXxOj]{Reiner} et @UUID[Actor.5EI89gq14N3aYdg3]{Karl} ont une vingtaine d’années, et se préparent à reprendre l’entreprise familiale. @UUID[Actor.ohx4btGNaWPnb59A]{Hans} est plus âgé et expérimenté que les deux fils Dampfer : ça fait presque dix ans qu’il travaille avec leur père. À cause du travail nécessaire à l’entretien et au bon fonctionnement de la barge, sans parler de son inquiétude pour ses camarades malades, Reiner n’a pas une minute à lui. Il fera de son mieux pour assister les aventuriers, mais ses corvées sur le bateau occuperont le plus clair de son temps.

" }, "Reiner Petersen": { "name": "Reiner Petersen", - "description": "" + "description": "", + "gmNotes": "

Second pilote Reiner Petersen 

\n

Reiner prend le relais lorsqu’Ella se repose ou sert de paire d’yeux supplémentaire sur les tronçons traîtres de la rivière. Il apprend encore le métier de nautonier. Mais un second pilote sur un bateau de croisière de classe impériale équivaut à un pilote en chef presque partout ailleurs.

\n

Apparence : taille : 1,70 m, mince, cheveux bruns flottants, yeux noisette.

\n

Personnalité : calme, studieux, sérieux.

\n

Motivations : éviter les dangers de la rivière, apprendre le métier.

\n

Exemple de dialogue : ‘ Étrange... Vous voyez cette forme à la surface ? Deux cents mètres, à l’avant bâbord. Il y a quelque chose là-bas qui ne se trouve pas sur les cartes, un morceau de bois, probablement. Pourrez-vous jeter un coup d’œil d’en haut quand nous passerons à côté ? J’aimerais savoir si j’ai vu juste’.

" }, "Renate Hausier": { "name": "Renate Hausier", - "description": "" + "description": "", + "gmNotes": "

Jeune femme très indépendante et autonome, Renate est souvent prise pour une Strigany. Elle préfère les vêtements aux couleurs vives aux motifs complexes, et porte généralement un foulard rouge sur ses cheveux noir corbeau, ainsi que deux grands anneaux en or aux oreilles. Renate est d’un naturel prudent (les joueurs auront peut-être un autre mot pour la définir) et entretient une aversion plutôt saine pour le danger. Elle essaiera toujours de trouver un moyen non violent d’échapper au danger, par exemple, en bluffant, en se cachant ou en fuyant. Elle aime voyager et voir des endroits différents. Plutôt qu’un amour particulier pour l’aventure, c’est cette raison qui l’a motivée à embrasser la vie itinérante de colporteuse. Si les aventuriers l’invitent à les rejoindre, elle le fera volontiers, car elle sait qu’elle est plus en sécurité avec eux que seule.

" }, "River Patrol Captain": { - "name": "River Patrol Captain", - "description": "" + "name": "Capitaine de la patrouille fluviale", + "description": "", + "gmNotes": "

Le bateau de patrouille fluviale a un équipage de [[/r 2+D10]] @UUID[Actor.Az8G5vd6t6lQk1hU]{patrouilleurs fluviaux}, dont un capitaine. Ce sont généralement des individus sérieux qui prennent leurs devoirs à cœur, et qui ont tendance à traiter les autres Riverains avec impartialité.

" }, "River Patrol Crew": { - "name": "River Patrol Crew", - "description": "" + "name": "Équipage de la patrouille fluviale", + "description": "", + "gmNotes": "

Le bateau de patrouille fluviale a un équipage de [[/r 2+D10]] @UUID[Actor.Az8G5vd6t6lQk1hU]{patrouilleurs fluviaux}, dont un capitaine. Ce sont généralement des individus sérieux qui prennent leurs devoirs à cœur, et qui ont tendance à traiter les autres Riverains avec impartialité.

" }, "River Troll": { - "name": "River Troll", - "description": "

Trolls are described in general terms @UUID[Compendium.wfrp4e-core.actors.7qslmdLa7so3BmFk]{here}. The following description and rules can be used for River Trolls.

\n

River Trolls are rare in the Empire, but not unknown. They are most common in the remote headwaters of the Empire’s great rivers, and a few are known to dwell in mountains lakes, but from time to time a River Troll will appear unexpectedly in a more populous area, lying in wait for passers-by under a bridge or in a bankside cave. A River Troll somewhat resembles the bottom of the river, if that riverbed is particularly coated in sediment, slime, rotting vegetation, fish carcasses, and other detritus. Its smell has been compared (unfavourably) to that of a rubbish-strewn mud-flat at low tide.

" + "name": "Troll des rivières", + "description": "

Les Trolls sont décrits de manière générale @UUID[Compendium.wfrp4e-core.actors.7qslmdLa7so3BmFk]{ici}. TLa description et les règles suivantes peuvent être utilisées pour les trolls des rivières.

\n

Les trolls des rivières sont rares dans l’Empire, mais pas inconnus. On les trouve le plus souvent dans les sources reculées des grandes rivières de l’Empire, et quelques-uns sont connus pour habiter les lacs des montagnes. De temps en temps, un troll des rivières apparaît inopinément dans une zone plus peuplée, attendant les passants sous un pont ou dans une grotte en bord de rivière. Un Troll des rivières ressemble un peu au fond d’une rivière, surtout si ce lit est particulièrement recouvert de sédiments, de vase, de végétation en décomposition, de carcasses de poissons et d’autres détritus. Son odeur a été comparée (assez défavorablement) à celle d’une vasière couverte de détritus à marée basse.

", + "gmNotes": "" }, "Roland ‘The Horse’ Bruckesel": { - "name": "Roland ‘The Horse’ Bruckesel", - "description": "" + "name": "Roland ‘Le Cheval’ Bruckesel", + "description": "", + "gmNotes": "

Bruckesel n’est sûr que de deux choses : la quantité minimale d’impact nécessaire pour fendre un crâne humain, et que le @UUID[Actor.3K8n0EmzIvvO8CaK]{Baron Sigismund} n’a jamais tort. Ces deux certitudes lui ont bien servi dans la vie.

" }, "Row Boat": { - "name": "Row Boat" + "name": "Barque" }, "Ruairi Roddy": { "name": "Ruairi Roddy", - "description": "" + "description": "", + "gmNotes": "

Ruairi est un homme robuste qui a fait fortune dans le commerce du crin de cheval. Connaisseur de tous les sujets, mais expert dans peu de domaines, il aime régaler quiconque veut bien l’écouter. ‘Vous voulez savoir qui a fait ça aux Wittgenstein ? Je vais vous le dire, moi. C’est les nains. Non. Enfin... Tout ce que je dis, c’est que j’y étais, moi, il y a cinq ans, et j’ai vu ce petit gars incroyable, vous voyez, et il portait une pelle. Vous me suivez ? Et les nains, ils construisent des tunnels, n’est-ce pas ? Et je pense, je dis ça comme ça, qu’ils ont peut-être creusé un très gros trou. Un gros trou, vous voyez ? Ils ont creusé en dessous du château, alors il est tombé. C’est logique. Vous me suivez ?’

\n

Si les aventuriers ne ‘le suivent pas’, Ruairi partira dédaigneusement à la recherche d’un meilleur faire-valoir avec qui partager sa sagesse, pour revenir plus tard, encore plus ivre. ‘Alors, donc, ce château ? J’ai bien réfléchi. Et je sais qui a fait ça, vous voyez ? Les hommes-bêtes, vous me suivez ? Tout ce que je veux dire, c’est qu’on entend beaucoup parler des hommes-bêtes, mais jamais des hommes-poissons. C’est pas vrai ? C’est sûr qu’il y a des hommes-poissons. Enfin, je veux dire, c’est logique. C’est les hommes-poissons. Ils ont grignoté la rive. C’est logique...’

" }, "Sailing Crew": { - "name": "Sailing Crew", - "description": "" + "name": "Équipage", + "description": "", + "gmNotes": "

Sous l’œil attentif du @UUID[Actor.6455iMweyeMpYj9T]{maître d’équipage}, un équipage réduit, mais compétent, s’occupe des voiles du bateau de croisière et le fait avancer, tant que le vent est favorable.

" }, "Self Made, Obnoxious Trader": { - "name": "Self Made, Obnoxious Trader", - "description": "" + "name": "Marchand autodidacte et odieux", + "description": "", + "gmNotes": "

Apparence: d’âge moyen, en surpoids. Vêtement ostentatoire, peu d’allure.

\n

Personnalité: flatteur envers les personnes socialement supérieures, insultant envers les personnes inférieures. Vain, arrogant, lâche, avare. Bruyant, sans tact, souvent vulgaire.

\n

Motivations: avidité, besoin d’impressionner.

\n

Exemple de dialogue: ‘e n’avais rien quand j’ai commencé .’ et ‘ls n’ont jamais travaillé de leur vie, eux’.

" }, "Sentry": { - "name": "Sentry", - "description": "" + "name": "Sentinelle", + "description": "", + "gmNotes": "

Les gardes du château étaient autrefois humains, mais le fait d’avoir vécu si près de la malepierre les a quelque peu transformés. Sous leur cotte de mailles et leur casque intégral se cache un corps en putréfaction. Quiconque aperçoit le visage ou le corps d’un garde devra faire un Test de Peur 2 ou rester pétrifié. En plus de ça, l’odeur de pourriture et de saleté est telle que quiconque se trouve dans un rayon de 2 mètres doit réussir un Test de Challenging (+0) Endurance, sous peine d’un malus de -10 à la CC. 

Voir la mutation @UUID[.Item.5TYShpZL7umAIBns]{Chair en putréfaction} pour appliquer le malus de CC et de Peur.

" }, "Shadow The Cat": { - "name": "Shadow The Cat", - "description": "

@UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka’s} black cat, Shadow, accompanies her wherever she goes. Although Shadow appears intelligent, with a disconcertingly knowing look in her eyes, she is an ordinary black cat.

" + "name": "Ombre, le chat", + "description": "

Le chat noir d'@UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka}, Ombre, l’accompagne partout où elle va. Même si Ombre a l’air doué d’intelligence, et que ses yeux pétillent comme ceux d’un humain, c’est un chat noir tout ce qu’il y a de plus ordinaire.

", + "gmNotes": "" }, "Shif Doppler": { "name": "Shif Doppler", - "description": "" + "description": "", + "gmNotes": "

Doppler est cruel, vaniteux, et la torture lui procure un immense plaisir. Pour cacher son visage en putréfaction, il porte un masque lui donnant l’apparence d’un beau jeune homme. L’effet de ce masque très réaliste est gâché par les plaies qui lui couvrent le cou. Le courage de Doppler repose sur la présence de ses gardes. Si on le surprend seul, il se rendra immédiatement, mais tentera de faire tomber les aventuriers dans un piège. Il pourrait très bien leur offrir des informations précieuses, mais il mentira toujours si on lui demande où se trouve le reste des gardes, sauf s’il craint réellement pour sa vie.

" }, "Sigfrida Junker": { "name": "Sigfrida Junker", - "description": "" + "description": "", + "gmNotes": "

Une vie d’idylle et d’excès aurait pu être le lot de Sigfrida, si elle l’avait souhaité. Malheureusement, cette possibilité a été écartée lorsqu’elle a assisté à un duel à la poudre noire dans les rues de Nuln. Les mots du noble, le bruit de la poudre, le sang qui gicle... Elle a trouvé toute cette situation extrêmement excitante. Depuis, elle a décidé de se tourner vers une vie d’aventure et d’excès. Elle a quitté Nuln la saison suivante et, jusqu’à présent, la chance de Sigfrida et son objectif sont restés stables.

" }, "Sigismund von der Bahr": { "name": "Sigismund von der Bahr", - "description": "" + "description": "", + "gmNotes": "

Le bon baron a vécu une tout autre vie autrefois, mais peu de choses durent éternellement, comme von der Bahr le sait si bien. Aujourd’hui, il se distrait en parcourant les auberges et les tavernes de l’Empire, à la recherche d’une conversation exaltante ou d’un partenaire d’entraînement pour @UUID[Actor.7a5vHhRxCI7ZsI09]{Roland}, ce qui pourrait produire un combat intéressant.

" }, "Sigrid Sommerfeld": { "name": "Sigrid Sommerfeld", - "description": "

Personality and Appearance

\n

 ‘Of course I'll go in first. Can't be any worse than Castle Wittgenstein...’

\n

Sigrid has long, dark hair, and a perpetually serious expression. In those moments when she forgets her worries, however, something of the starry-eyed initiate of Rhya returns. She is wary of most people these days, and of the Empire's nobility in particular, whom she now suspects all harbour some secret corruption. Her loyalty, though rarely given, is almost unshakeable, and Rhya will go to great lengths to protect those who are important to her.

\n

Sigrid is a determined woman who protects the outlaws under her command. While the outlaws often attack guard patrols, she is against a direct assault on the castle, knowing that it will only end in defeat. She will help the adventurers reach the castle, but will not allow her followers to risk a direct assault unless the adventurers clear the way — for example, by infiltrating the castle through the secret cave and lowering ropes from the walls, or opening the main gates.

\n

Background

\n

Sigrid made her home in Wittgendorf, and would have been happy to live out her life there were it not for the Wittgenstein's kidnapping of her husband. She was devoted to Brandt, having left the priesthood to marry him, and swore to rescue him. She opposed the castle and its wardens long before the Characters arrived, and quite likely played an instrumental part in overthrowing the Wittgensteins for good.

\n

Castle Wittgenstein was a dangerous place, and it is quite possible that one of the existing Characters met their end their. If this is the case, Sigrid would make an excellent player character, especially if her allegiance was gained before the assault on the castle. Her husband will pass away from the effects of exposure to warpstone after a brief reunion, and Sigrid's surviving bandits will return to what is left of their lives in Wittgendorf. This leaves Sigrid with little tying her to the sullen village, and good reason to join the Characters as they depart. Especially so, in fact, if they reveal to Sigrid that this is not the first time they have opposed the terrible machinations of the Ruinous Powers.

\n

Secrets

\n

Begin with an additional [[/r 1d10]] silver shillings per secret chosen.

\n
    \n
  • Sigrid was not a initiate of Rhya, but of Slaanesh! Though she turned away from that path before loosing her very soul, occasional whispers of the Prince of Pleasure still trouble her dreams. Sigrid gains the @UUID[Compendium.wfrp4e-core.items.sYbgpSnRqSZWgwFP]{Etiquette} talent.

  • \n
  • Sigrid's suspicion of the Empire's nobility has deepened into a terrible paranoia, as she is certain that they are all as bad as the Wittgensteins, and just better at hiding it. Sigrid gains the @UUID[Compendium.wfrp4e-core.items.Q2MCUrG2HppMcvN0]{Animosity (Target)} Psychology Trait. 

  • \n
  • Sigrid's experiences in the Castle return to haunt her almost nightly, and she harbours a deep fear of ever return to such a place. Gain the @UUID[Compendium.wfrp4e-core.items.4CMKeDTDrRQZbPIJ]{Afraid} Psychology Trait (castles and similar fortifications cause Fear 0 to Sigrid).

  • \n
  • While Sigrid's mother was a local farmer, her father was in fact @UUID[Actor.ihG2gFIFF6Ai5Gik]{Ludwig von Wittgenstein} — the affair having taken place prior to his metamorphosis some ten years ago. The circumstances of her birth were kept secret from the village, and indeed from Sigrid until she became an adult, as the kindly Ludwig knew the truth could only bring unwelcome attention on the child.
  • \n
" + "description": "

Apparence et personnalité

\n

 ‘Bien sûr, j’entre la première. Ça ne peut pas être pire que le château Wittgenstein...’

\n

Sigrid a de longs cheveux sombres, et une expression sérieuse constamment ancrée sur le visage. Mais quand elle parvient à oublier ses soucis, on devine sous ce masque l’ancienne initiée de Rhya, rêveuse et idéaliste. Ces derniers temps, elle se méfie de la plupart des gens, surtout des nobles de l’Empire, qu’elle soupçonne de prendre part à quelque complot maléfique. Elle n’accorde sa loyauté que rarement, mais une fois gagnée, elle est quasiment inébranlable. Elle est prête à tout pour protéger ceux qui comptent pour elle.

\n

Sigrid est une femme déterminée qui protège les hors-la- loi sous son commandement. Alors qu’ils attaquent souvent les patrouilles de garde, elle est contre un assaut direct sur le château, sachant pertinemment que la seule issue possible est la défaite. Elle aidera les aventuriers à atteindre le château, mais ne permettra pas à ses partisans de se risquer à une attaque, à moins que les aventuriers ne leur ouvrent la voie, par exemple, en s’infiltrant dans le château par la grotte secrète et en lançant des cordes depuis le haut des murs, ou en ouvrant les portes principales.

\n

Historique

\n

Sigrid s’est installée à Wittgendorf, et aurait été heureuse d’y finir sa vie si les Wit- tgenstein n’avaient pas capturé son mari. Elle est très dévouée envers Brandt, pour qui elle a même quitté son ordre religieux. Elle s’est juré de lui venir en aide. Elle s’est élevée contre le château et ses habitants bien avant l’arrivée des aventuriers, et il est certain qu’elle a joué un rôle majeur dans le renversement final des Wittgenstein.

\n

Le château Wittgenstein était un endroit dangereux, et il est tout à fait possible qu’un des personnages y ait trouvé la mort. Si c’est le cas, Sigrid peut faire un excellent personnage joueur, surtout si son allégeance a été acquise avant l’attaque du château. Après de brèves retrouvailles avec son mari, celui-ci décédera à la suite de son exposition à la malepierre. Les bandits de Sigrid reprendront leur vie (ou ce qu’il en reste) à Wittgendorf. Sigrid n’a donc plus grand-chose pour la retenir dans ce village maussade, et peut tout à fait se joindre aux personnages avant leur départ. D’ailleurs, s’ils ont mentionné qu’ils s’opposent régulièrement aux terribles machinations des Puissances de la Ruine, Sigrid aura particulièrement envie de leur prêter ses forces.

\n

Secrets

\n

Commencez avec 1d10 pistoles d’argent en plus par secret choisi.

\n
    \n
  • Sigrid n’était pas une initiée de Rhya, mais de Slaanesh ! Bien qu’elle ait renoncé à ce chemin avant d’y perdre son âme, il lui arrive encore d’entendre le Prince du plaisir lui murmurer à l’oreille pour troubler ses rêves. Sigrid gagne le Talent @UUID[Compendium.wfrp4e-core.items.sYbgpSnRqSZWgwFP]{Savoir-vivre} (Cultistes de Slaanesh).

  • \n
  • Les suspicions de Sigrid envers les nobles de l’Empire se sont transformées en une terrible paranoïa : elle est persuadée qu’ils sont tous aussi corrompus que les Wittgenstein, et qu’ils le cachent simplement mieux. Sigrid gagne le Trait Psychologique @UUID[Compendium.wfrp4e-core.items.Q2MCUrG2HppMcvN0]{Animosité (Noblesse)}. 

  • \n
  • Ce que Sigrid a vécu au Château revient la hanter presque toutes les nuits, et elle est maintenant terrifiée à l’idée de retourner dans un tel endroit. Elle gagne le Trait Psychologique @UUID[Compendium.wfrp4e-core.items.4CMKeDTDrRQZbPIJ]{Effrayé} (Châteaux). Les châteaux et autres bâtiments fortifiés présentent le Trait Peur (0) à Sigrid.

  • \n
  • La mère de Sigrid était une fermière de la région. Mais son père, lui, n’était autre que @UUID[Actor.ihG2gFIFF6Ai5Gik]{Ludwig von Wittgenstein} —. Leur liaison date d’avant sa transformation, plus de 10 ans auparavant. Au village, les circonstances de sa naissance ont été tenues secrètes, et Sigrid elle-même n’a appris la vérité qu’à l’âge adulte. Ludwig, toujours attentionné, savait que cela n’apporterait que des ennuis à l’enfant.
  • \n
", + "gmNotes": "" }, "Sigrund Dopplewasser": { "name": "Sigrund Dopplewasser", - "description": "" + "description": "", + "gmNotes": "

Il fut un temps où Sigrund savait très bien que ses remèdes miracles ne guérissaient personne, mais ce temps est désormais révolu. Il a suffi de quelques guérisons heureuses, d’un peu de bidouillage avec ses propres concoctions et de l’éternelle crédulité d’un public désespéré de trouver du secours pour qu’il adopte le surnom de ‘Sigrund Dopplewasser, Médecin d’illustre renommée’, et qu’il ne réfère plus à sa personne d’une autre manière. Sigrund est convaincu que ses potions, baumes et autres remèdes sont vraiment efficaces, et même lorsqu’il apparaît évident que ce n’est pas du tout le cas, il trouve toujours une excuse. Peut-être que les plumes de coquelet n’ont pas été obtenues en plumant l’oiseau tout en étant tourné vers le sud, ou peut-être que les crottes de souris en poudre étaient en fait des crottes de rat ? Toujours à la recherche de nouveaux remèdes fantastiques, Sigrund a récemment fait l’acquisition d’une bouteille de la célèbre panacée du village de Wittgendorf, et il a terriblement hâte de l’essayer.

" }, "Simone L’escalier": { - "name": "Simone L’escalier", - "description": "" + "name": "Simone L’Escalier", + "description": "", + "gmNotes": "

Il peut être difficile de vivre en Bretonnie quand on est une jeune libre-penseuse cherchant à se faire une place dans le monde, et Simone trouve que les mœurs relativement libérales de l’Empire, en particulier celles des riverains, sont une véritable bouffée d’air frais. Certes, la plupart des habitants de l’Empire se contentent encore d’élever des porcs, mais même cela ne la répugne pas. La jeune troubadour serait presque entièrement insouciante. Mais, il y a quelques mois de cela, Simone a ‘fait l’acquisition’ d’une harpe, un magnifique instrument de bois aux cordes d’argent auprès d’un elfe distrait. Depuis elle n’a eu de cesse d’avoir l’impression qu’on l’observe depuis la rive.

" }, "Skaven Warrior": { - "name": "Skaven Warrior", - "description": "

The Skaven

\n

@UUID[Actor.VdK2FAqQTqT0Y19Q]{Crot} and his followers have been drawn to this area by the traces of warpstone that remain here. Their instincts tell them that a large piece of warpstone was here, but has been removed. They have been watching the adventurers since they arrived, and when they enter the caves, the Skaven see a chance to capture and question them.

" + "name": "Guerrier Skaven", + "description": "

Les skavens

\n

@UUID[Actor.VdK2FAqQTqT0Y19Q]{Crap} et ses compagnons sont venus dans cette région car ils ont été attirés par les résidus d’énergie de la malepierre. Leur instinct leur dit qu’un gros morceau de malepierre se trouvait là, mais qu’il n’y est plus. Ils observent les aventuriers depuis leur arrivée, et quand ceux-ci sont entrés dans les grottes, les skavens y ont vu une opportunité de les capturer et de les interroger.

", + "gmNotes": "" }, "Skeleton": { - "name": "Skeleton", - "description": "

Because of the way they died, these skeletons are not Unstable, and can move around freely. If the Characters flee, the skeletons will follow them until they are destroyed or the Characters are dead.

" + "name": "Squelette", + "description": "

en raison des circonstances de leur mort, ces squelettes ne sont pas Instables, et peuvent se déplacer librement. Si les Personnages fuient, les squelettes les poursuivront jusqu’à être détruits ou jusqu’à ce que les Personnages meurent.

", + "gmNotes": "" }, "Skeleton (Castle Wittgenstein)": { - "name": "Skeleton (Castle Wittgenstein)", - "description": "" + "name": "Squelette (Château Wittgenstein)", + "description": "", + "gmNotes": "" }, "Skysoarer": { - "name": "Skysoarer", - "description": "

@UUID[Actor.dEVeJ9SMkWL55IHn]{Corrobreth} has trained Skysoarer to act as a scout, flying in an indicated direction and swooping to mark the positions of any people or creatures that he sees larger than the raven himself. When not acting as a scout for Corrobreth, Skysoarer usually sits on his shoulder.

" + "name": "Graulich le corbeau", + "description": "

@UUID[Actor.dEVeJ9SMkWL55IHn]{Corrobreth} a entraîné Graulich pour qu’il lui serve d’éclaireur : il peut voler dans une direction donnée et descendre en piqué pour indiquer la position de personnes ou de créatures plus grandes que lui. Quand il ne sert pas d’éclaireur à Corrobreth, Graulich reste généralement perché sur son épaule.

", + "gmNotes": "" }, "Slagdarg": { "name": "Slagdarg", - "description": "

All 10’ 5” of Slagdarg is bright green, with orange hairs growing out of his muscular arms. The heads of some of his previous victims hang from a large belt around his waist. He likes to keep his victims alive as long as possible but always asks the same two questions: ‘Where did you hide the money?’ and ‘Who are your accomplices?’ Regardless of what his victim may or may not have done — evading taxes or accidentally walking in front of @UUID[Actor.fmUd7AtbJckbiWo6]{Lady Margritte’s} coach — he always asks these same questions, and failing to answer is a good reason for turning the rack another notch. Slagdarg is not very bright, even for an ogre, and will think nothing of adventurers wandering around his dungeon. However, he will be alert to any ‘funny business,’ such as releasing prisoners, and will attempt to prevent it. He only got this job because the previous torturer accidentally flayed a visiting cousin of @UUID[Actor.fmUd7AtbJckbiWo6]{Lady Margritte}, so until he knows who the adventurers are, he will use violence as a last resort.

" + "description": "

Du haut de ses 3 m 20,Slagdarg est d’un vert vif parsemé de poils orange au niveau de ses bras musclés. Les têtes de quelques- unes de ses dernières victimes pendent à la grande ceinture qui lui enserre la taille. Il aime les maintenir en vie aussi longtemps que possible et leur pose toujours les deux mêmes questions : ‘Où est l’argent ? ’ et ‘ Qui sont tes complices ?’ Peu importe le crime de sa victime, que ce soit de l’évasion fiscale ou avoir marché sans faire exprès devant la calèche de @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte}, il pose toujours ces deux questions, et ne pas y répondre justifie de faire tourner le levier du chevalet d’un cran supplémentaire. Slagdarg n’est pas très malin, même pour un ogre, et ne se posera pas de question sur la présence des aventuriers dans ses cachots. Cependant, il sentira les potentielles ‘entourloupes’, comme la libération des prisonniers, et tentera de les empêcher. Il a obtenu ce poste suite à une erreur du tortionnaire précédent, qui avait écorché un des cousins de dame Margritte, venu lui rendre visite. Tant qu’il ne saura pas qui sont les aventuriers, il n’usera de la violence qu’en dernier recours.

", + "gmNotes": "" }, "Slurd The Butler": { - "name": "Slurd The Butler", - "description": "" + "name": "Slurd le majordome", + "description": "", + "gmNotes": "

Slurd a au moins 90 ans, mais personne ne connaît son âge exact, et lui non plus. Il a toujours été là, d’aussi loin qu’on se souvienne, et il a toujours été vieux. Slurd marche le dos voûté, si bien que son chef ridé et grisâtre pointe toujours vers le sol. Sa voix est rocailleuse et il penche toujours la tête sur le côté quand il parle. Sa main gauche a muté en serre d’oiseau, ce qui explique pourquoi il la cache dès que possible. En cas d’attaque, il tentera de griffer le visage de son adversaire. Slurd est sénile et se contente de répéter quelques actions simples. Il n’est pas une source sûre puisqu’il ne fait que répéter les paroles et les gestes imposés par son poste de majordome, encore et encore, sans réellement en comprendre le sens.

" }, "Sofia Fischer": { "name": "Sofia Fischer", - "description": "" + "description": "", + "gmNotes": "

Le petit bateau de pêche de Sofia, le Six pieds sous l’onde, est à la fois un rêve d’enfant devenu réalité, l’opportunité de gagner sa vie grâce à la rivière, et un témoignage de sa méconnaissance du fonctionnement des prêts à intérêts. Même si la vie de pêcheuse qu’elle mène sur les eaux du Reik s’est avérée aussi passionnante qu’elle l’avait imaginée, il n’y a tout simplement pas assez de truites dans le Reik pour rembourser sa dette grandissante. Si Sofia ne ferre pas rapidement une prise de valeur, une bonne prise de rougets barbus, par exemple, elle peut être certaine de perdre son bateau, ou même sa tête.

" }, "Sophie van Haagen": { "name": "Sophie van Haagen", - "description": "" + "description": "", + "gmNotes": "

Sorte de vilain petit canard de sa famille, Sophie est issue de l’illustre (et excessivement riche) famille van Haagen, l’une des dix maisons décisionnaires de Marienburg et l’une des principales puissances de Bögenhafen. Cependant, Sophie considère que l’accent mis par sa famille sur les produits de luxe standard est contraire à son propre esprit d’entreprise, c’est pourquoi elle s’est lancée sur les routes de l’Empire à la recherche de produits réellement exotiques. Bien sûr, ils ont tendance à être fournis par les pires personnes, mais cela ne semble pas déranger Sophie.

" }, "Stefan": { "name": "Stefan", - "description": "" + "description": "", + "gmNotes": "

@UUID[Actor.J2cgcgVT1mCOPKaQ]{Harold} et Stefan, quand ils ne sont pas occupés à récurer les casseroles dans les cuisines du @UUID[JournalEntry.w5rvSKCXvivjnTVU.JournalEntryPage.PTqp6A7lC9v8x7uu]{Col du Cygne}, prennent un malin plaisir à botter les fesses des ivrognes, des profiteurs, des fauteurs de troubles, des troubadours et des mimes. Leur taille et leur réputation leur permettent d’éviter la plupart des problèmes, mais on peut toujours compter sur eux pour se jeter corps et âme dans n’importe quelle situation impliquant la boisson.

" }, "Stewards": { - "name": "Stewards", - "description": "" + "name": "Serveur", + "description": "", + "gmNotes": "

Une équipe d’une douzaine de serveurs fait la navette entre les cuisines, prend les commandes et veille au confort et à la satisfaction des passagers.

" }, "Stirpike": { - "name": "Stirpike", - "description": "

Although the mottled, grey-green Stirpike has almost been wiped out in Stirland, it is still found in some lakes and rivers elsewhere in the Empire. It is one of the largest freshwater predators in the Old World, capable of reaching lengths of some 20 feet and weights in excess of 4,000 pounds. It eats anything foolish enough to cross its path, but its primary diet is a mixture of fish, eels, and leeches. Immature Stirpikes, called Pickerels, are believed to have various medicinal qualities, and are much sought after.

" + "name": "Brochet du Stir", + "description": "

Bien que le ‘brochet du Stir’ tacheté de gris et de vert, ait presque disparu du Stirland, on le trouve encore dans certains lacs et rivières ailleurs dans l’Empire. C’est l’un des plus grands prédateurs d’eau douce du Vieux Monde, capable d’atteindre une longueur de 6 mètres et un poids de plus de 1,8 tonne. Il dévore tous les êtres assez inconscients pour croiser son chemin, mais se nourrit principalement d’un mélange de poissons, d’anguilles et de sangsues. Les jeunes brochets du Stir, appelés brochetons, sont réputés pour leurs qualités médicinales et sont donc très recherchés.

", + "gmNotes": "" }, "Sven Stoutbeard": { - "name": "Sven Stoutbeard", - "description": "" + "name": "Sven Barbedrue", + "description": "", + "gmNotes": "

Faites une autre arme à feu’, qu'ils disent. ‘C’est toujours utile, les armes à feu.’ La Guilde des ingénieurs de Middenheim, n’ayant accès à aucune étendue d’eau, ne s’est jamais montrée très enthousiasmée par les plans de bateaux de Sven. Qu’importe si le mécanisme de propulsion était astucieux, ou qu’il avait réalisé des calculs de flottabilité très précis, qu’importe la vitesse maximale supposée du bateau, la Cité a toujours refusé de lui accorder les fonds nécessaires. Sven est donc parti pour le Reikland où, au moins, on sait apprécier un bon bateau. Si seulement son prototype d’hydrofreins avait survécu au voyage...

" }, "Tentacled Mutant": { - "name": "Tentacled Mutant", - "description": "

The Boat Attackers

\n

Rightly or wrongly, the Empire’s population of mutants are shunned from society. While some simply seek to hide themselves away,  many turn to violence — either to survive, or to punish the society that abandoned them.

" + "name": "Mutant à tentacules", + "description": "

Les attaquants du Bateau

\n

À tort ou à raison, la population de mutants de l’Empire est mise au ban de la société. Si certains cherchent simplement à se cacher, beaucoup se tournent vers la violence, soit pour survivre, soit pour punir la société qui les a abandonnés.

", + "gmNotes": "" }, "The Beggars Of Wittgendorf": { "name": "The Beggars Of Wittgendorf", - "description": "

These unfortunates have suffered terribly under the experiments arranged by @UUID[Actor.fmUd7AtbJckbiWo6]{Lady Margritte} and administered by @UUID[Actor.vgazeY44kVGP4tmW]{Jean Rousseaux}. Each Beggar already has 4 Corruption points, and you should make one or two rolls on the @Table[mutatephys]{table} to determine what mutations they bear. Even brief physical contact counts as a @Corruption[minor]{Minor Exposure to Corruption}.

" + "description": "

Ces malheureux ont terriblement souffert des expériences menées par @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte} et administrés par @UUID[Actor.vgazeY44kVGP4tmW]{Jean Rousseaux}. Chaque mendiant possède déjà 4 points de Corruption, et vous êtes invité à leur attribuer une ou deux mutations à déterminer en effectuant un ou deux lancers en vous basant sur le tableau @Table[mutatephys]{de Corruption physique}. Même un bref contact physique compte comme une @Corruption[minor]{Exposition Mineure à la Corruption}.

", + "gmNotes": "" }, "The Carrion": { - "name": "The Carrion", - "description": "

Carrion are seldom seen in the Old World, although some accompanied the armies of Nekehara in their ancient campaigns of conquest and a few can be found in the remoter parts of the Worlds Edge Mountains. These great undead birds are powerful fighters, even though they are too small to carry a human-sized rider.

" + "name": "Charognard", + "description": "

Les charognards sont rares dans le Vieux Monde, bien qu’il y en ait eu quelques-uns qui accompagnèrent les armées de Néhékhara dans leurs campagnes de conquête, il y a fort longtemps, et qu’on peut parfois en apercevoir dans les régions les plus reculées des Montagnes du Bord du Monde. Ces grands oiseaux morts-vivants sont de redoutables combattants, mais ils sont trop petits pour être chevauchés par une créature de la taille d’un humain.

", + "gmNotes": "" }, "The Thing In The Pit": { - "name": "The Thing In The Pit", - "description": "" + "name": "La Chose dans la Fosse", + "description": "", + "gmNotes": "" }, "The Wittgenstein Monster": { - "name": "The Wittgenstein Monster", - "description": "

The monster stands 8 ft tall, and its body is a patchwork of scars. It has dead-white skin with green discolouration on the cheeks and lower jaw.

" + "name": "Le Monstre de Wittgenstein", + "description": "

Le monstre, quant à lui, mesure près de deux mètres cinquante et son corps est un patchwork de cicatrices. Sa peau, d’un blanc cadavérique, est décolorée en taches vertes sur les joues ainsi que sur la partie inférieure de sa mâchoire.

", + "gmNotes": "" }, "Thierry Ostend": { "name": "Thierry Ostend", - "description": "" + "description": "", + "gmNotes": "

Ce Wastelander rusé vit pour se quereller, et il est très doué pour cela. Il n’y a rien de mieux pour terminer sa soirée qu’aborder avec un étranger la question de la législation sur l’arbalète à Altdorf ou les implications de la déclaration de l’Empereur selon laquelle les mutants ne doivent pas être mis au bûcher. Ce qui est véritablement agaçant, c’est qu’il peut débattre avec n’importe quel point de vue. Il lui arrive même de changer de camp en plein milieu de la discussion, sans jamais admettre que ses propos ont alterné et en argumentant de façon si experte que personne ne pourra le prouver. Pour faire simple, il est insupportable.

\n

Ostend est l’un des affréteurs locaux des Blucher. @UUID[Actor.q7DYHbjxedEeX2WN]{Max} lui a demandé de garder un œil sur les aventuriers et de lui rapporter à qui ils parlent et ce qu’ils demandent. Il se présentera à Max sur les quais tôt le lendemain matin. Les autres marchands de l’auberge savent qu’il est proche des Blucher, alors ils lui parlent, même si peu d’entre eux l’apprécient. Plus tard, il sera aperçu en train de se disputer violemment avec @UUID[Actor.AUpwf9ZR5IMVgyHm]{Ruairi Roddy}.

" }, "Three Eyed Mutant": { - "name": "Three Eyed Mutant", - "description": "" + "name": "Mutant à trois yeux", + "description": "", + "gmNotes": "" }, "Typical Barge": { - "name": "Typical Barge" + "name": "Barge moyenne" }, "Ulfhednar The Destroyer": { - "name": "Ulfhednar The Destroyer", - "description": "

Ulfhednar leads a band of mutants and Beastmen in the Great Forest. Having heard of the family’s reputation, he has journeyed to @UUID[JournalEntry.musGjY0nSDY6gPY4.JournalEntryPage.idS4ciy1UHxTFFfU]{Castle Wittgenstein} to gain @UUID[Actor.ySbdLyidudlMwGhU]{Lady Ingrid’s} support. Ulfhednar hopes to use the castle as a training ground for Chaos troops, and as a base from which his forces could strike at the Empire’s heartlands. So far, Lady Ingrid has not shown much interest in his scheme, but if she were removed, Ulfhednar thinks @UUID[Actor.fmUd7AtbJckbiWo6]{Lady Margritte} may be more amenable. A follower of Tzeentch, Ulfhednar does not understand why a castle full of mutants would not willingly join his cause.

" + "name": "Ulfhednar le Destructeur", + "description": "

Ulfhednar est à la tête d’une bande de mutants et d’hommes- bêtes dans la Grande Forêt. Ayant eu vent de la réputation de la famille Wittgenstein, il a voyagé jusqu’au @UUID[JournalEntry.musGjY0nSDY6gPY4.JournalEntryPage.idS4ciy1UHxTFFfU]{château Wittgenstein} pour obtenir le soutien de @UUID[Actor.ySbdLyidudlMwGhU]{dame Ingrid}. Ulfhednar espère faire de ce lieu un terrain d’entraînement pour des armées du Chaos et de s’en servir comme une base pour permettre à ses forces de frapper le cœur de l’Empire. Pour l’instant, dame Ingrid n’a pas montré de signe d’intérêt pour ce plan, mais si elle venait à passer le flambeau, Ulfhednar pense que @UUID[Actor.fmUd7AtbJckbiWo6]{dame Margritte} serait davantage disposée à l’écouter. En tant que fidèle de Tzeentch, Ulfhednar ne comprend pas pourquoi un château rempli de mutants refuserait de rejoindre sa cause.

", + "gmNotes": "" }, "Unseen Ghost": { - "name": "Unseen Ghost", - "description": "" + "name": "Fantôme invisible", + "description": "", + "gmNotes": "" }, "Uwe Wasserhund": { "name": "Uwe Wasserhund", - "description": "" + "description": "", + "gmNotes": "

UeUwe et ses amis ne se lassent jamais de ‘cabrioler’, selon leur expression, sur les voies fluviales de l’Empire. Cette pratique consiste à piloter un bateau de course, rapide et onéreux, de manière à frôler les embarcations plus petites pour les faire dangereusement vaciller sur l’eau, faisant ainsi basculer par- dessus bord les passagers peu méfiants. À la fin de la nuit, celui qui a fait tomber le plus de victimes à l’eau est déclaré vainqueur. Uwe ne se rend vraiment pas compte des désagréments que ces ‘cabrioles’ causent aux riverains, il pense honnêtement que ‘’est juste pour rire, mon vieux !’. Malgré son attitude bravache, Uwe s’est récemment trouvé ébranlé par sa rencontre avec une certaine @UUID[Actor.wXB3Bam0z0kp45Ht]{Etelka Herzen}; cette femme avait quelque chose de perturbant, et depuis ce jour, les jeux que ses camarades nobles affectionnent tant ne lui ont plus paru aussi insouciants...

" }, "Vine": { - "name": "Vine", - "description": "" + "name": "Liane grimpante", + "description": "", + "gmNotes": "" }, "Vorster the Elder": { - "name": "Vorster the Elder", - "description": "" + "name": "Vorster le doyen", + "description": "", + "gmNotes": "

Vorster est doyen depuis 12 ans, il est aimé et respecté de tout le @UUID[JournalEntry.VbIsVjYK2ttpvkG2.JournalEntryPage.YMz2qRfYwqkfavWD]{village}. C’est un homme gentil et sympathique qui adore recevoir des invités. Il fait beaucoup d’efforts pour garantir leur confort, mais toujours de telle manière que son attitude paraisse naturelle et non forcée.

" }, "Watch Recruit": { - "name": "Watch Recruit", - "description": "" + "name": "Recrue de la Garde", + "description": "", + "gmNotes": "" }, "Watch Sergeant": { - "name": "Watch Sergeant", - "description": "" + "name": "Sergent de la Garde", + "description": "", + "gmNotes": "" + }, + "‘Wet’ Wilgryn Augenlos": { + "name": "Wilgryn Augenlos dit 'Le Trempé'", + "description": "", + "gmNotes": "

Wilgryn a vécu toute sa vie sur la rivière ; ce n’est pas une exagération de dire que ses semelles ont plus souvent connu le bois d’un pont de bateau que la terre ferme. Il fit une brève pause dans sa carrière de patrouilleur fluvial pour poursuivre son rêve de devenir marchand, mais quand une entreprise de commerce rivale brûla sa péniche dans le but d’évincer la concurrence, Wilgryn se trouva ramené de force à la vie qu’il avait presque laissée derrière lui. Ce qu’il fit cette nuit-là à Kemperbad donna naissance à une véritable légende, dont l’histoire ne fait que gagner en extravagance avec chaque nouvelle génération de recrues. Aujourd’hui, Wilgryn est un maître abordeur chevronné et respecté de tous, avec sous son commandement une petite flotte de bateaux de patrouille. Il voit d’un très mauvais œil les pratiques commerciales douteuses, et on raconte que plus d’un extorqueur serait « tombé » par- dessus bord pour être jugé directement par Grand-père Reik.

" }, "Winged Mutant": { - "name": "Winged Mutant", - "description": "

The Boat Attackers

\n

Rightly or wrongly, the Empire’s population of mutants are shunned from society. While some simply seek to hide themselves away,  many turn to violence — either to survive, or to punish the society that abandoned them.

" + "name": "Mutant ailé", + "description": "

Les attaquants du Bateau

\n

À tort ou à raison, la population de mutants de l’Empire est mise au ban de la société. Si certains cherchent simplement à se cacher, beaucoup se tournent vers la violence, soit pour survivre, soit pour punir la société qui les a abandonnés.

", + "gmNotes": "" }, "Young Blood": { - "name": "Young Blood", - "description": "" + "name": "Jeune Noble", + "description": "", + "gmNotes": "

Apparence: jeune, athlétique, magnifiquement habillé.

\n

Personnalité:fougueux, irresponsable, bruyant.

\n

Motivations:: s’amuser, faire des blagues, embarrasser les autres.

\n

Exemple de dialogue: ‘Je vous le dis, mes amis ! C’est tout à fait splendide ! Quel amusement !’ et ‘Certaines personnes n’ont vraiment aucun sens de l’humour. Quel ennui’.

" }, "Zombie": { "name": "Zombie", - "description": "" + "description": "", + "gmNotes": "" } } } \ No newline at end of file diff --git a/packs/aides-de-jeu-fr/000671.log b/packs/aides-de-jeu-fr/000675.log similarity index 100% rename from packs/aides-de-jeu-fr/000671.log rename to packs/aides-de-jeu-fr/000675.log diff --git a/packs/aides-de-jeu-fr/CURRENT b/packs/aides-de-jeu-fr/CURRENT index 5046eb9..7c9beee 100644 --- a/packs/aides-de-jeu-fr/CURRENT +++ b/packs/aides-de-jeu-fr/CURRENT @@ -1 +1 @@ -MANIFEST-000669 +MANIFEST-000673 diff --git a/packs/aides-de-jeu-fr/LOG b/packs/aides-de-jeu-fr/LOG index ca86fa3..35b1929 100644 --- a/packs/aides-de-jeu-fr/LOG +++ b/packs/aides-de-jeu-fr/LOG @@ -1,7 +1,7 @@ -2024/05/12-19:57:00.248099 7f003e0006c0 Recovering log #667 -2024/05/12-19:57:00.258537 7f003e0006c0 Delete type=3 #665 -2024/05/12-19:57:00.258601 7f003e0006c0 Delete type=0 #667 -2024/05/12-20:49:52.183624 7f00374006c0 Level-0 table #672: started -2024/05/12-20:49:52.183681 7f00374006c0 Level-0 table #672: 0 bytes OK -2024/05/12-20:49:52.190384 7f00374006c0 Delete type=0 #670 -2024/05/12-20:49:52.197399 7f00374006c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) +2024/05/14-23:48:30.544546 7f505e0006c0 Recovering log #671 +2024/05/14-23:48:30.556244 7f505e0006c0 Delete type=3 #669 +2024/05/14-23:48:30.556333 7f505e0006c0 Delete type=0 #671 +2024/05/14-23:52:38.338843 7f50574006c0 Level-0 table #676: started +2024/05/14-23:52:38.338863 7f50574006c0 Level-0 table #676: 0 bytes OK +2024/05/14-23:52:38.344995 7f50574006c0 Delete type=0 #674 +2024/05/14-23:52:38.345156 7f50574006c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) diff --git a/packs/aides-de-jeu-fr/LOG.old b/packs/aides-de-jeu-fr/LOG.old index bfebf8d..ca86fa3 100644 --- a/packs/aides-de-jeu-fr/LOG.old +++ b/packs/aides-de-jeu-fr/LOG.old @@ -1,7 +1,7 @@ -2024/05/12-17:23:23.760010 7f003fe006c0 Recovering log #663 -2024/05/12-17:23:23.771077 7f003fe006c0 Delete type=3 #661 -2024/05/12-17:23:23.771226 7f003fe006c0 Delete type=0 #663 -2024/05/12-17:38:17.603956 7f00374006c0 Level-0 table #668: started -2024/05/12-17:38:17.604017 7f00374006c0 Level-0 table #668: 0 bytes OK -2024/05/12-17:38:17.611370 7f00374006c0 Delete type=0 #666 -2024/05/12-17:38:17.619020 7f00374006c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) +2024/05/12-19:57:00.248099 7f003e0006c0 Recovering log #667 +2024/05/12-19:57:00.258537 7f003e0006c0 Delete type=3 #665 +2024/05/12-19:57:00.258601 7f003e0006c0 Delete type=0 #667 +2024/05/12-20:49:52.183624 7f00374006c0 Level-0 table #672: started +2024/05/12-20:49:52.183681 7f00374006c0 Level-0 table #672: 0 bytes OK +2024/05/12-20:49:52.190384 7f00374006c0 Delete type=0 #670 +2024/05/12-20:49:52.197399 7f00374006c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) diff --git a/packs/aides-de-jeu-fr/MANIFEST-000669 b/packs/aides-de-jeu-fr/MANIFEST-000673 similarity index 71% rename from packs/aides-de-jeu-fr/MANIFEST-000669 rename to packs/aides-de-jeu-fr/MANIFEST-000673 index 89e6ed62fb4a5253d48e319ae2cbfbe050d66732..457f0942f784e5eae153b5ed9246130615afd7fd 100644 GIT binary patch delta 41 scmdnOxP@`TB&FT%KUldK7?~EaaxyS4W@TZ0qt?<35?BlpSPB#X0QEl!wg3PC delta 41 scmdnOxP@`TB&DNUY&5tS7@6j=axyT_XJui1sr+6UBrqQ&un;H!0Puqee*gdg diff --git a/packs/antidotes-and-remedes/000673.log b/packs/antidotes-and-remedes/000677.log similarity index 100% rename from packs/antidotes-and-remedes/000673.log rename to packs/antidotes-and-remedes/000677.log diff --git a/packs/antidotes-and-remedes/CURRENT b/packs/antidotes-and-remedes/CURRENT index c4246ad..f90546c 100644 --- a/packs/antidotes-and-remedes/CURRENT +++ b/packs/antidotes-and-remedes/CURRENT @@ -1 +1 @@ -MANIFEST-000671 +MANIFEST-000675 diff --git a/packs/antidotes-and-remedes/LOG b/packs/antidotes-and-remedes/LOG index 699b0e3..ce12ace 100644 --- a/packs/antidotes-and-remedes/LOG +++ b/packs/antidotes-and-remedes/LOG @@ -1,7 +1,7 @@ -2024/05/12-19:57:00.261517 7f003f4006c0 Recovering log #669 -2024/05/12-19:57:00.271873 7f003f4006c0 Delete type=3 #667 -2024/05/12-19:57:00.271979 7f003f4006c0 Delete type=0 #669 -2024/05/12-20:49:52.155346 7f00374006c0 Level-0 table #674: started -2024/05/12-20:49:52.155386 7f00374006c0 Level-0 table #674: 0 bytes OK -2024/05/12-20:49:52.162269 7f00374006c0 Delete type=0 #672 -2024/05/12-20:49:52.176604 7f00374006c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end) +2024/05/14-23:48:30.559289 7f505fe006c0 Recovering log #673 +2024/05/14-23:48:30.569004 7f505fe006c0 Delete type=3 #671 +2024/05/14-23:48:30.569056 7f505fe006c0 Delete type=0 #673 +2024/05/14-23:52:38.318581 7f50574006c0 Level-0 table #678: started +2024/05/14-23:52:38.318638 7f50574006c0 Level-0 table #678: 0 bytes OK +2024/05/14-23:52:38.325513 7f50574006c0 Delete type=0 #676 +2024/05/14-23:52:38.325810 7f50574006c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end) diff --git a/packs/antidotes-and-remedes/LOG.old b/packs/antidotes-and-remedes/LOG.old index f6a123a..699b0e3 100644 --- a/packs/antidotes-and-remedes/LOG.old +++ b/packs/antidotes-and-remedes/LOG.old @@ -1,7 +1,7 @@ -2024/05/12-17:23:23.774214 7f003f4006c0 Recovering log #665 -2024/05/12-17:23:23.784867 7f003f4006c0 Delete type=3 #663 -2024/05/12-17:23:23.785034 7f003f4006c0 Delete type=0 #665 -2024/05/12-17:38:17.626800 7f00374006c0 Level-0 table #670: started -2024/05/12-17:38:17.626894 7f00374006c0 Level-0 table #670: 0 bytes OK -2024/05/12-17:38:17.634869 7f00374006c0 Delete type=0 #668 -2024/05/12-17:38:17.641746 7f00374006c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end) +2024/05/12-19:57:00.261517 7f003f4006c0 Recovering log #669 +2024/05/12-19:57:00.271873 7f003f4006c0 Delete type=3 #667 +2024/05/12-19:57:00.271979 7f003f4006c0 Delete type=0 #669 +2024/05/12-20:49:52.155346 7f00374006c0 Level-0 table #674: started +2024/05/12-20:49:52.155386 7f00374006c0 Level-0 table #674: 0 bytes OK +2024/05/12-20:49:52.162269 7f00374006c0 Delete type=0 #672 +2024/05/12-20:49:52.176604 7f00374006c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end) diff --git a/packs/antidotes-and-remedes/MANIFEST-000671 b/packs/antidotes-and-remedes/MANIFEST-000675 similarity index 71% rename from packs/antidotes-and-remedes/MANIFEST-000671 rename to packs/antidotes-and-remedes/MANIFEST-000675 index dfe2482630fa22eca529ec73dd08ddb63d444d8f..0f9b01e22229befa20888baffd45302be326b972 100644 GIT binary patch delta 43 tcmdnQxQTH>pUU#4UB=uDj7&>dIT@Ijva;M`{CC>F8YHq5B(fYN0stas3-tg1 delta 43 tcmdnQxQTH>pGw)ETPwL47?~EZaxyS4WM#R>=pUr^5hSt@B(fMJ0st^(NL6ucom;B>qU}Rdv%E`dIn3d%fV@J9jH%MeLNMtEU1OP)#3@!iw delta 43 tcmaFL_>^(NL6t=PusCi8My7eJoD9tKSy^5&a@ah(3=)|S5?Kfm0RRyY3nl;n diff --git a/packs/tables-des-traductions/000314.log b/packs/tables-des-traductions/000318.log similarity index 100% rename from packs/tables-des-traductions/000314.log rename to packs/tables-des-traductions/000318.log diff --git a/packs/tables-des-traductions/CURRENT b/packs/tables-des-traductions/CURRENT index 16e7795..e90c1f7 100644 --- a/packs/tables-des-traductions/CURRENT +++ b/packs/tables-des-traductions/CURRENT @@ -1 +1 @@ -MANIFEST-000312 +MANIFEST-000316 diff --git a/packs/tables-des-traductions/LOG b/packs/tables-des-traductions/LOG index 426e847..7ec0851 100644 --- a/packs/tables-des-traductions/LOG +++ b/packs/tables-des-traductions/LOG @@ -1,8 +1,8 @@ -2024/05/12-19:57:00.275118 7f003e0006c0 Recovering log #310 -2024/05/12-19:57:00.285010 7f003e0006c0 Delete type=3 #308 -2024/05/12-19:57:00.285145 7f003e0006c0 Delete type=0 #310 -2024/05/12-20:49:52.162355 7f00374006c0 Level-0 table #315: started -2024/05/12-20:49:52.162382 7f00374006c0 Level-0 table #315: 0 bytes OK -2024/05/12-20:49:52.168680 7f00374006c0 Delete type=0 #313 -2024/05/12-20:49:52.176626 7f00374006c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) -2024/05/12-20:49:52.176865 7f00374006c0 Manual compaction at level-1 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) +2024/05/14-23:48:30.572338 7f505e0006c0 Recovering log #314 +2024/05/14-23:48:30.582605 7f505e0006c0 Delete type=3 #312 +2024/05/14-23:48:30.582656 7f505e0006c0 Delete type=0 #314 +2024/05/14-23:52:38.325971 7f50574006c0 Level-0 table #319: started +2024/05/14-23:52:38.326024 7f50574006c0 Level-0 table #319: 0 bytes OK +2024/05/14-23:52:38.332122 7f50574006c0 Delete type=0 #317 +2024/05/14-23:52:38.345133 7f50574006c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) +2024/05/14-23:52:38.345174 7f50574006c0 Manual compaction at level-1 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) diff --git a/packs/tables-des-traductions/LOG.old b/packs/tables-des-traductions/LOG.old index a2886fe..426e847 100644 --- a/packs/tables-des-traductions/LOG.old +++ b/packs/tables-des-traductions/LOG.old @@ -1,8 +1,8 @@ -2024/05/12-17:23:23.788971 7f003fe006c0 Recovering log #306 -2024/05/12-17:23:23.801582 7f003fe006c0 Delete type=3 #304 -2024/05/12-17:23:23.801758 7f003fe006c0 Delete type=0 #306 -2024/05/12-17:38:17.619338 7f00374006c0 Level-0 table #311: started -2024/05/12-17:38:17.619401 7f00374006c0 Level-0 table #311: 0 bytes OK -2024/05/12-17:38:17.626389 7f00374006c0 Delete type=0 #309 -2024/05/12-17:38:17.641726 7f00374006c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) -2024/05/12-17:38:17.641779 7f00374006c0 Manual compaction at level-1 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) +2024/05/12-19:57:00.275118 7f003e0006c0 Recovering log #310 +2024/05/12-19:57:00.285010 7f003e0006c0 Delete type=3 #308 +2024/05/12-19:57:00.285145 7f003e0006c0 Delete type=0 #310 +2024/05/12-20:49:52.162355 7f00374006c0 Level-0 table #315: started +2024/05/12-20:49:52.162382 7f00374006c0 Level-0 table #315: 0 bytes OK +2024/05/12-20:49:52.168680 7f00374006c0 Delete type=0 #313 +2024/05/12-20:49:52.176626 7f00374006c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) +2024/05/12-20:49:52.176865 7f00374006c0 Manual compaction at level-1 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end) diff --git a/packs/tables-des-traductions/MANIFEST-000312 b/packs/tables-des-traductions/MANIFEST-000312 deleted file mode 100644 index e1349e3b2bc32e720080d0a45dfdb1fe659d71ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 143 zcmWGJz2r<910$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAei1tp>(4LDii%nJrA2v( zIf@3RW}ZHNenmc+0folynZ}Ha3}ApzQJEH1kz?X%9^qIT>Sk7C%*X>#(b2K>9v1^6 a(@rK%2IgH%EIc-X9E(8$yFdbafC2!?H77^_ diff --git a/packs/tables-des-traductions/MANIFEST-000316 b/packs/tables-des-traductions/MANIFEST-000316 new file mode 100644 index 0000000000000000000000000000000000000000..d6b24ac82e299f7c0a121da29ebd94f231fe312e GIT binary patch literal 143 zcmWGJz2r<910$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAei1tp>(4LDii%nJrA2v( zIf@3RW}ZHNenmc+0folynZ}Ha3}ApzQJEH1kz?X%9^qIT>Sk7C%*X>#;e61nj*Eej aX)hBe1M@y67M=@J- + { + mergeObject(game.wfrp4e.config.effectScripts, ${JSON.stringify(scriptObj)}); + }); + +}` + +fs.writeFileSync("./loadScripts.js", scriptLoader) +console.log(`Packed ${count} scripts`); \ No newline at end of file diff --git a/scripts/00ZCnahnTGvzG9KA.js b/scripts/00ZCnahnTGvzG9KA.js new file mode 100644 index 0000000..4018161 --- /dev/null +++ b/scripts/00ZCnahnTGvzG9KA.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.weczkAMPlTjX7lqU") +this.actor.createEmbeddedDocuments("Item", [item]) \ No newline at end of file diff --git a/scripts/01VFjGVxkjb5P1ve.js b/scripts/01VFjGVxkjb5P1ve.js new file mode 100644 index 0000000..fe302f4 --- /dev/null +++ b/scripts/01VFjGVxkjb5P1ve.js @@ -0,0 +1 @@ +return args.item?.system?.isRanged && args.data.targets[0]?.actor?.sizeNum < 3 \ No newline at end of file diff --git a/scripts/03mJu59V4iByWlsO.js b/scripts/03mJu59V4iByWlsO.js new file mode 100644 index 0000000..bba8bab --- /dev/null +++ b/scripts/03mJu59V4iByWlsO.js @@ -0,0 +1,25 @@ +// The imbiber immediately +// takes 3 Poisoned Conditions that cannot be resisted at first, +await this.actor.addCondition("poisoned", 3) + +// recovers a number of Wounds equal to their Toughness Bonus, +await this.actor.modifyWounds(this.actor.system.characteristics.t.bonus) + +// and acquires the Regenerate Creature Trait. +const hasRegenerate = this.actor.has("Regenerate") +if (hasRegenerate === undefined) { + fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR").then(trait => { + let traitItem = trait.toObject() + this.actor.createEmbeddedDocuments("Item", [traitItem], {fromEffect: this.effect.id}) + }) +} + +this.script.scriptMessage(`

${this.actor.prototypeToken.name} has +

    +
  • gained 3 Poisoned Conditions that cannot be resisted at first
  • +
  • recovered ${this.actor.system.characteristics.t.bonus} Wounds
  • +
  • acquired the Regenerate Creature Trait.
  • +
+ It’s up to Ranald if their regenerating can outpace their poisoning.

+

When all Poisoned Conditions are lost, so too is Regenerate.

`, + { whisper: ChatMessage.getWhisperRecipients("GM"), blind: true }) diff --git a/scripts/04bAiHISSW53w94Y.js b/scripts/04bAiHISSW53w94Y.js new file mode 100644 index 0000000..2909e9f --- /dev/null +++ b/scripts/04bAiHISSW53w94Y.js @@ -0,0 +1 @@ +this.actor.addCondition("blinded", 3) \ No newline at end of file diff --git a/scripts/06IaVCOC0RCJbxEf.js b/scripts/06IaVCOC0RCJbxEf.js new file mode 100644 index 0000000..b2f49cb --- /dev/null +++ b/scripts/06IaVCOC0RCJbxEf.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.8piWcBKFlQ2J1E3A") +let data = item.toObject(); +data.system.location.key= this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data]) \ No newline at end of file diff --git a/scripts/09sSpnW8z2zcVEdf.js b/scripts/09sSpnW8z2zcVEdf.js new file mode 100644 index 0000000..7079a3c --- /dev/null +++ b/scripts/09sSpnW8z2zcVEdf.js @@ -0,0 +1,5 @@ +if (!args.flags.quietenedApplied) +{ + args.fields.modifier += 10; + args.flags.quietenedApplied = true +} \ No newline at end of file diff --git a/scripts/0BP5l7bIkf744G1k.js b/scripts/0BP5l7bIkf744G1k.js new file mode 100644 index 0000000..22f117a --- /dev/null +++ b/scripts/0BP5l7bIkf744G1k.js @@ -0,0 +1 @@ +return !args.options.terror && !args.extendedTest?.flags.wfrp4e?.fear \ No newline at end of file diff --git a/scripts/0FNOq4J1AdPd2A0q.js b/scripts/0FNOq4J1AdPd2A0q.js new file mode 100644 index 0000000..ed69d87 --- /dev/null +++ b/scripts/0FNOq4J1AdPd2A0q.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Row")) && !args.skill?.name.includes(game.i18n.localize("NAME.Sail")); \ No newline at end of file diff --git a/scripts/0FWto1oEr3jbWggw.js b/scripts/0FWto1oEr3jbWggw.js new file mode 100644 index 0000000..725afc8 --- /dev/null +++ b/scripts/0FWto1oEr3jbWggw.js @@ -0,0 +1,22 @@ +let spells = await game.wfrp4e.utility.findAll("spell", "Chargement des sorts") + +let text = (await game.wfrp4e.tables.rollTable("random-caster", {hideDSN: true})).result + +lore = Array.from(text.matchAll(/{(.+?)}/gm))[0][1] + +if (text == "GM's Choice") +{ + return this.script.scriptNotification(text) +} + +if (spellsWithLore.length > 0) +{ + let spellsWithLore = spells.filter(i => game.wfrp4e.config.magicLores[i.system.lore.value] == lore) + let selectedSpell = spellsWithLore[Math.floor(CONFIG.Dice.randomUniform() * spellsWithLore.length)] + this.script.scriptNotification(selectedSpell.name); + this.actor.createEmbeddedDocuments("Item", [selectedSpell]) +} +else +{ + ui.notifications.notify(`Impossible de trouver le sort ${lore}. Essayez à nouveau`) +} \ No newline at end of file diff --git a/scripts/0KG3HoTNoZhaINIj.js b/scripts/0KG3HoTNoZhaINIj.js new file mode 100644 index 0000000..195442f --- /dev/null +++ b/scripts/0KG3HoTNoZhaINIj.js @@ -0,0 +1,6 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.4CMKeDTDrRQZbPIJ") +let fixation = (await game.wfrp4e.tables.rollTable("fixations")) +let data = item.toObject(); +data.system.specification.value = fixation.result; +this.item.updateSource({name : this.item.name += ` (${fixation.result})`}); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/0LCQtsiK2aUfYRmD.js b/scripts/0LCQtsiK2aUfYRmD.js new file mode 100644 index 0000000..8bdb4ef --- /dev/null +++ b/scripts/0LCQtsiK2aUfYRmD.js @@ -0,0 +1 @@ +return !["t", "wp"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/0R0QAr3D024kWPfo.js b/scripts/0R0QAr3D024kWPfo.js new file mode 100644 index 0000000..ee3ed07 --- /dev/null +++ b/scripts/0R0QAr3D024kWPfo.js @@ -0,0 +1,18 @@ +let table = game.wfrp4e.tables.findTable("mutatephys"); +if (!table) +{ + return ui.notifications.error("La table des Mutations n'a pas été trouvée. Assurez vous que la table avec la clé `mutatephys` est bien importée dans le monde.") +} +let result = (await table.roll()).results[0]; +let uuid = `Compendium.${result.documentCollection}.${result.documentId}` +let item = await fromUuid(uuid); + +if (item) +{ + this.script.scriptNotification(`${item.name} added`) + this.actor.createEmbeddedDocuments("Item", [item]) +} +else +{ + ui.notifications.error("L'item ne peut être trouvé: " + uuid) +} \ No newline at end of file diff --git a/scripts/0Uly7OmkH0zqYbxQ.js b/scripts/0Uly7OmkH0zqYbxQ.js new file mode 100644 index 0000000..70ed1ac --- /dev/null +++ b/scripts/0Uly7OmkH0zqYbxQ.js @@ -0,0 +1,21 @@ +let location = this.item.system.location.key; + +if (location) +{ + let dropped = this.item.system.weaponsAtLocation; + + if (dropped.length) + { + this.script.scriptNotification(`Lache ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} + +let roll = await new Roll("max(1, 1d10 - @system.characteristics.t.bonus)", this.actor).roll() + +roll.toMessage(this.script.getChatData({flavor : `${this.effect.name} (Durée)`})); + +this.effect.updateSource({"duration.rounds" : roll.total}) \ No newline at end of file diff --git a/scripts/0YKQGbsKdHSmYGE7.js b/scripts/0YKQGbsKdHSmYGE7.js new file mode 100644 index 0000000..bb5ad3c --- /dev/null +++ b/scripts/0YKQGbsKdHSmYGE7.js @@ -0,0 +1,9 @@ +if (args.skill?.name != game.i18n.localize("NAME.Gossip")) +{ + return true; +} +else +{ + args.data.canReverse = true; // Kind of a kludge here, the talent Tests has a specific condition, but the description simply says "any gossip test can be reversed" so check it here instead of submission +} + \ No newline at end of file diff --git a/scripts/0abwNjpzo3SbEOeO.js b/scripts/0abwNjpzo3SbEOeO.js new file mode 100644 index 0000000..3e7463b --- /dev/null +++ b/scripts/0abwNjpzo3SbEOeO.js @@ -0,0 +1,6 @@ +if (args.applyAP && args.modifiers.ap.metal) +{ + args.modifiers.ap.ignored += args.modifiers.ap.metal + args.modifiers.ap.details.push("" + this.effect.name + ": Ignore le Métal (" + args.modifiers.ap.metal + ")"); + args.modifiers.ap.metal = 0 +} \ No newline at end of file diff --git a/scripts/0e0UZT2FodOJDdgW.js b/scripts/0e0UZT2FodOJDdgW.js new file mode 100644 index 0000000..b4db0a3 --- /dev/null +++ b/scripts/0e0UZT2FodOJDdgW.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.GbDyBCu8ZjDp6dkj") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/0e7OkamNAaAk4Oit.js b/scripts/0e7OkamNAaAk4Oit.js new file mode 100644 index 0000000..60cb5c0 --- /dev/null +++ b/scripts/0e7OkamNAaAk4Oit.js @@ -0,0 +1,10 @@ +let item1 = await fromUuid("Compendium.wfrp4e-core.items.3S4OYOZLauXctmev") +let item2 = await fromUuid("Compendium.wfrp4e-core.items.7mCcI3q7hgWcmbBU") + +let data1 = item1.toObject(); +data1.system.location.key = this.item.system.location.key + +let data2 = item2.toObject(); +data2.system.location.key = this.item.system.location.key + +this.actor.createEmbeddedDocuments("Item", [data1, data2], {fromEffect: this.effect.id}) diff --git a/scripts/0iTLDgFHO9Rgc010.js b/scripts/0iTLDgFHO9Rgc010.js new file mode 100644 index 0000000..5d34264 --- /dev/null +++ b/scripts/0iTLDgFHO9Rgc010.js @@ -0,0 +1 @@ +args.fields.modifier -= 20; \ No newline at end of file diff --git a/scripts/0mrUnxzufYgsR0Ph.js b/scripts/0mrUnxzufYgsR0Ph.js new file mode 100644 index 0000000..2c22c29 --- /dev/null +++ b/scripts/0mrUnxzufYgsR0Ph.js @@ -0,0 +1,7 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => { + await test.roll() + if (test.failed) + { + this.actor.addCondition("stunned") + } +}) diff --git a/scripts/0vaYwAlMWTmOBl8k.js b/scripts/0vaYwAlMWTmOBl8k.js new file mode 100644 index 0000000..002e76f --- /dev/null +++ b/scripts/0vaYwAlMWTmOBl8k.js @@ -0,0 +1,7 @@ +if (!args.flags.strikeToStun) +{ + args.flags.strikeToStun = true + args.fields.modifier += 20; + args.fields.hitLocation = "head"; +} +args.fields.successBonus++; \ No newline at end of file diff --git a/scripts/0yyofYHeDRQlFliO.js b/scripts/0yyofYHeDRQlFliO.js new file mode 100644 index 0000000..dda0e0e --- /dev/null +++ b/scripts/0yyofYHeDRQlFliO.js @@ -0,0 +1 @@ +return args.options.terror || args.extendedTest?.flags.wfrp4e?.fear \ No newline at end of file diff --git a/scripts/11uCC0mK2uL783al.js b/scripts/11uCC0mK2uL783al.js new file mode 100644 index 0000000..100b843 --- /dev/null +++ b/scripts/11uCC0mK2uL783al.js @@ -0,0 +1,6 @@ +let type = this.item.getFlag("wfrp4e", "breath"); + +if (["fire", "electricity", "poison"].includes(type)) +{ + args.applyAP = false; +} \ No newline at end of file diff --git a/scripts/16nCOByUaSFDym1V.js b/scripts/16nCOByUaSFDym1V.js new file mode 100644 index 0000000..7d16a24 --- /dev/null +++ b/scripts/16nCOByUaSFDym1V.js @@ -0,0 +1 @@ +args.fields.modifier -= 20 diff --git a/scripts/190PHSHKGaJ74wsR.js b/scripts/190PHSHKGaJ74wsR.js new file mode 100644 index 0000000..dd52e55 --- /dev/null +++ b/scripts/190PHSHKGaJ74wsR.js @@ -0,0 +1,31 @@ +if (!this.item.name.includes("(") || this.item.system.tests.value.includes("Terrain")) +{ + let tests = this.item.system.tests.value + let name = this.item.name + + // If name already specifies, make sure tests value reflects that + if (name.includes("(")) + { + let terrain = name.split("(")[1].split(")")[0] + tests = tests.replace("the Terrain", terrain) + } + else // If no sense specified, provide dialog choice + { + let choice = await ItemDialog.create(ItemDialog.objectToArray({ + coastal : "Coastal", + deserts : "Deserts", + marshes : "Marshes", + rocky : "Rocky", + tundra : "Tundra", + woodlands : "Woodlands" + }, this.item.img), 1, "Choose Terrain"); + if (choice[0]) + { + name = `${name.split("(")[0].trim()} (${choice[0].name})` + tests = tests.replace("the Terrain", choice[0].name + " Terrain") + } + } + + this.effect.updateSource({name}) + this.item.updateSource({name, "system.tests.value" : tests}) +} \ No newline at end of file diff --git a/scripts/1A87vGLh2PXH0rG0.js b/scripts/1A87vGLh2PXH0rG0.js new file mode 100644 index 0000000..8a4090c --- /dev/null +++ b/scripts/1A87vGLh2PXH0rG0.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Language")); \ No newline at end of file diff --git a/scripts/1BT0MWM2cbhlEnrn.js b/scripts/1BT0MWM2cbhlEnrn.js new file mode 100644 index 0000000..46f9433 --- /dev/null +++ b/scripts/1BT0MWM2cbhlEnrn.js @@ -0,0 +1,40 @@ + let characteristics = { + "ws" : 5, + "bs" : 5, + "s" : 5, + "t" : 0, + "i" : 5, + "ag" : 5, + "dex" : 5, + "int" : 0, + "wp" : 5, + "fel" : 5 + } + let items = [] + + let updateObj = this.actor.toObject(); + + let talents = (await Promise.all([game.wfrp4e.tables.rollTable("talents"), game.wfrp4e.tables.rollTable("talents"), game.wfrp4e.tables.rollTable("talents")])).map(i => i.text) + + for (let ch in characteristics) + { + updateObj.system.characteristics[ch].modifier += characteristics[ch]; + } + + for (let talent of talents) + { + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + } + + + await this.actor.update(updateObj) + this.actor.createEmbeddedDocuments("Item", items); + diff --git a/scripts/1E47r2ba6IGe8uFK.js b/scripts/1E47r2ba6IGe8uFK.js new file mode 100644 index 0000000..f6a8c61 --- /dev/null +++ b/scripts/1E47r2ba6IGe8uFK.js @@ -0,0 +1 @@ +return args.characteristic != "t" \ No newline at end of file diff --git a/scripts/1IodsW9ImamYoEYz.js b/scripts/1IodsW9ImamYoEYz.js new file mode 100644 index 0000000..b72334a --- /dev/null +++ b/scripts/1IodsW9ImamYoEYz.js @@ -0,0 +1 @@ +args.actor.details.move.run += 4 \ No newline at end of file diff --git a/scripts/1JwxZujbDcueLWBL.js b/scripts/1JwxZujbDcueLWBL.js new file mode 100644 index 0000000..133c071 --- /dev/null +++ b/scripts/1JwxZujbDcueLWBL.js @@ -0,0 +1,2 @@ +await this.actor.addCondition("ablaze", 2) +await this.script.scriptMessage(await this.actor.applyBasicDamage(this.effect.sourceTest.result.damage, {suppressMsg: true})) \ No newline at end of file diff --git a/scripts/1LDm3OB32skZe6Xv.js b/scripts/1LDm3OB32skZe6Xv.js new file mode 100644 index 0000000..f504f6b --- /dev/null +++ b/scripts/1LDm3OB32skZe6Xv.js @@ -0,0 +1 @@ +return args.characteristic != "wp" \ No newline at end of file diff --git a/scripts/1MDOKny7IirJPoI6.js b/scripts/1MDOKny7IirJPoI6.js new file mode 100644 index 0000000..0826c2c --- /dev/null +++ b/scripts/1MDOKny7IirJPoI6.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` ${this.effect.name}`}) +await test.roll() +if (test.succeeded) +{ + this.effect.delete(); +} diff --git a/scripts/1OpT3CXs07XFWWCT.js b/scripts/1OpT3CXs07XFWWCT.js new file mode 100644 index 0000000..4e10bbf --- /dev/null +++ b/scripts/1OpT3CXs07XFWWCT.js @@ -0,0 +1 @@ +args.options.cardsharp = true; \ No newline at end of file diff --git a/scripts/1PQPxFjmRlulHHzo.js b/scripts/1PQPxFjmRlulHHzo.js new file mode 100644 index 0000000..b3f0001 --- /dev/null +++ b/scripts/1PQPxFjmRlulHHzo.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == this.item.system.location.key && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 2); +} + \ No newline at end of file diff --git a/scripts/1UalUmNzjB4rp3SZ.js b/scripts/1UalUmNzjB4rp3SZ.js new file mode 100644 index 0000000..c76dee9 --- /dev/null +++ b/scripts/1UalUmNzjB4rp3SZ.js @@ -0,0 +1 @@ +return ["ws", "bs", "s", "ag", "t", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/1ZArMNUI8qqH6zkX.js b/scripts/1ZArMNUI8qqH6zkX.js new file mode 100644 index 0000000..8bee756 --- /dev/null +++ b/scripts/1ZArMNUI8qqH6zkX.js @@ -0,0 +1,7 @@ +let test = await args.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : " - " + this.effect.name, context : {failure: "Gain d'un état Assomé"}}) +await test.roll(); +if (test.failed) +{ + args.actor.addCondition("stunned") +} + diff --git a/scripts/1ZrzpfVwPJHdwp23.js b/scripts/1ZrzpfVwPJHdwp23.js new file mode 100644 index 0000000..31f227d --- /dev/null +++ b/scripts/1ZrzpfVwPJHdwp23.js @@ -0,0 +1 @@ +this.actor.status.addArmour(1, {source: this.effect, magical : true}) \ No newline at end of file diff --git a/scripts/1exiWlVUHsXDLLAH.js b/scripts/1exiWlVUHsXDLLAH.js new file mode 100644 index 0000000..5a275f6 --- /dev/null +++ b/scripts/1exiWlVUHsXDLLAH.js @@ -0,0 +1 @@ +this.script.scriptNotification(`Ne peut saisir ${this.effect.name}!`); \ No newline at end of file diff --git a/scripts/1fQr1Dg7DX0vfz3r.js b/scripts/1fQr1Dg7DX0vfz3r.js new file mode 100644 index 0000000..206a4f6 --- /dev/null +++ b/scripts/1fQr1Dg7DX0vfz3r.js @@ -0,0 +1,3 @@ +let healed = parseInt(this.effect.sourceTest.result.SL) +this.actor.modifyWounds(healed) +this.script.scriptMessage(`Soins de ${healed} Blessures`) \ No newline at end of file diff --git a/scripts/1kB2su7hLRYDhZ2H.js b/scripts/1kB2su7hLRYDhZ2H.js new file mode 100644 index 0000000..61a4ede --- /dev/null +++ b/scripts/1kB2su7hLRYDhZ2H.js @@ -0,0 +1,19 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : " - " + this.effect.name}) +await test.roll(); +if (!test.succeeded) +{ + let item = await fromUuid("Compendium.wfrp4e-core.items.ZhMADOqoo0y8Q9bx") + let data = item.toObject(); + if (this.item.system.location.key == "rLeg") + { + data.system.location.value = "Pied droit" + data.system.location.key = "rToe"; + } + else if (this.item.system.location.key == "lLeg") + { + data.system.location.value = "Pied gauche" + data.system.location.key = "lToe"; + } + this.actor.createEmbeddedDocuments("Item", [data]) +} +this.effect.delete(); \ No newline at end of file diff --git a/scripts/1l7Jz2ZHbAWko7Vm.js b/scripts/1l7Jz2ZHbAWko7Vm.js new file mode 100644 index 0000000..ac7048c --- /dev/null +++ b/scripts/1l7Jz2ZHbAWko7Vm.js @@ -0,0 +1 @@ +args.options.ballockKnife = true; \ No newline at end of file diff --git a/scripts/1mNkLj9JYNr3ofC6.js b/scripts/1mNkLj9JYNr3ofC6.js new file mode 100644 index 0000000..d64facd --- /dev/null +++ b/scripts/1mNkLj9JYNr3ofC6.js @@ -0,0 +1,7 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => { + await test.roll(); + if (test.failed) + { + this.actor.addCondition("stunned", 3) + } +}) \ No newline at end of file diff --git a/scripts/1wEjrgff7ASxKVmy.js b/scripts/1wEjrgff7ASxKVmy.js new file mode 100644 index 0000000..ab9e51b --- /dev/null +++ b/scripts/1wEjrgff7ASxKVmy.js @@ -0,0 +1,2 @@ +if (args.effect.conditionId == "bleeding") + args.data.damage -= 1 \ No newline at end of file diff --git a/scripts/1wKVvxRTHOyV4Qdv.js b/scripts/1wKVvxRTHOyV4Qdv.js new file mode 100644 index 0000000..2ea9f2a --- /dev/null +++ b/scripts/1wKVvxRTHOyV4Qdv.js @@ -0,0 +1 @@ +return !args.skill?.name?.includes(game.i18n.localize("NAME.Sail")) \ No newline at end of file diff --git a/scripts/1wrPvP6lJwIAfmsl.js b/scripts/1wrPvP6lJwIAfmsl.js new file mode 100644 index 0000000..9e40d5a --- /dev/null +++ b/scripts/1wrPvP6lJwIAfmsl.js @@ -0,0 +1,10 @@ +let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.locations), 1, "Choisir une localisation"); + +let location = choice[0].id; + +let itemTargeted = this.actor.items.get(this.effect.getFlag("wfrp4e", "itemTargets")[0]) + +if (itemTargeted) +{ + itemTargeted.update({[`system.APdamage.${location}`] : itemTargeted.system.APdamage[location] + 1}) +} \ No newline at end of file diff --git a/scripts/1yOvw74jzFfaI87b.js b/scripts/1yOvw74jzFfaI87b.js new file mode 100644 index 0000000..73649e3 --- /dev/null +++ b/scripts/1yOvw74jzFfaI87b.js @@ -0,0 +1 @@ +return args.options.reload diff --git a/scripts/22bW97lkvCqisfHX.js b/scripts/22bW97lkvCqisfHX.js new file mode 100644 index 0000000..5ab83db --- /dev/null +++ b/scripts/22bW97lkvCqisfHX.js @@ -0,0 +1 @@ +return args.type != "channelling" && !args.skill?.name.includes(game.i18n.localize("NAME.Channelling")) \ No newline at end of file diff --git a/scripts/23HgjCB1oecxANvA.js b/scripts/23HgjCB1oecxANvA.js new file mode 100644 index 0000000..275f379 --- /dev/null +++ b/scripts/23HgjCB1oecxANvA.js @@ -0,0 +1,5 @@ +if (args.item.range && args.item.range.bands) +{ +args.item.range.bands[game.i18n.localize("Long Range")].modifier = 0 +args.item.range.bands[game.i18n.localize("Extreme")].modifier /= 2 +} \ No newline at end of file diff --git a/scripts/23vWiHUjxtRQ3Efz.js b/scripts/23vWiHUjxtRQ3Efz.js new file mode 100644 index 0000000..5fdc693 --- /dev/null +++ b/scripts/23vWiHUjxtRQ3Efz.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.eWPN3CV2Eddwz8aM") +let data = item.toObject(); +data.system.location.value = "Back" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/2AOo7KUyzMrgIlgM.js b/scripts/2AOo7KUyzMrgIlgM.js new file mode 100644 index 0000000..2982f22 --- /dev/null +++ b/scripts/2AOo7KUyzMrgIlgM.js @@ -0,0 +1 @@ +game.wfrp4e.utility.postCorruptionTest(this.item.system.specification.value, {speaker : {alias: this.actor.prototypeToken.name}}) \ No newline at end of file diff --git a/scripts/2AdSBXw7IwCiqawQ.js b/scripts/2AdSBXw7IwCiqawQ.js new file mode 100644 index 0000000..00a7def --- /dev/null +++ b/scripts/2AdSBXw7IwCiqawQ.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Bribery") || args.skill?.name.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/2Cw5j0iGAnFNegWr.js b/scripts/2Cw5j0iGAnFNegWr.js new file mode 100644 index 0000000..4712207 --- /dev/null +++ b/scripts/2Cw5j0iGAnFNegWr.js @@ -0,0 +1 @@ +return args.item?.system.attackType diff --git a/scripts/2GYAd4OC888oQFBp.js b/scripts/2GYAd4OC888oQFBp.js new file mode 100644 index 0000000..5150b7b --- /dev/null +++ b/scripts/2GYAd4OC888oQFBp.js @@ -0,0 +1 @@ +return !["fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/2NLINicPQWbuvp2n.js b/scripts/2NLINicPQWbuvp2n.js new file mode 100644 index 0000000..f98dd93 --- /dev/null +++ b/scripts/2NLINicPQWbuvp2n.js @@ -0,0 +1 @@ +return args.item?.name != game.i18n.localize("NAME.Navigation") \ No newline at end of file diff --git a/scripts/2OqLHRqEBEjBm2LW.js b/scripts/2OqLHRqEBEjBm2LW.js new file mode 100644 index 0000000..1a3189b --- /dev/null +++ b/scripts/2OqLHRqEBEjBm2LW.js @@ -0,0 +1 @@ +args.fields.slBonus += this.actor.system.characteristics.wp.bonus \ No newline at end of file diff --git a/scripts/2Qi1hwLYhdE6v6Hs.js b/scripts/2Qi1hwLYhdE6v6Hs.js new file mode 100644 index 0000000..2782756 --- /dev/null +++ b/scripts/2Qi1hwLYhdE6v6Hs.js @@ -0,0 +1,9 @@ +if (!["rLeg", "lLeg"].includes(this.effect.getFlag("wfrp4e", "location"))) + return true; + +if (args.options.dodge) +{ + args.abort = true; + this.script.scriptNotification("Impossible d'Esquiver!") +} +return ["t", "int", "wp", "fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/2VNnVrtktdGUqXEV.js b/scripts/2VNnVrtktdGUqXEV.js new file mode 100644 index 0000000..38a1edd --- /dev/null +++ b/scripts/2VNnVrtktdGUqXEV.js @@ -0,0 +1,9 @@ +if (args.totalWoundLoss > 0) +{ + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if (test.failed && parseInt(args.opposedTest.attackerTest.result.SL) > 0) + { + args.actor.addCondition("stunned", parseInt(args.opposedTest.attackerTest.result.SL)) + } +} \ No newline at end of file diff --git a/scripts/2W9uMTT6iJhfQ044.js b/scripts/2W9uMTT6iJhfQ044.js new file mode 100644 index 0000000..fb037b9 --- /dev/null +++ b/scripts/2W9uMTT6iJhfQ044.js @@ -0,0 +1,18 @@ +let skill = `Trade (${this.item.parenthesesText})` +let currentCareer = this.actor.system.currentCareer; +let existingSkill = this.actor.itemTypes.skill.find(i => i.name == skill); + +if (!currentCareer) return + + +let inCurrentCareer = currentCareer.system.skills.includes(skill); +if (existingSkill && inCurrentCareer) +{ + existingSkill.system.advances.costModifier = -5; +} +else +{ + currentCareer.system.skills.push(skill); +} + + diff --git a/scripts/2WBq5gW780C6zfCp.js b/scripts/2WBq5gW780C6zfCp.js new file mode 100644 index 0000000..90b4c35 --- /dev/null +++ b/scripts/2WBq5gW780C6zfCp.js @@ -0,0 +1,9 @@ +if (args.weapon && this.item.system.usesLocation(args.weapon)) +{ + args.bleedingHand = true; + let success = await this.effect.manualScripts[0].execute({actor: this.actor}) + if (!success) + { + args.abort = true; + } +} \ No newline at end of file diff --git a/scripts/2WSN306tL4apjRtD.js b/scripts/2WSN306tL4apjRtD.js new file mode 100644 index 0000000..6931737 --- /dev/null +++ b/scripts/2WSN306tL4apjRtD.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.9h82z72XGo9tfgQS") +let data = item.toObject(); +data.name = data.name += " (Hearing)" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/2cKarG9ToyW2ptCd.js b/scripts/2cKarG9ToyW2ptCd.js new file mode 100644 index 0000000..bdeca2b --- /dev/null +++ b/scripts/2cKarG9ToyW2ptCd.js @@ -0,0 +1,10 @@ +if (this.item.system.quantity.value) +{ + this.item.update({"system.quantity.value" : this.item.system.quantity.value - 0.25}) + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectData : [this.item.effects.contents[1].convertToApplied()]}) +} +else +{ + this.script.scriptNotification("Vide !", "error") +} \ No newline at end of file diff --git a/scripts/2hzDv8ROulOe1elK.js b/scripts/2hzDv8ROulOe1elK.js new file mode 100644 index 0000000..1a9e5bd --- /dev/null +++ b/scripts/2hzDv8ROulOe1elK.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Lore")); \ No newline at end of file diff --git a/scripts/2mFNelLOAQ6iJsZl.js b/scripts/2mFNelLOAQ6iJsZl.js new file mode 100644 index 0000000..76ff0b6 --- /dev/null +++ b/scripts/2mFNelLOAQ6iJsZl.js @@ -0,0 +1,4 @@ +if (args.test.isFumble) +{ + args.test.result.other.push("@Table[doomrocket-fumble]") +} \ No newline at end of file diff --git a/scripts/2miWWeRrEpq1beG4.js b/scripts/2miWWeRrEpq1beG4.js new file mode 100644 index 0000000..579cd50 --- /dev/null +++ b/scripts/2miWWeRrEpq1beG4.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.qn4ZpvTQIX4rcJDl"); +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) diff --git a/scripts/2p9IK6Y5Z4NQD6FY.js b/scripts/2p9IK6Y5Z4NQD6FY.js new file mode 100644 index 0000000..2facb9d --- /dev/null +++ b/scripts/2p9IK6Y5Z4NQD6FY.js @@ -0,0 +1 @@ +args.prefillModifiers.difficulty = "hard" \ No newline at end of file diff --git a/scripts/2rzxQlL7A9ujZ9uK.js b/scripts/2rzxQlL7A9ujZ9uK.js new file mode 100644 index 0000000..4c9c7f1 --- /dev/null +++ b/scripts/2rzxQlL7A9ujZ9uK.js @@ -0,0 +1,6 @@ +if (args.opposedTest.result.winner == "attacker") { + if (args.opposedTest.defenderTest.weapon && args.opposedTest.defenderTest.item.properties.qualities.shield) { + ui.notifications.notify(`${this.effect.name}: Gain de ${this.item.Advances} Avantages`) + this.actor.setAdvantage(this.item.Advances) + } +} \ No newline at end of file diff --git a/scripts/2sDH6RvoOAR40oqH.js b/scripts/2sDH6RvoOAR40oqH.js new file mode 100644 index 0000000..6efdf20 --- /dev/null +++ b/scripts/2sDH6RvoOAR40oqH.js @@ -0,0 +1,20 @@ + + +if (!["Goblin", "Orc"].includes(this.actor.system.details.species.value)) { + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), { appendTitle: ` - ${this.effect.name}` }) + await test.roll(); + if (test.failed) { + let infection = await fromUuid("Compendium.wfrp4e-core.items.Item.1hQuVFZt9QnnbWzg") + this.actor.createEmbeddedDocuments("Item", [infection]) + } +} + +// Since wounds change when the effect is deleted, need to wait until after +// the max wounds have been recalculated to apply damage +game.wfrp4e.utility.sleep(1000).then(async () => { + let roll = await new Roll("1d10").roll(); + + roll.toMessage(this.script.getChatData()); + this.script.scriptMessage(await this.actor.applyBasicDamage(roll.total, { damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg: true })) + +}) \ No newline at end of file diff --git a/scripts/2vTVR0quRZQtjNfQ.js b/scripts/2vTVR0quRZQtjNfQ.js new file mode 100644 index 0000000..512f2c3 --- /dev/null +++ b/scripts/2vTVR0quRZQtjNfQ.js @@ -0,0 +1,18 @@ +let currentCareer = this.actor.system.currentCareer; +if (!currentCareer) +{ + return; +} + +let talents = ["Aethyric Attunement", +"Arcane Magic (Any)", +"Chaos Magic (Tzeentch)", +"Fast Hands", +"Instinctive Diction", +"Magical Sense", +"Petty Magic", +"Second Sight", +"War Wizard", +"Witch!"].filter(t => !currentCareer.system.talents.includes(t)) + +currentCareer.system.talents = currentCareer.system.talents.concat(talents) \ No newline at end of file diff --git a/scripts/2wk0yrRPlPsdqr3L.js b/scripts/2wk0yrRPlPsdqr3L.js new file mode 100644 index 0000000..20b7014 --- /dev/null +++ b/scripts/2wk0yrRPlPsdqr3L.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.9GNpAqgsKzxZKJpp") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/2yctEihGmdCfTTVx.js b/scripts/2yctEihGmdCfTTVx.js new file mode 100644 index 0000000..a6d16a1 --- /dev/null +++ b/scripts/2yctEihGmdCfTTVx.js @@ -0,0 +1,2 @@ +args.data.canReverse = true; +args.options.fieldDressing = true; \ No newline at end of file diff --git a/scripts/2zeP2nMSURjxrqYz.js b/scripts/2zeP2nMSURjxrqYz.js new file mode 100644 index 0000000..a0ac1e4 --- /dev/null +++ b/scripts/2zeP2nMSURjxrqYz.js @@ -0,0 +1,6 @@ +let wounds = this.actor.system.status.wounds +if (wounds.value == 0) + return this.script.scriptNotification("No effect at 0 Wounds", "error") + +this.script.scriptNotification(`Healed ${this.actor.characteristics.t.bonus} Wounds`) +await this.actor.modifyWounds(this.actor.characteristics.t.bonus) \ No newline at end of file diff --git a/scripts/33PWizq5F7pkKnQT.js b/scripts/33PWizq5F7pkKnQT.js new file mode 100644 index 0000000..127ff99 --- /dev/null +++ b/scripts/33PWizq5F7pkKnQT.js @@ -0,0 +1,4 @@ +if (args.item.type == "spell") +{ + args.item.cn.value = Math.floor(args.item.cn.value / 2) +} \ No newline at end of file diff --git a/scripts/33US8YRgaMqYu2We.js b/scripts/33US8YRgaMqYu2We.js new file mode 100644 index 0000000..6569e71 --- /dev/null +++ b/scripts/33US8YRgaMqYu2We.js @@ -0,0 +1 @@ +return !args.options.handling \ No newline at end of file diff --git a/scripts/37UN17gb8suFeZIW.js b/scripts/37UN17gb8suFeZIW.js new file mode 100644 index 0000000..145ebc8 --- /dev/null +++ b/scripts/37UN17gb8suFeZIW.js @@ -0,0 +1 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(8, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg: true})) \ No newline at end of file diff --git a/scripts/3Cn2TlRahlm5LkSj.js b/scripts/3Cn2TlRahlm5LkSj.js new file mode 100644 index 0000000..c1ee085 --- /dev/null +++ b/scripts/3Cn2TlRahlm5LkSj.js @@ -0,0 +1 @@ +args.fields.successBonus += 1; \ No newline at end of file diff --git a/scripts/3D5ImpMgpOTPucvv.js b/scripts/3D5ImpMgpOTPucvv.js new file mode 100644 index 0000000..d69e334 --- /dev/null +++ b/scripts/3D5ImpMgpOTPucvv.js @@ -0,0 +1,9 @@ +if (args.test.options.cardsharp && args.test.succeeded) +{ + +let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10) +let ones = Number(args.test.result.roll.toString().split("").pop()) + +if (ones > SL) + args.test.result.other.push(`${this.effect.name}: ${ones + args.test.successBonus + args.test.slBonus} SL`) +} \ No newline at end of file diff --git a/scripts/3IGO7xEjRjat937X.js b/scripts/3IGO7xEjRjat937X.js new file mode 100644 index 0000000..f45a41d --- /dev/null +++ b/scripts/3IGO7xEjRjat937X.js @@ -0,0 +1,7 @@ +let fatigue = this.actor.hasCondition("fatigued") +if (fatigue) +{ + this.script.scriptNotification("Removing Fatigued Condition, disabled effect") + this.effect.update({disabled : true}) + await this.actor.removeCondition("fatigued") +} \ No newline at end of file diff --git a/scripts/3JEzEzF1SeYA9lsV.js b/scripts/3JEzEzF1SeYA9lsV.js new file mode 100644 index 0000000..1b8b828 --- /dev/null +++ b/scripts/3JEzEzF1SeYA9lsV.js @@ -0,0 +1,44 @@ +let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.locations, this.effect.img), 1, "Choose Location"); +if (choice[0]) +{ + this.effect.updateSource({name : `${this.effect.name} (${choice[0].name})`}) +this.effect.updateSource({"flags.wfrp4e.location" : choice[0].id}) +} + +let location = choice[0].id; + +if (["lArm", "rArm"].includes(location)) +{ + let dropped = this.actor.itemTypes.weapon.filter(i => i.isEquipped & i.system.usesHands.includes(location)); + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} + +if (location == "body") +{ + await this.actor.addCondition("fatigued"); + test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "hard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if (test.failed) + { + this.actor.addCondition("prone"); + } +} + +if (location == "head") +{ + await this.actor.addCondition("stunned"); + test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if (test.failed) + { + this.actor.addCondition("unconscious"); + } +} \ No newline at end of file diff --git a/scripts/3LLiSgj6KGtgqcmo.js b/scripts/3LLiSgj6KGtgqcmo.js new file mode 100644 index 0000000..8a4090c --- /dev/null +++ b/scripts/3LLiSgj6KGtgqcmo.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Language")); \ No newline at end of file diff --git a/scripts/3R6Y4NpNTqPc83wh.js b/scripts/3R6Y4NpNTqPc83wh.js new file mode 100644 index 0000000..c0857ab --- /dev/null +++ b/scripts/3R6Y4NpNTqPc83wh.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.IPKRMGry6WotuS1G") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/3TesBGh8HnlGuafu.js b/scripts/3TesBGh8HnlGuafu.js new file mode 100644 index 0000000..05ab756 --- /dev/null +++ b/scripts/3TesBGh8HnlGuafu.js @@ -0,0 +1,5 @@ +let modifier = this.effect.sourceTest?.result.overcast.usage.other.current || 0 + +let test = await this.actor.setupCharacteristic("dex", {fields: {modifier}, skipTargets: true, appendTitle : " - " + this.script.label}); + +test.roll(); \ No newline at end of file diff --git a/scripts/3Vbe6gdW8N0bIvXJ.js b/scripts/3Vbe6gdW8N0bIvXJ.js new file mode 100644 index 0000000..5bf968e --- /dev/null +++ b/scripts/3Vbe6gdW8N0bIvXJ.js @@ -0,0 +1,5 @@ +if (args.item.type == "weapon" || args.item.type == "trait") +{ + args.item.qualities.value.push({name : "penetrating"}) + args.item.qualities.value.push({name : "impale"}) +} \ No newline at end of file diff --git a/scripts/3aEzK0DehSHtVykd.js b/scripts/3aEzK0DehSHtVykd.js new file mode 100644 index 0000000..9b294f4 --- /dev/null +++ b/scripts/3aEzK0DehSHtVykd.js @@ -0,0 +1 @@ +this.effect.manualScripts[0].execute({actor : this.actor}); \ No newline at end of file diff --git a/scripts/3eSaX0BeaUalNkEP.js b/scripts/3eSaX0BeaUalNkEP.js new file mode 100644 index 0000000..077517d --- /dev/null +++ b/scripts/3eSaX0BeaUalNkEP.js @@ -0,0 +1 @@ +return args.options.mutate \ No newline at end of file diff --git a/scripts/3fdCQ3h3iVuhdDs9.js b/scripts/3fdCQ3h3iVuhdDs9.js new file mode 100644 index 0000000..f3281db --- /dev/null +++ b/scripts/3fdCQ3h3iVuhdDs9.js @@ -0,0 +1 @@ +args.fields.slBonus += this.actor.characteristics.ag.bonus; \ No newline at end of file diff --git a/scripts/3hfMQkUKYI4rCuBy.js b/scripts/3hfMQkUKYI4rCuBy.js new file mode 100644 index 0000000..7cf8f33 --- /dev/null +++ b/scripts/3hfMQkUKYI4rCuBy.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.CharmAnimal") && !args.skill?.name.includes(game.i18n.localize("NAME.AnimalTraining")); \ No newline at end of file diff --git a/scripts/3jm0NoYpgB6ZuUSl.js b/scripts/3jm0NoYpgB6ZuUSl.js new file mode 100644 index 0000000..a7b132e --- /dev/null +++ b/scripts/3jm0NoYpgB6ZuUSl.js @@ -0,0 +1 @@ +args.options.useOnesAttractive = true; \ No newline at end of file diff --git a/scripts/3l7MQSa10Kve2K3P.js b/scripts/3l7MQSa10Kve2K3P.js new file mode 100644 index 0000000..0d12a2b --- /dev/null +++ b/scripts/3l7MQSa10Kve2K3P.js @@ -0,0 +1,2 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(Math.ceil(CONFIG.Dice.randomUniform() * 10) + 6, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true})) +this.actor.addCondition("ablaze"); \ No newline at end of file diff --git a/scripts/3plV9WFqs2prfAdp.js b/scripts/3plV9WFqs2prfAdp.js new file mode 100644 index 0000000..9ec91ac --- /dev/null +++ b/scripts/3plV9WFqs2prfAdp.js @@ -0,0 +1 @@ +return !["NAME.Evaluate", "NAME.Gamble"].map(i => game.i18n.localize(i)).includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/3sfD1nedXLzuYoXJ.js b/scripts/3sfD1nedXLzuYoXJ.js new file mode 100644 index 0000000..674133f --- /dev/null +++ b/scripts/3sfD1nedXLzuYoXJ.js @@ -0,0 +1,4 @@ +if (this.actor.hasCondition("surprised")) +{ + this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : " - " + this.effect.name}).then(test => test.roll()) +} diff --git a/scripts/3tE8gFSl28EhCmo5.js b/scripts/3tE8gFSl28EhCmo5.js new file mode 100644 index 0000000..9e28dce --- /dev/null +++ b/scripts/3tE8gFSl28EhCmo5.js @@ -0,0 +1,2 @@ +await args.actor.addCondition("ablaze") +await args.actor.addCondition("prone") \ No newline at end of file diff --git a/scripts/454x3Q95pLvZm0Kx.js b/scripts/454x3Q95pLvZm0Kx.js new file mode 100644 index 0000000..0072c5f --- /dev/null +++ b/scripts/454x3Q95pLvZm0Kx.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.ConsumeAlcohol"); \ No newline at end of file diff --git a/scripts/4FGKZk2f0xrmIDnp.js b/scripts/4FGKZk2f0xrmIDnp.js new file mode 100644 index 0000000..59535fd --- /dev/null +++ b/scripts/4FGKZk2f0xrmIDnp.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Research") && !args.skill?.name?.includes(game.i18n.localize("NAME.Language")); \ No newline at end of file diff --git a/scripts/4HN98hMdQJxM35pA.js b/scripts/4HN98hMdQJxM35pA.js new file mode 100644 index 0000000..23c0294 --- /dev/null +++ b/scripts/4HN98hMdQJxM35pA.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.gz2xy41OSVZ8YBgI"); +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data]) diff --git a/scripts/4JVIy5xtVwvadoqv.js b/scripts/4JVIy5xtVwvadoqv.js new file mode 100644 index 0000000..bb85425 --- /dev/null +++ b/scripts/4JVIy5xtVwvadoqv.js @@ -0,0 +1 @@ +this.actor.details.move.run *= 2 \ No newline at end of file diff --git a/scripts/4MQ7u4INxp51oyyR.js b/scripts/4MQ7u4INxp51oyyR.js new file mode 100644 index 0000000..95200bd --- /dev/null +++ b/scripts/4MQ7u4INxp51oyyR.js @@ -0,0 +1,85 @@ +let characteristics = { + "ws" : 25, + "bs" : 10, + "s" : 15, + "t" : 15, + "i" : 25, + "ag" : 20, + "dex" : 0, + "int" : 10, + "wp" : 25, + "fel" : 10 +} +let skills = ["Cool", "Dodge", "Intimidate", "Intuition", "Leadership", "Lore (Warfare)", "Perception"] +let skillAdvancements = [15, 15, 15, 15, 15, 10, 10] +let talents = ["Combat Aware", "Combat Reflexes", "Feint", "Inspiring", "Resolute", "War Leader"] +let trappings = ["Hand Weapon", "Shield"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/4QoxhoekgVeZcQA7.js b/scripts/4QoxhoekgVeZcQA7.js new file mode 100644 index 0000000..4ebe285 --- /dev/null +++ b/scripts/4QoxhoekgVeZcQA7.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.M5QSWOYt2Rbv2yxW") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/4XrAeL2DitxE8OaK.js b/scripts/4XrAeL2DitxE8OaK.js new file mode 100644 index 0000000..93877a2 --- /dev/null +++ b/scripts/4XrAeL2DitxE8OaK.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.0hn6UaKq8CoZP2zD") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/4cOZzUvu1nytcqNn.js b/scripts/4cOZzUvu1nytcqNn.js new file mode 100644 index 0000000..b5902b0 --- /dev/null +++ b/scripts/4cOZzUvu1nytcqNn.js @@ -0,0 +1 @@ +args.initiative = "-10" \ No newline at end of file diff --git a/scripts/4fnTKgl0HW9ZrWyJ.js b/scripts/4fnTKgl0HW9ZrWyJ.js new file mode 100644 index 0000000..e818ce4 --- /dev/null +++ b/scripts/4fnTKgl0HW9ZrWyJ.js @@ -0,0 +1,10 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty : "average"}}).then(async test => +{ + await test.roll() + if (test.failed) + { + let char = Math.ceil(CONFIG.Dice.randomUniform() * 2) == 2 ? "s" : "t"; + this.script.scriptMessage(`${this.actor.name} lost 1 point of ${game.wfrp4e.config.characteristics[char]}`) + this.actor.update({[`system.characteristics.${char}.initial`] : this.actor.system.characteristics[char].initial - 1}) + } +}) \ No newline at end of file diff --git a/scripts/4gkz3LR7CK1b8ulK.js b/scripts/4gkz3LR7CK1b8ulK.js new file mode 100644 index 0000000..b6432a4 --- /dev/null +++ b/scripts/4gkz3LR7CK1b8ulK.js @@ -0,0 +1 @@ +return args.item?.system.attackType != "ranged" || this.actor.uuid != this.effect.sourceActor.uuid \ No newline at end of file diff --git a/scripts/4iuTz0uInAfMaoGl.js b/scripts/4iuTz0uInAfMaoGl.js new file mode 100644 index 0000000..d3f97d5 --- /dev/null +++ b/scripts/4iuTz0uInAfMaoGl.js @@ -0,0 +1 @@ +return args.skill?.name?.includes(game.i18n.localize("NAME.Language")) || args.type == "cast" \ No newline at end of file diff --git a/scripts/4pQW4WLyhjbZR85k.js b/scripts/4pQW4WLyhjbZR85k.js new file mode 100644 index 0000000..8a2680f --- /dev/null +++ b/scripts/4pQW4WLyhjbZR85k.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "average"}, context : {failure: "1 Corruption Point Gained"}}) +await test.roll(); +if (test.failed && this.actor.type == "character") +{ + this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + 1}) + this.script.scriptMessage("Gained a Corruption point", {whisper : ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/4rTmV3TNxctUe0ly.js b/scripts/4rTmV3TNxctUe0ly.js new file mode 100644 index 0000000..30a0737 --- /dev/null +++ b/scripts/4rTmV3TNxctUe0ly.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupCharacteristic("ag", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("bleeding"); +} diff --git a/scripts/4rb7LfMq9CTnlrpn.js b/scripts/4rb7LfMq9CTnlrpn.js new file mode 100644 index 0000000..214bdc9 --- /dev/null +++ b/scripts/4rb7LfMq9CTnlrpn.js @@ -0,0 +1,10 @@ +if (args.totalWoundLoss > 0) +{ + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : " - " + this.effect.name}) + await test.roll(); + if (test.failed) + { + args.totalWoundLoss += 5; + args.modifiers.other.push({label : this.effect.name, value : 5}) + } +} \ No newline at end of file diff --git a/scripts/4rhxLzau7jZ4SDxg.js b/scripts/4rhxLzau7jZ4SDxg.js new file mode 100644 index 0000000..19f3d85 --- /dev/null +++ b/scripts/4rhxLzau7jZ4SDxg.js @@ -0,0 +1,2 @@ +await args.actor.addCondition("grappling") +await args.actor.addCondition("entangled") \ No newline at end of file diff --git a/scripts/52kbfuWrOh6dsTtd.js b/scripts/52kbfuWrOh6dsTtd.js new file mode 100644 index 0000000..d5df29a --- /dev/null +++ b/scripts/52kbfuWrOh6dsTtd.js @@ -0,0 +1,2 @@ +if (!this.actor.hasCondition("blinded")) + this.actor.addCondition("blinded", 1, {"flags.wfrp4e.flockOfDoom" : true}) \ No newline at end of file diff --git a/scripts/52mwb33mGrQjq89B.js b/scripts/52mwb33mGrQjq89B.js new file mode 100644 index 0000000..33c3e75 --- /dev/null +++ b/scripts/52mwb33mGrQjq89B.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Research"); \ No newline at end of file diff --git a/scripts/53HFDNuMnX1Aw1a4.js b/scripts/53HFDNuMnX1Aw1a4.js new file mode 100644 index 0000000..d6198c0 --- /dev/null +++ b/scripts/53HFDNuMnX1Aw1a4.js @@ -0,0 +1 @@ +return ["ws", "bs", "s", "ag", "dex", "int", "wp", "fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/58rFc9HiBoX66J6p.js b/scripts/58rFc9HiBoX66J6p.js new file mode 100644 index 0000000..1e3c7a2 --- /dev/null +++ b/scripts/58rFc9HiBoX66J6p.js @@ -0,0 +1,9 @@ +let sourceActor = this.effect.sourceActor; +let damage = args.totalWoundLoss; +let tb = sourceActor.system.characteristics.t.bonus +args.abort = `${this.effect.name}: Damage applied to ${sourceActor.name}`; + +let message = await sourceActor.applyBasicDamage(damage - tb, {damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true}) + +this.script.scriptMessage(message.replace(`${tb} TB`, `${tb} × 2 TB`)) +args.abort = true; \ No newline at end of file diff --git a/scripts/5DI6cHAg1LHo54Yv.js b/scripts/5DI6cHAg1LHo54Yv.js new file mode 100644 index 0000000..6929228 --- /dev/null +++ b/scripts/5DI6cHAg1LHo54Yv.js @@ -0,0 +1,6 @@ +if (args.opposedTest.result.differenceSL >= 0 && args.opposedTest.result.differenceSL <= 2 && args.opposedTest.result.winner == "attacker") +{ + this.actor.update({"system.status.fortune.value" : Math.max(0, (this.actor.system.status.fortune?.value - 1) || 0)}) + this.script.scriptMessage(`Fortune point stolen from ${this.actor.name}`, {blind : true, whisper : ChatMessage.getWhisperRecipients("GM")}) + +} \ No newline at end of file diff --git a/scripts/5Fe1ELaS6Gnvy0Cj.js b/scripts/5Fe1ELaS6Gnvy0Cj.js new file mode 100644 index 0000000..ad46ad3 --- /dev/null +++ b/scripts/5Fe1ELaS6Gnvy0Cj.js @@ -0,0 +1 @@ +return args.skill?.name.includes("Channelling") || args.type == "channelling" || args.skill?.name == game.i18n.localize("NAME.Charm") || args.skill?.name.includes("Language (Magick)") || args.type == "cast" \ No newline at end of file diff --git a/scripts/5IoYTyedCMYwt3ys.js b/scripts/5IoYTyedCMYwt3ys.js new file mode 100644 index 0000000..cedf74b --- /dev/null +++ b/scripts/5IoYTyedCMYwt3ys.js @@ -0,0 +1 @@ +args.fields.slBonus += 2; \ No newline at end of file diff --git a/scripts/5JWC0l3JEpOsqbR9.js b/scripts/5JWC0l3JEpOsqbR9.js new file mode 100644 index 0000000..d2eb0b6 --- /dev/null +++ b/scripts/5JWC0l3JEpOsqbR9.js @@ -0,0 +1,85 @@ +let characteristics = { + "ws" : 0, + "bs" : 5, + "s" : 0, + "t" : 0, + "i" : 10, + "ag" : 10, + "dex" : 0, + "int" : 0, + "wp" : 5, + "fel" : 0 +} +let skills = ["Dodge", "Perception"] +let skillAdvancements = [10, 10] +let talents = ["Flee!", "Marksman"] +let trappings = ["Hand Weapon"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/5JvKJZPcd6Hz5zvn.js b/scripts/5JvKJZPcd6Hz5zvn.js new file mode 100644 index 0000000..be61706 --- /dev/null +++ b/scripts/5JvKJZPcd6Hz5zvn.js @@ -0,0 +1,85 @@ +let characteristics = { + "ws" : 10, + "bs" : 0, + "s" : 10, + "t" : 10, + "i" : 20, + "ag" : 10, + "dex" : 0, + "int" : 0, + "wp" : 15, + "fel" : 0 +} +let skills = ["Cool", "Dodge", "Intimidate", "Leadership"] +let skillAdvancements = [15, 15, 10, 5] +let talents = ["Combat Aware", "Combat Reflexes", "Feint", "Resolute"] +let trappings = ["Mail Coat", "Mail Chausses", "Mail Coif", "Hand Weapon", "Shield"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = this.effect.name + " " + updateObj.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/5LdJCKfQem1AQK24.js b/scripts/5LdJCKfQem1AQK24.js new file mode 100644 index 0000000..7ec5f13 --- /dev/null +++ b/scripts/5LdJCKfQem1AQK24.js @@ -0,0 +1,6 @@ + +if (!args.flags.howlingWarpGale) +{ + args.fields.modifier -= 10; + args.flags.howlingWarpGale = true; // prevent double application +} \ No newline at end of file diff --git a/scripts/5M6IgCUncCwyxHok.js b/scripts/5M6IgCUncCwyxHok.js new file mode 100644 index 0000000..ceef2c0 --- /dev/null +++ b/scripts/5M6IgCUncCwyxHok.js @@ -0,0 +1,35 @@ +let etiquette = (await fromUuid("Compendium.wfrp4e-core.items.Item.sYbgpSnRqSZWgwFP")).toObject(); +etiquette.name += ` (Followers of Tzeentch)`; + +let animosity = (await fromUuid("Compendium.wfrp4e-core.items.Item.0VpT5yubw4UL7j6f")).toObject(); +animosity.system.specification.value = "Followers of Nurgle"; + +let roll = await new Roll("ceil(1d10 / 3)").roll(); + +roll.toMessage(this.script.getChatData()); + +let mutations = []; +let msg = `

Mutations Gained

` +for(let i = 0; i < roll.total; i++) +{ + let item; + let uuid; + let result; + if (i % 2 == 0) + { + result = await game.wfrp4e.tables.rollTable("mutatemental", {hideDSN: true}, "Tzeentch") + } + else + { + result = await game.wfrp4e.tables.rollTable("mutatephys", {hideDSN: true}, "Tzeentch") + } + uuid = `Compendium.${result.object.documentCollection}.${result.object.documentId}`; + item = await fromUuid(uuid); + if (item) + { + msg += `

@UUID[${uuid}]{${item.name}}

` + mutations.push(item.toObject()); + } +} +this.actor.createEmbeddedDocuments("Item", mutations.concat([etiquette, animosity]), {fromEffect : this.effect.id}) +this.script.scriptMessage(msg); \ No newline at end of file diff --git a/scripts/5MxRDXzUBPfp2KKD.js b/scripts/5MxRDXzUBPfp2KKD.js new file mode 100644 index 0000000..578674f --- /dev/null +++ b/scripts/5MxRDXzUBPfp2KKD.js @@ -0,0 +1 @@ +args.options.useOnesSupportive = true; \ No newline at end of file diff --git a/scripts/5dR7Erj3nwsxLAV7.js b/scripts/5dR7Erj3nwsxLAV7.js new file mode 100644 index 0000000..443c65a --- /dev/null +++ b/scripts/5dR7Erj3nwsxLAV7.js @@ -0,0 +1,85 @@ +let characteristics = { + "ws" : 35, + "bs" : 10, + "s" : 25, + "t" : 30, + "i" : 30, + "ag" : 25, + "dex" : 0, + "int" : 15, + "wp" : 35, + "fel" : 15 +} +let skills = ["Cool", "Dodge", "Intimidate", "Intuition", "Leadership", "Lore (Warfare)", "Perception"] +let skillAdvancements = [25, 15, 25, 25, 30, 20, 20] +let talents = ["Combat Aware", "Combat Reflexes", "Feint", "Inspiring", "Luck", "Resolute", "Unshakable", "War Leader"] +let trappings = ["Hand Weapon", "Shield"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/5lc1eHIYQNpSRWip.js b/scripts/5lc1eHIYQNpSRWip.js new file mode 100644 index 0000000..39f6f8b --- /dev/null +++ b/scripts/5lc1eHIYQNpSRWip.js @@ -0,0 +1,8 @@ +if (["death", "necromancy"].includes(args.spell?.system.lore.value)) +{ + args.fields.successBonus += 1 +} +else if(["life", "light", "heavens"].includes(args.spell?.system.lore.value)) +{ + args.fields.modifier -= 10; +} \ No newline at end of file diff --git a/scripts/5o1XiceC4rutjMms.js b/scripts/5o1XiceC4rutjMms.js new file mode 100644 index 0000000..2646b2f --- /dev/null +++ b/scripts/5o1XiceC4rutjMms.js @@ -0,0 +1 @@ +return !args.item?.name.includes(game.i18n.localize("NAME.Stealth")) \ No newline at end of file diff --git a/scripts/5sI9iYh5j2nx2XyT.js b/scripts/5sI9iYh5j2nx2XyT.js new file mode 100644 index 0000000..4a9e7b3 --- /dev/null +++ b/scripts/5sI9iYh5j2nx2XyT.js @@ -0,0 +1 @@ +return !(["Animal Care", "Charm Animal"].includes(args.item?.name) || args.item?.name.includes("Ride") || args.item?.name.includes("Animal Training")) \ No newline at end of file diff --git a/scripts/62Ky6bC1EnTllSJA.js b/scripts/62Ky6bC1EnTllSJA.js new file mode 100644 index 0000000..8d0a535 --- /dev/null +++ b/scripts/62Ky6bC1EnTllSJA.js @@ -0,0 +1,4 @@ +if (this.effect.sourceActor.uuid != args.actor.uuid) +{ + this.script.scriptMessage(await this.actor.applyBasicDamage(this.effect.sourceTest.result.overcast.usage.other.current, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg: true})); +} \ No newline at end of file diff --git a/scripts/65o8pQj6oGNnXce6.js b/scripts/65o8pQj6oGNnXce6.js new file mode 100644 index 0000000..6737896 --- /dev/null +++ b/scripts/65o8pQj6oGNnXce6.js @@ -0,0 +1,2 @@ +let ch = this.effect.getFlag("wfrp4e", "characteristic") +this.actor.system.characteristics[ch].modifier += 10; \ No newline at end of file diff --git a/scripts/65xE9OV5sA1ZWT7j.js b/scripts/65xE9OV5sA1ZWT7j.js new file mode 100644 index 0000000..2e9318c --- /dev/null +++ b/scripts/65xE9OV5sA1ZWT7j.js @@ -0,0 +1,9 @@ +if (args.test.options.diceman && args.test.succeeded) +{ + +let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10) +let ones = Number(args.test.result.roll.toString().split("").pop()) + +if (ones > SL) + args.test.result.other.push(`${this.effect.name}: ${ones + args.test.successBonus + args.test.slBonus} SL`) +} \ No newline at end of file diff --git a/scripts/6Aqq4F4Xui923sc6.js b/scripts/6Aqq4F4Xui923sc6.js new file mode 100644 index 0000000..0a9ebf3 --- /dev/null +++ b/scripts/6Aqq4F4Xui923sc6.js @@ -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(`

${this.actor.prototypeToken.name} has gained the Cold Blooded Creature Trait and may reverse any failed Willpower based Tests.

+

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).

`, + {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true }) +} \ No newline at end of file diff --git a/scripts/6BmvV9c03FkfisnE.js b/scripts/6BmvV9c03FkfisnE.js new file mode 100644 index 0000000..3d03be7 --- /dev/null +++ b/scripts/6BmvV9c03FkfisnE.js @@ -0,0 +1,20 @@ +// Apply changes when the mask is worn + +if (args.equipped) { + this.actor.createEmbeddedDocuments("ActiveEffect", [this.item.effects.contents[1]?.convertToApplied()]) + this.script.scriptMessage(`${this.actor.name} dons the ${this.item.name}.
+ They gain +1 Corruption point if an exposure Test is failed, which will need to be manually applied.
If they wear the mask for more than an hour or benefit from any of its effects, they are exposed to @Corruption[moderate]{Moderate Corruption} + `, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} + +// Notify of lingering effects when mask is removed +else if (!args.equipped) +{ + await this.item.effects.contents[0].delete(); + await this.item.update({name : this.item.name += " (Used)"}) + this.script.scriptMessage(`${this.item.name} on ${this.actor.name} has been taken off and loses its properties. However, the effects last for [[1d10+4]] days, after which they should be manually removed.`, + {whisper: ChatMessage.getWhisperRecipients("GM")} + ) + +} \ No newline at end of file diff --git a/scripts/6EXkbVTRBhKTEu81.js b/scripts/6EXkbVTRBhKTEu81.js new file mode 100644 index 0000000..84284f0 --- /dev/null +++ b/scripts/6EXkbVTRBhKTEu81.js @@ -0,0 +1,5 @@ +if (!args.flags.bothEyes) +{ + args.flags.bothEyes = true; + args.fields.modifier -= 30 +} \ No newline at end of file diff --git a/scripts/6Fe8M5MdklKS2olx.js b/scripts/6Fe8M5MdklKS2olx.js new file mode 100644 index 0000000..3c1c175 --- /dev/null +++ b/scripts/6Fe8M5MdklKS2olx.js @@ -0,0 +1 @@ +return args.characteristic != "fel" \ No newline at end of file diff --git a/scripts/6H6vNjzvMGl2ZqCR.js b/scripts/6H6vNjzvMGl2ZqCR.js new file mode 100644 index 0000000..751934a --- /dev/null +++ b/scripts/6H6vNjzvMGl2ZqCR.js @@ -0,0 +1,2 @@ +if (args.totalWoundLoss > 0) + this.script.scriptMessage(`Blade of Nurglitch: ${args.actor.name} must pass an Difficult (-10) Endurance Test or gain a @UUID[Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb]{Festering Wound}`, {whisper: ChatMessage.getWhisperRecipients("GM") }) \ No newline at end of file diff --git a/scripts/6JrUjs3g5x6bFnj3.js b/scripts/6JrUjs3g5x6bFnj3.js new file mode 100644 index 0000000..71e0979 --- /dev/null +++ b/scripts/6JrUjs3g5x6bFnj3.js @@ -0,0 +1,8 @@ +let bite = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let sense = await fromUuid("Compendium.wfrp4e-core.items.9h82z72XGo9tfgQS") +let biteData = bite.toObject(); +let senseData = sense.toObject(); + +biteData.system.specification.value = 6 - this.actor.characteristics.s.bonus; +senseData.name = senseData.name += " (Smell)" +this.actor.createEmbeddedDocuments("Item", [biteData, senseData], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/6MSodMuZ5xk2JJJ9.js b/scripts/6MSodMuZ5xk2JJJ9.js new file mode 100644 index 0000000..d75e4d6 --- /dev/null +++ b/scripts/6MSodMuZ5xk2JJJ9.js @@ -0,0 +1,4 @@ +if (!this.actor.hasCondition("ablaze")) +{ + this.effect.delete(); +} \ No newline at end of file diff --git a/scripts/6Mjy0jDqczA8BxhS.js b/scripts/6Mjy0jDqczA8BxhS.js new file mode 100644 index 0000000..1a7b6be --- /dev/null +++ b/scripts/6Mjy0jDqczA8BxhS.js @@ -0,0 +1 @@ +return !["roll", "none"].includes(args.fields.hitLocation) \ No newline at end of file diff --git a/scripts/6QZUX7ZrFxOzqI0b.js b/scripts/6QZUX7ZrFxOzqI0b.js new file mode 100644 index 0000000..de2a760 --- /dev/null +++ b/scripts/6QZUX7ZrFxOzqI0b.js @@ -0,0 +1,9 @@ +let regenerate = this.actor.items.getName('Regenerate') + +if (regenerate) +{ + let effect = regenerate.effects.contents[0] + let scriptData = effect.getFlag("wfrp4e", "scriptData"); + + scriptData[0].script = scriptData[0].script.replace("1d10", "1d10 * 2") +} \ No newline at end of file diff --git a/scripts/6U8xox4mBrn5eYIp.js b/scripts/6U8xox4mBrn5eYIp.js new file mode 100644 index 0000000..ee018a9 --- /dev/null +++ b/scripts/6U8xox4mBrn5eYIp.js @@ -0,0 +1,2 @@ +if (args.totalWoundLoss > 0) + args.actor.addCondition("ablaze") \ No newline at end of file diff --git a/scripts/6V3qHON3mcerlBlB.js b/scripts/6V3qHON3mcerlBlB.js new file mode 100644 index 0000000..67380e8 --- /dev/null +++ b/scripts/6V3qHON3mcerlBlB.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone"); +} \ No newline at end of file diff --git a/scripts/6XWJWOUQPgKMsFul.js b/scripts/6XWJWOUQPgKMsFul.js new file mode 100644 index 0000000..27d782b --- /dev/null +++ b/scripts/6XWJWOUQPgKMsFul.js @@ -0,0 +1 @@ +return args.item?.system.attackType != "ranged" || args.flags.howlingWarpGale \ No newline at end of file diff --git a/scripts/6ZS1rQLkNvMDO0Fp.js b/scripts/6ZS1rQLkNvMDO0Fp.js new file mode 100644 index 0000000..609a9eb --- /dev/null +++ b/scripts/6ZS1rQLkNvMDO0Fp.js @@ -0,0 +1,11 @@ +let roll = Math.ceil(CONFIG.Dice.randomUniform() * 10) +if (args.test.isFumble && roll == 1 && !args.test.result.misfire) +{ + args.test.result.misfire = game.i18n.localize("Misfire") + " (Rolled 1)" + args.test.result.misfireDamage = eval(parseInt(args.test.result.roll.toString().split('').pop()) + args.test.item.Damage) +} +else if (args.test.isFumble && roll != 1) +{ + args.test.result.other.push("Misfire Roll: " + roll) +} + diff --git a/scripts/6elUNF58TaiYjxcx.js b/scripts/6elUNF58TaiYjxcx.js new file mode 100644 index 0000000..d0b4d13 --- /dev/null +++ b/scripts/6elUNF58TaiYjxcx.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : " - " + this.effect.name, context : {failure: "Gained a Stunned Condition"}}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("stunned"); +} \ No newline at end of file diff --git a/scripts/6fElmBxTjdAaubbK.js b/scripts/6fElmBxTjdAaubbK.js new file mode 100644 index 0000000..f1d5302 --- /dev/null +++ b/scripts/6fElmBxTjdAaubbK.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "average"}}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} diff --git a/scripts/6hAgggYpNR3r4QWC.js b/scripts/6hAgggYpNR3r4QWC.js new file mode 100644 index 0000000..5604471 --- /dev/null +++ b/scripts/6hAgggYpNR3r4QWC.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Q2MCUrG2HppMcvN0") +item = item.toObject() +let species = args.actor.Species || " of your species" +item.name = `Animosity (all not ${species})` +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/6jcTzK1XEuWqAacN.js b/scripts/6jcTzK1XEuWqAacN.js new file mode 100644 index 0000000..f41b3fe --- /dev/null +++ b/scripts/6jcTzK1XEuWqAacN.js @@ -0,0 +1,2 @@ +args.abort = true; +this.script.scriptNotification(`Cannot use ${game.wfrp4e.config.locations[this.effect.getFlag("wfrp4e", "location")]}!`, "error") \ No newline at end of file diff --git a/scripts/6kifXp2jXEaQVJsg.js b/scripts/6kifXp2jXEaQVJsg.js new file mode 100644 index 0000000..debb784 --- /dev/null +++ b/scripts/6kifXp2jXEaQVJsg.js @@ -0,0 +1,21 @@ +let useWard = await Dialog.wait({ + title : this.effect.name, + content : `

Use Ward provided by ${this.effect.name}?`, + buttons : { + yes : { + label : "Yes", + callback: () => { + return true; + } + }, + no : { + label: "No", + callback: () => { + return false; + } + } + } +}) + +if (useWard) + args.ward = 9; \ No newline at end of file diff --git a/scripts/6mpw9cGseG4W4eyd.js b/scripts/6mpw9cGseG4W4eyd.js new file mode 100644 index 0000000..1a3b985 --- /dev/null +++ b/scripts/6mpw9cGseG4W4eyd.js @@ -0,0 +1,12 @@ +if (this.actor.system.status.advantage.value >= 2) +{ + await this.actor.modifyAdvantage(-2); + this.script.scriptNotification("Advantage Subtracted") +} +else +{ + return this.script.scriptNotification("Not enough Advantage!", "error") +} + +let test = await this.actor.setupTrait(this.item) +await test.roll(); \ No newline at end of file diff --git a/scripts/6qUKKep5vhFYmo1J.js b/scripts/6qUKKep5vhFYmo1J.js new file mode 100644 index 0000000..0fc2aa5 --- /dev/null +++ b/scripts/6qUKKep5vhFYmo1J.js @@ -0,0 +1 @@ +return args.type == "channelling" || args.skill?.name.includes(game.i18n.localize("NAME.Channelling")) \ No newline at end of file diff --git a/scripts/6tjn0RH4VyOPFneS.js b/scripts/6tjn0RH4VyOPFneS.js new file mode 100644 index 0000000..0001110 --- /dev/null +++ b/scripts/6tjn0RH4VyOPFneS.js @@ -0,0 +1 @@ +return ["NAME.Row", "NAME.Swim"].map(i => game.i18n.localize(i)).includes(args.skill?.name); \ No newline at end of file diff --git a/scripts/6uldpFvKOCoW92cC.js b/scripts/6uldpFvKOCoW92cC.js new file mode 100644 index 0000000..9f67eea --- /dev/null +++ b/scripts/6uldpFvKOCoW92cC.js @@ -0,0 +1,8 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.uqGxFOEqeurwkAO3") +item = item.toObject() + +item.system.specification.value = 10; +item.name += " (Fire)" +setProperty(item, "flags.wfrp4e.breath", "fire") + +Item.create(item, {parent : this.actor, fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/6xTtJEhRc4OjcDTf.js b/scripts/6xTtJEhRc4OjcDTf.js new file mode 100644 index 0000000..5a8b642 --- /dev/null +++ b/scripts/6xTtJEhRc4OjcDTf.js @@ -0,0 +1,5 @@ +if (getProperty(args.data, "system.status.fortune.value")) +{ + this.script.scriptNotification("Cannot update Fortune"); + delete args.data.system.status.wounds.value; +} \ No newline at end of file diff --git a/scripts/715G1Bf0haOHvmYQ.js b/scripts/715G1Bf0haOHvmYQ.js new file mode 100644 index 0000000..56674c9 --- /dev/null +++ b/scripts/715G1Bf0haOHvmYQ.js @@ -0,0 +1 @@ +return !(args.skill?.name == game.i18n.localize("NAME.Bribery") || args.skill?.name.includes(game.i18n.localize("NAME.Stealth"))) \ No newline at end of file diff --git a/scripts/71DmrxCTKGYL4Z7X.js b/scripts/71DmrxCTKGYL4Z7X.js new file mode 100644 index 0000000..159a835 --- /dev/null +++ b/scripts/71DmrxCTKGYL4Z7X.js @@ -0,0 +1 @@ +return ["fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/7Ck0fkzE4WQ62qVe.js b/scripts/7Ck0fkzE4WQ62qVe.js new file mode 100644 index 0000000..6850a0b --- /dev/null +++ b/scripts/7Ck0fkzE4WQ62qVe.js @@ -0,0 +1,4 @@ +if (args.item.type == "skill" && args.item.name == "Melee (Basic)") +{ + args.item.system.modifier.value += 20; +} \ No newline at end of file diff --git a/scripts/7F3miqRA0ceMUBIu.js b/scripts/7F3miqRA0ceMUBIu.js new file mode 100644 index 0000000..1088080 --- /dev/null +++ b/scripts/7F3miqRA0ceMUBIu.js @@ -0,0 +1 @@ +return args.characteristic != "int" || args.skill \ No newline at end of file diff --git a/scripts/7F6aGxZJjwxm5e5P.js b/scripts/7F6aGxZJjwxm5e5P.js new file mode 100644 index 0000000..18e9f56 --- /dev/null +++ b/scripts/7F6aGxZJjwxm5e5P.js @@ -0,0 +1,18 @@ +if (args.test.result.castOutcome == "failure") +{ + ValueDialog.create("Enter Wounds Lost to gain SL", this.effect.name, "0").then(async value => { + value = Math.clamped(value, 0, 3) + if (value == 0) + { + return; + } + else if (Number.isNumeric(value)) + { + this.script.scriptNotification(`Lost ${value} Wounds`) + this.actor.modifyWounds(-1 * value) + await this.item.system.toggleEquip(); + args.test.addSL(value); + args.test.preData.other.push(`${this.effect.name}: +${value} SL`) + } + }) +} \ No newline at end of file diff --git a/scripts/7H6wYyJ6cpaoc2QQ.js b/scripts/7H6wYyJ6cpaoc2QQ.js new file mode 100644 index 0000000..05cbeea --- /dev/null +++ b/scripts/7H6wYyJ6cpaoc2QQ.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Cool"); \ No newline at end of file diff --git a/scripts/7JW9t8AYSDkkzG2V.js b/scripts/7JW9t8AYSDkkzG2V.js new file mode 100644 index 0000000..5e3d751 --- /dev/null +++ b/scripts/7JW9t8AYSDkkzG2V.js @@ -0,0 +1,21 @@ +// Apply changes when the mask is worn + +if (args.equipped) +{ + this.actor.createEmbeddedDocuments("ActiveEffect", [this.item.effects.contents[1]?.convertToApplied()]) + this.script.scriptMessage(`${this.actor.name} dons the ${this.item.name}.
+ If they wear the mask for more than an hour or benefit from any of its effects, they are exposed to @Corruption[moderate]{Moderate Corruption}. + `, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} + +// Notify of lingering effects when mask is removed +else if (!args.equipped) +{ + await this.item.effects.contents[0].delete(); + await this.item.update({name : this.item.name += " (Used)"}) + this.script.scriptMessage(`${this.item.name} on ${this.actor.name} has been taken off and loses its properties. However, the effects last for [[1d10+4]] days, after which they should be manually removed.`, + {whisper: ChatMessage.getWhisperRecipients("GM")} + ) + +} \ No newline at end of file diff --git a/scripts/7OmrMjaU48o2FEZi.js b/scripts/7OmrMjaU48o2FEZi.js new file mode 100644 index 0000000..4ca0181 --- /dev/null +++ b/scripts/7OmrMjaU48o2FEZi.js @@ -0,0 +1,6 @@ + +this.actor.characteristics.t.bonus = 10 + +this.actor.details.move.value = 0; +this.actor.details.move.walk= 0; +this.actor.details.move.run = 0; \ No newline at end of file diff --git a/scripts/7ScfB4o1QhXnNUfq.js b/scripts/7ScfB4o1QhXnNUfq.js new file mode 100644 index 0000000..a8f5e60 --- /dev/null +++ b/scripts/7ScfB4o1QhXnNUfq.js @@ -0,0 +1 @@ +return !["int", "wp"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/7VAhXHov6pR1SkgD.js b/scripts/7VAhXHov6pR1SkgD.js new file mode 100644 index 0000000..67dfce8 --- /dev/null +++ b/scripts/7VAhXHov6pR1SkgD.js @@ -0,0 +1 @@ +return args.item?.name == game.i18n.localize("NAME.Endurance"); \ No newline at end of file diff --git a/scripts/7WR2hJjHPhHhHxAq.js b/scripts/7WR2hJjHPhHhHxAq.js new file mode 100644 index 0000000..45d5ca2 --- /dev/null +++ b/scripts/7WR2hJjHPhHhHxAq.js @@ -0,0 +1,8 @@ +let poisoned = args.actor.hasCondition("poisoned") +if (poisoned) +{ + this.script.scriptNotification(`Removed ${poisoned.conditionValue} Poisoned Conditions`) + poisoned.delete(); +} +else + this.script.scriptNotification(`No Poisoned Conditions`) \ No newline at end of file diff --git a/scripts/7ZoFUMDG2WJd8RMg.js b/scripts/7ZoFUMDG2WJd8RMg.js new file mode 100644 index 0000000..0ff8299 --- /dev/null +++ b/scripts/7ZoFUMDG2WJd8RMg.js @@ -0,0 +1 @@ +this.script.scriptMessage(`Claimed ${this.effect.name} Bonus`); \ No newline at end of file diff --git a/scripts/7e8FgQUF2oANANmx.js b/scripts/7e8FgQUF2oANANmx.js new file mode 100644 index 0000000..b195380 --- /dev/null +++ b/scripts/7e8FgQUF2oANANmx.js @@ -0,0 +1 @@ +return args.skill?.name == "Melee (Brawling)" || args.item?.weaponGroup?.value == "brawling" \ No newline at end of file diff --git a/scripts/7f6OsttTzE7Hvzfk.js b/scripts/7f6OsttTzE7Hvzfk.js new file mode 100644 index 0000000..aff4c37 --- /dev/null +++ b/scripts/7f6OsttTzE7Hvzfk.js @@ -0,0 +1,5 @@ +if (this.actor.statuses.has("infighting")) // Only add +10 if already infighting + args.prefillModifiers.modifier += 10; + + +args.prefillModifiers.successBonus += 1; diff --git a/scripts/7n3SEAGRA5ESK8gV.js b/scripts/7n3SEAGRA5ESK8gV.js new file mode 100644 index 0000000..f577178 --- /dev/null +++ b/scripts/7n3SEAGRA5ESK8gV.js @@ -0,0 +1 @@ +args.options.disarm = true; \ No newline at end of file diff --git a/scripts/7szLG4VALuuy1cPm.js b/scripts/7szLG4VALuuy1cPm.js new file mode 100644 index 0000000..1fbcead --- /dev/null +++ b/scripts/7szLG4VALuuy1cPm.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "easy"}}) +await test.roll(); +if (test.failed) +{ + await this.actor.addCondition("fatigued") +} \ No newline at end of file diff --git a/scripts/7wBWUw05q0igh508.js b/scripts/7wBWUw05q0igh508.js new file mode 100644 index 0000000..95e3da1 --- /dev/null +++ b/scripts/7wBWUw05q0igh508.js @@ -0,0 +1,17 @@ +// Imbibing this substance grants the user the Painless Creature Trait. +const hasPainless = this.actor.has("Painless"); +if (hasPainless === undefined) +{ + let item = await fromUuid("Compendium.wfrp4e-core.items.wMwSRDmgiF2IdCJr"); + let data = item.toObject() + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + + this.script.scriptMessage( + `

${this.actor.prototypeToken.name} has gained the Painless Creature Trait. This + effect lasts for one hour, after which it dissipates and the full effect + of all the imbiber's wounds come crashing down at once.

+

Note that this does not prevent the user from acquiring a Critical + Wound or dying from one. It merely allows them to ignore most + of their effects.

`, + { whisper: ChatMessage.getWhisperRecipients("GM"), blind: true}) +} \ No newline at end of file diff --git a/scripts/84IB8CWa55XzoAkv.js b/scripts/84IB8CWa55XzoAkv.js new file mode 100644 index 0000000..3cdc615 --- /dev/null +++ b/scripts/84IB8CWa55XzoAkv.js @@ -0,0 +1 @@ +return (["Animal Care", "Charm Animal"].includes(args.item?.name) || args.item?.name.includes("Ride") || args.item?.name.includes("Animal Training")) \ No newline at end of file diff --git a/scripts/87rrZ3ojHrXa3lCn.js b/scripts/87rrZ3ojHrXa3lCn.js new file mode 100644 index 0000000..75193a6 --- /dev/null +++ b/scripts/87rrZ3ojHrXa3lCn.js @@ -0,0 +1 @@ +this.actor.modifyWounds(1) \ No newline at end of file diff --git a/scripts/8AoA4bnstBtglRGZ.js b/scripts/8AoA4bnstBtglRGZ.js new file mode 100644 index 0000000..ff38d2d --- /dev/null +++ b/scripts/8AoA4bnstBtglRGZ.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.wMwSRDmgiF2IdCJr") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/8ByuHnUZ4RNTdGVv.js b/scripts/8ByuHnUZ4RNTdGVv.js new file mode 100644 index 0000000..37290b2 --- /dev/null +++ b/scripts/8ByuHnUZ4RNTdGVv.js @@ -0,0 +1,16 @@ +let strLoss = Math.ceil(CONFIG.Dice.randomUniform() * 10) +let tghLoss = Math.ceil(CONFIG.Dice.randomUniform() * 10) + +if (!this.actor.has("Undead") && !this.actor.has("Daemonic")) +{ + this.actor.setupSkill(game.i18n.localize("NAME.Cool"), { appendTitle: " - " + this.effect.name, fields: { difficulty: "average" }, context: { failure: `Lost ${strLoss} Strength and ${tghLoss} Toughness` } }).then(async test => { + await test.roll(); + if (test.failed) { + this.actor.update({ "system.characteristics.s.initial": this.actor.system.characteristics.s.initial - strLoss, "system.characteristics.t.initial": this.actor.system.characteristics.t.initial - tghLoss }) + } + }) + +} +else { + this.script.scriptNotification(`${this.actor.name} is immune to ${this.effect.name}`) +} diff --git a/scripts/8GyJgdHVBaLrHCY8.js b/scripts/8GyJgdHVBaLrHCY8.js new file mode 100644 index 0000000..2ee98a7 --- /dev/null +++ b/scripts/8GyJgdHVBaLrHCY8.js @@ -0,0 +1,21 @@ +let type = this.item.getFlag("wfrp4e", "breath") +let types = { + none : "None", + cold : "Cold", + corrosion : "Corrosion", + fire : "Fire", + electricity : "Electricity", + poison : "Poison", + smoke : "Smoke", + various : "Various" +} +if (!type) +{ + type = (await ItemDialog.create(ItemDialog.objectToArray(types, this.item.img), 1, "Choose Breath"))[0]?.id; + this.item.updateSource({"flags.wfrp4e.breath" : type}) +} + +if (!this.item.name.includes("(") && types[type] && type != "none") +{ + this.item.updateSource({name : this.item.name += ` (${types[type]})`, "system.specification.value" : this.item.system.specification.value.replace("(Type)", "").trim()}) +} \ No newline at end of file diff --git a/scripts/8K9tpCwvFC9INk5V.js b/scripts/8K9tpCwvFC9INk5V.js new file mode 100644 index 0000000..757ac38 --- /dev/null +++ b/scripts/8K9tpCwvFC9INk5V.js @@ -0,0 +1,8 @@ +if (["t", "wp"].includes(args.characteristic)) +{ + args.fields.modifier += 10; +} +else if (["ag", "i", "int"].includes(args.characteristic)) +{ + args.fields.modifier -= 10; +} \ No newline at end of file diff --git a/scripts/8LmUVQxOwTLSeabg.js b/scripts/8LmUVQxOwTLSeabg.js new file mode 100644 index 0000000..32cd5df --- /dev/null +++ b/scripts/8LmUVQxOwTLSeabg.js @@ -0,0 +1 @@ +return args.data.targets.length > 0 || !args.weapon?.system.qualities.value.find(i => i.name == "shield") // Should count even if they don't have the skill \ No newline at end of file diff --git a/scripts/8N3Uqjq1ZxPxo4pk.js b/scripts/8N3Uqjq1ZxPxo4pk.js new file mode 100644 index 0000000..43dddd4 --- /dev/null +++ b/scripts/8N3Uqjq1ZxPxo4pk.js @@ -0,0 +1 @@ +return !args.skill?.name?.includes(game.i18n.localize("NAME.Lore")) \ No newline at end of file diff --git a/scripts/8RNziYGGb4sp3BGQ.js b/scripts/8RNziYGGb4sp3BGQ.js new file mode 100644 index 0000000..b853c6b --- /dev/null +++ b/scripts/8RNziYGGb4sp3BGQ.js @@ -0,0 +1,5 @@ +if (!args.test.weapon?.name.includes("Drakefire")) +{ + args.test.result.misfire = game.i18n.localize("Misfire"); + args.test.result.misfireDamage = (0, eval)(parseInt(args.test.result.roll.toString().split('').pop()) + args.test.weapon.system.Damage); +} \ No newline at end of file diff --git a/scripts/8ShLVT0bK1eQpinj.js b/scripts/8ShLVT0bK1eQpinj.js new file mode 100644 index 0000000..9783813 --- /dev/null +++ b/scripts/8ShLVT0bK1eQpinj.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.k00PimCWkff11IA0") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data]) \ No newline at end of file diff --git a/scripts/8TRiAJ8thIKE4IoL.js b/scripts/8TRiAJ8thIKE4IoL.js new file mode 100644 index 0000000..3814c2c --- /dev/null +++ b/scripts/8TRiAJ8thIKE4IoL.js @@ -0,0 +1,5 @@ + +let SL = Number(getProperty(this.item, "flags.wfrp4e.sourceTest.result.SL") || 1) + +args.actor.characteristics.i.modifier += 10 * SL +args.actor.characteristics.ag.modifier += 10 * SL \ No newline at end of file diff --git a/scripts/8ThudCYRqkjQIwJH.js b/scripts/8ThudCYRqkjQIwJH.js new file mode 100644 index 0000000..0395373 --- /dev/null +++ b/scripts/8ThudCYRqkjQIwJH.js @@ -0,0 +1,4 @@ +if (args.opposedTest.attackerTest.result.critical) +{ + args.actor.addCondition("ablaze") +} \ No newline at end of file diff --git a/scripts/8WJsecxdndaHRxxS.js b/scripts/8WJsecxdndaHRxxS.js new file mode 100644 index 0000000..5bd3474 --- /dev/null +++ b/scripts/8WJsecxdndaHRxxS.js @@ -0,0 +1 @@ +this.actor.status.addArmour(this.actor.characteristics.wp.bonus, {source: this.effect, magical : true}) \ No newline at end of file diff --git a/scripts/8WeYU5e5LN9UeWFs.js b/scripts/8WeYU5e5LN9UeWFs.js new file mode 100644 index 0000000..7ede669 --- /dev/null +++ b/scripts/8WeYU5e5LN9UeWFs.js @@ -0,0 +1,8 @@ +if (args.item.type == "spell") +{ + let range = parseInt(args.item.Range) + if (Number.isNumeric(range)) + { + args.item.system.range.value = "2 * " + args.item.system.range.value + } +} \ No newline at end of file diff --git a/scripts/8ZAUBSH9CM9OTpTL.js b/scripts/8ZAUBSH9CM9OTpTL.js new file mode 100644 index 0000000..eb0439d --- /dev/null +++ b/scripts/8ZAUBSH9CM9OTpTL.js @@ -0,0 +1,11 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Perception"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "easy"}}); +await test.roll(); + +if (test.succeeded) +{ + this.actor.addCondition("stunned") +} +else if (test.failed) +{ + this.actor.addCondition("poisoned", 2); +} \ No newline at end of file diff --git a/scripts/8araLuwmBq8GKEw3.js b/scripts/8araLuwmBq8GKEw3.js new file mode 100644 index 0000000..66a5c92 --- /dev/null +++ b/scripts/8araLuwmBq8GKEw3.js @@ -0,0 +1,7 @@ +let APIgnored = args.AP.layers.reduce((prev, current) => prev + ((current.weakpoints && !current.ignored) ? current.value : 0), 0) + +if (APIgnored) +{ + args.modifiers.ap.ignored += APIgnored + args.modifiers.ap.details.push(`${this.effect.name}: Ignore AP with Weakpoints (${APIgnored})`) +} \ No newline at end of file diff --git a/scripts/8fefDfiYKFOWdPER.js b/scripts/8fefDfiYKFOWdPER.js new file mode 100644 index 0000000..dc649cd --- /dev/null +++ b/scripts/8fefDfiYKFOWdPER.js @@ -0,0 +1 @@ +args.update({texture : {scaleX : 2, scaleY: 2, src: "modules/wfrp4e-core/tokens/popout/gor.webp"}}); \ No newline at end of file diff --git a/scripts/8g2iitsgaJarKQpr.js b/scripts/8g2iitsgaJarKQpr.js new file mode 100644 index 0000000..4ce1574 --- /dev/null +++ b/scripts/8g2iitsgaJarKQpr.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.V0c3qBU1CMm8bmsW") +let data = item.toObject() +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) diff --git a/scripts/8gCja0mfKt4nYVZc.js b/scripts/8gCja0mfKt4nYVZc.js new file mode 100644 index 0000000..d05c4f3 --- /dev/null +++ b/scripts/8gCja0mfKt4nYVZc.js @@ -0,0 +1 @@ +args.fields.slBonus += 2 \ No newline at end of file diff --git a/scripts/8hIyWDyfbgGAig65.js b/scripts/8hIyWDyfbgGAig65.js new file mode 100644 index 0000000..bdf054c --- /dev/null +++ b/scripts/8hIyWDyfbgGAig65.js @@ -0,0 +1 @@ +return ["ws", "bs", "s", "t", "ag", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/8jvEVPUCg3rKG48Y.js b/scripts/8jvEVPUCg3rKG48Y.js new file mode 100644 index 0000000..38cef06 --- /dev/null +++ b/scripts/8jvEVPUCg3rKG48Y.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.9fq6p9Q6H02LjaSi") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/8noxHUQKR55Kx1YN.js b/scripts/8noxHUQKR55Kx1YN.js new file mode 100644 index 0000000..d164bff --- /dev/null +++ b/scripts/8noxHUQKR55Kx1YN.js @@ -0,0 +1 @@ +this.actor.system.status.corruption.max += 1 \ No newline at end of file diff --git a/scripts/8oE0DTzz0krOfFlV.js b/scripts/8oE0DTzz0krOfFlV.js new file mode 100644 index 0000000..e4d4736 --- /dev/null +++ b/scripts/8oE0DTzz0krOfFlV.js @@ -0,0 +1,2 @@ +args.item.system.qualities.value.push({name : "magical"}) +args.item.system.qualities.value.push({name : "impact"}) diff --git a/scripts/8rq4GL5d5nCn4kO7.js b/scripts/8rq4GL5d5nCn4kO7.js new file mode 100644 index 0000000..79c9046 --- /dev/null +++ b/scripts/8rq4GL5d5nCn4kO7.js @@ -0,0 +1,7 @@ +let caster = this.effect.sourceActor +if (caster) +{ + let healed= caster.characteristics.wp.bonus + this.actor.modifyWounds(healed); + this.script.scriptMessage(`${this.actor.prototypeToken.name} regains ${healed} Wounds`) +} \ No newline at end of file diff --git a/scripts/8tyMXDfHR8AJBdDu.js b/scripts/8tyMXDfHR8AJBdDu.js new file mode 100644 index 0000000..9e0a473 --- /dev/null +++ b/scripts/8tyMXDfHR8AJBdDu.js @@ -0,0 +1,7 @@ +let weakpointsAP = args.AP.layers.filter(i => !i.ignored && i.weakpoints).reduce((ap, layer) => ap + layer.value, 0); + +if (weakpointsAP > 0) +{ + args.modifiers.ap.ignored += weakpointsAP; + args.modifiers.ap.details.push(`${this.effect.name} - Ignore Weakpoints (${weakpointsAP})`); +} \ No newline at end of file diff --git a/scripts/8vpAtJ93GIeye1qj.js b/scripts/8vpAtJ93GIeye1qj.js new file mode 100644 index 0000000..aefec45 --- /dev/null +++ b/scripts/8vpAtJ93GIeye1qj.js @@ -0,0 +1 @@ +return args.type == "cast" \ No newline at end of file diff --git a/scripts/8wG9l4T9fc1bM0TN.js b/scripts/8wG9l4T9fc1bM0TN.js new file mode 100644 index 0000000..a043287 --- /dev/null +++ b/scripts/8wG9l4T9fc1bM0TN.js @@ -0,0 +1,3 @@ +let item = (await fromUuid("Compendium.wfrp4e-core.items.Item.kJNAY1YRaCy9IgmT")).toObject(); +item.system.specification.value = 1; +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/8yBr6VbdKcrWUuqw.js b/scripts/8yBr6VbdKcrWUuqw.js new file mode 100644 index 0000000..ce24a5f --- /dev/null +++ b/scripts/8yBr6VbdKcrWUuqw.js @@ -0,0 +1,4 @@ +this.actor.characteristics.i.value= "-" +this.actor.characteristics.int.value= "-" +this.actor.characteristics.wp.value= "-" +this.actor.characteristics.fel.value = "-" \ No newline at end of file diff --git a/scripts/8zTkDVziBPaNbMQX.js b/scripts/8zTkDVziBPaNbMQX.js new file mode 100644 index 0000000..c032cba --- /dev/null +++ b/scripts/8zTkDVziBPaNbMQX.js @@ -0,0 +1,30 @@ +let filters = [ + { + property : "type", + value : "spell" + }, + { + property : "system.lore.value", + value : "petty" + } +] + +let petty = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 6, "Choose 6 Petty Spells") + + +filters = [ + { + property : "type", + value : "spell" + }, + { + property : "system.lore.value", + value : "" + } +] + +let arcane = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 9, "Choose 9 Arcane Spells") + +let items = petty.concat(arcane).map(i => i.toObject()) + +this.actor.createEmbeddedDocuments("Item", items); \ No newline at end of file diff --git a/scripts/91S2GnBFYFbxmOCK.js b/scripts/91S2GnBFYFbxmOCK.js new file mode 100644 index 0000000..3e28299 --- /dev/null +++ b/scripts/91S2GnBFYFbxmOCK.js @@ -0,0 +1,2 @@ +this.actor.characteristics.s.bonus += 1 +this.actor.characteristics.s.calculationBonusModifier -= 1 \ No newline at end of file diff --git a/scripts/93K85NnVwjVNXlZq.js b/scripts/93K85NnVwjVNXlZq.js new file mode 100644 index 0000000..3b0ffe3 --- /dev/null +++ b/scripts/93K85NnVwjVNXlZq.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Trade")); \ No newline at end of file diff --git a/scripts/956dUb5sd6OtbWZR.js b/scripts/956dUb5sd6OtbWZR.js new file mode 100644 index 0000000..3f6bdb7 --- /dev/null +++ b/scripts/956dUb5sd6OtbWZR.js @@ -0,0 +1 @@ +args.fields.successBonus++; \ No newline at end of file diff --git a/scripts/96Y1yIH1lRjTs5hL.js b/scripts/96Y1yIH1lRjTs5hL.js new file mode 100644 index 0000000..1fab3ce --- /dev/null +++ b/scripts/96Y1yIH1lRjTs5hL.js @@ -0,0 +1,5 @@ +if (args.test.succeeded) + return + +if (args.test.characteristicKey == "wp") + this.actor.addCondition("broken") \ No newline at end of file diff --git a/scripts/98nKfcimlaPeM9h5.js b/scripts/98nKfcimlaPeM9h5.js new file mode 100644 index 0000000..dde67fd --- /dev/null +++ b/scripts/98nKfcimlaPeM9h5.js @@ -0,0 +1,2 @@ +await this.actor.addCondition("bleeding") +await this.script.scriptMessage(await this.actor.applyBasicDamage(10, {suppressMsg : true})); \ No newline at end of file diff --git a/scripts/9A7rYY3FKi5XLihG.js b/scripts/9A7rYY3FKi5XLihG.js new file mode 100644 index 0000000..e8ade7a --- /dev/null +++ b/scripts/9A7rYY3FKi5XLihG.js @@ -0,0 +1,6 @@ +fromUuid("Compendium.wfrp4e-core.items.5QcrpLQWWrsbKR79").then(item => { + let data = item.toObject(); + data.system.tests.value = data.system.tests.value.replace("coins", "metal objects"); + data.system.description.value += "

This Talent also extends to any metal object because of Metallic Affinity

" + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) +}) \ No newline at end of file diff --git a/scripts/9EVj4bmZJex45Mt7.js b/scripts/9EVj4bmZJex45Mt7.js new file mode 100644 index 0000000..a17d972 --- /dev/null +++ b/scripts/9EVj4bmZJex45Mt7.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Athletics"); \ No newline at end of file diff --git a/scripts/9JnPK1jNUEso7Pv8.js b/scripts/9JnPK1jNUEso7Pv8.js new file mode 100644 index 0000000..8c33cb3 --- /dev/null +++ b/scripts/9JnPK1jNUEso7Pv8.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.9h82z72XGo9tfgQS") +let data = item.toObject(); +data.name += ` (Smell)` +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/9MDi3ok9gPwtbALf.js b/scripts/9MDi3ok9gPwtbALf.js new file mode 100644 index 0000000..d6892bc --- /dev/null +++ b/scripts/9MDi3ok9gPwtbALf.js @@ -0,0 +1 @@ +args.actor.details.move.value /= 2 \ No newline at end of file diff --git a/scripts/9MwRUzRinhq1IjhG.js b/scripts/9MwRUzRinhq1IjhG.js new file mode 100644 index 0000000..280ccc9 --- /dev/null +++ b/scripts/9MwRUzRinhq1IjhG.js @@ -0,0 +1 @@ +args.actor.addCondition("grappling"); \ No newline at end of file diff --git a/scripts/9RFoasDcFnYZ1txR.js b/scripts/9RFoasDcFnYZ1txR.js new file mode 100644 index 0000000..8a60a20 --- /dev/null +++ b/scripts/9RFoasDcFnYZ1txR.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Perception"); \ No newline at end of file diff --git a/scripts/9VfeubiCV83LN9iY.js b/scripts/9VfeubiCV83LN9iY.js new file mode 100644 index 0000000..83f9f95 --- /dev/null +++ b/scripts/9VfeubiCV83LN9iY.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM") +let data = item.toObject(); +data.name += ` (When Charging)` +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/9WZa63lr0K3SsP4G.js b/scripts/9WZa63lr0K3SsP4G.js new file mode 100644 index 0000000..bac4c09 --- /dev/null +++ b/scripts/9WZa63lr0K3SsP4G.js @@ -0,0 +1,7 @@ +let sourceItem = this.effect.sourceItem; + +if (sourceItem) +{ + this.actor.applyEffect({effectUuids : [sourceItem.effects.contents[2].uuid]}) + this.script.scriptNotification("Applied after effects"); +} \ No newline at end of file diff --git a/scripts/9Yn9uViEjcuaESJ2.js b/scripts/9Yn9uViEjcuaESJ2.js new file mode 100644 index 0000000..f964391 --- /dev/null +++ b/scripts/9Yn9uViEjcuaESJ2.js @@ -0,0 +1,12 @@ +if (this.item.getFlag("wfrp4e", "failedCool")) +{ + this.item.name += " (No AP)" + this.item.system.AP = { + "head": 0, + "lArm": 0, + "rArm": 0, + "lLeg": 0, + "rLeg": 0, + "body": 0 + } +} \ No newline at end of file diff --git a/scripts/9ZFPDCk8M2TQxh7x.js b/scripts/9ZFPDCk8M2TQxh7x.js new file mode 100644 index 0000000..3529480 --- /dev/null +++ b/scripts/9ZFPDCk8M2TQxh7x.js @@ -0,0 +1 @@ +args.fields.modifier += 20 diff --git a/scripts/9bJGJrLqslV5lBya.js b/scripts/9bJGJrLqslV5lBya.js new file mode 100644 index 0000000..9023650 --- /dev/null +++ b/scripts/9bJGJrLqslV5lBya.js @@ -0,0 +1 @@ + return args.characteristic == "bs" \ No newline at end of file diff --git a/scripts/9eWR4mdaoCSQawDT.js b/scripts/9eWR4mdaoCSQawDT.js new file mode 100644 index 0000000..82e0ef9 --- /dev/null +++ b/scripts/9eWR4mdaoCSQawDT.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.GlShFJF2TpsNh1FX"); +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) diff --git a/scripts/9fK07tqqZyPg7dpx.js b/scripts/9fK07tqqZyPg7dpx.js new file mode 100644 index 0000000..baccb76 --- /dev/null +++ b/scripts/9fK07tqqZyPg7dpx.js @@ -0,0 +1,12 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty: "veasy"}}) +await test.roll(); +if (test.failed) +{ + this.script.scriptNotification("Gained a Festering Wound") + let item = await fromUuid("Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb") + this.actor.createEmbeddedDocuments("Item", [item.toObject()]) +} +else +{ + this.script.scriptNotification("Avoided a Festering Wound") +} diff --git a/scripts/9nroaZDkW3WXNkB7.js b/scripts/9nroaZDkW3WXNkB7.js new file mode 100644 index 0000000..64deeef --- /dev/null +++ b/scripts/9nroaZDkW3WXNkB7.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.4MJJCiOKPkBByYwW"); +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/9ob2lPnk3PDot9Tx.js b/scripts/9ob2lPnk3PDot9Tx.js new file mode 100644 index 0000000..1edbafd --- /dev/null +++ b/scripts/9ob2lPnk3PDot9Tx.js @@ -0,0 +1 @@ +this.actor.addCondition("blinded", this.effect.sourceTest.result.SL) \ No newline at end of file diff --git a/scripts/9qWUuEF8F5nehF1y.js b/scripts/9qWUuEF8F5nehF1y.js new file mode 100644 index 0000000..442e3d1 --- /dev/null +++ b/scripts/9qWUuEF8F5nehF1y.js @@ -0,0 +1,2 @@ +args.item.system.qualities.value = args.item.system.qualities.value.concat([{name : "magical"}, {name : "unbreakable"}]) +args.item.system.damage.value += ` + ${this.effect.sourceActor.system.characteristics.wp.bonus}` \ No newline at end of file diff --git a/scripts/A0OK0qAMmnf8iNJf.js b/scripts/A0OK0qAMmnf8iNJf.js new file mode 100644 index 0000000..b3df7c5 --- /dev/null +++ b/scripts/A0OK0qAMmnf8iNJf.js @@ -0,0 +1,8 @@ +if (args.test.result.SL < 0) +{ + this.script.scriptMessage(`Gained ${Math.abs(args.test.result.SL)} Corruption points`, {whisper : ChatMessage.getWhisperRecipients("GM")}) + if (args.test.failed && this.actor.type == "character") + { + this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + Math.abs(args.test.result.SL)}) + } +} \ No newline at end of file diff --git a/scripts/A1odAcuRbq9797ZB.js b/scripts/A1odAcuRbq9797ZB.js new file mode 100644 index 0000000..04c6e12 --- /dev/null +++ b/scripts/A1odAcuRbq9797ZB.js @@ -0,0 +1,94 @@ +let choice1 = [ + { + type : "skill", + name : "Melee (Basic)", + diff : { + system : { + advances : { + value : 10 + } + } + } + } +] +let choice2 = [ + { + type : "skill", + name : "Melee (Polearm)", + diff : { + system : { + advances : { + value : 10 + } + } + } + } +] + +let choice = await Dialog.wait({ + title : "Choice", + content : + `

+ Select your choice +

+
    +
  1. Melee (Basic)
  2. +
  3. Melee (Polearm)
  4. +
+ `, + buttons : { + 1 : { + label : "Basic", + callback : () => { + return choice1; + } + }, + 2 : { + label : "Polearm", + callback : () => { + return choice2; + } + } + } +}) + +let updateObj = this.actor.toObject(); +let items = [] +for (let c of choice) +{ + let existing + if (c.type == "skill") + { + existing = updateObj.items.find(i => i.name == c.name && i.type == c.type) + if (existing && c.diff?.system?.advances?.value) + { + existing.system.advances.value += c.diff.system.advances.value + } + } + + if (!existing) + { + let item = await game.wfrp4e.utility.find(c.name, c.type) + if (item) + { + item = item.toObject() + equip(item); + items.push(mergeObject(item, (c.diff || {}))) + } + else + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + +} +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/A3MW0UksYrHGa0Qw.js b/scripts/A3MW0UksYrHGa0Qw.js new file mode 100644 index 0000000..1d38773 --- /dev/null +++ b/scripts/A3MW0UksYrHGa0Qw.js @@ -0,0 +1 @@ +return ["fel", "wp", "int", "t"].includes(args.characteristic); \ No newline at end of file diff --git a/scripts/A3fvV69RS1lYgma0.js b/scripts/A3fvV69RS1lYgma0.js new file mode 100644 index 0000000..73c68ae --- /dev/null +++ b/scripts/A3fvV69RS1lYgma0.js @@ -0,0 +1,15 @@ +if (this.actor.type == "character") + this.actor.corruptionDialog("minor") + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name}) +await test.roll(); +if(test.failed) +{ + await this.actor.addCondition("unconscious"); + let secondTest = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty : "easy"}, skipTargets: true, appendTitle : " - Despair"}) + await secondTest.roll(); + if(secondTest.failed) + { + await this.actor.addCondition("fatigued"); + } +} \ No newline at end of file diff --git a/scripts/A6DcKPzAGntzSCil.js b/scripts/A6DcKPzAGntzSCil.js new file mode 100644 index 0000000..3ba5f6c --- /dev/null +++ b/scripts/A6DcKPzAGntzSCil.js @@ -0,0 +1,5 @@ +let roll = await new Roll("1d10").roll() + +roll.toMessage(this.script.getChatData({flavor : `${this.effect.name} (Duration)`})); + +this.effect.updateSource({"duration.rounds" : roll.total}) \ No newline at end of file diff --git a/scripts/ACgKpKrEEHoNGG0h.js b/scripts/ACgKpKrEEHoNGG0h.js new file mode 100644 index 0000000..5d7289c --- /dev/null +++ b/scripts/ACgKpKrEEHoNGG0h.js @@ -0,0 +1 @@ +return !args.skill?.name.includes("Channelling") && args.type != "channelling" \ No newline at end of file diff --git a/scripts/ACtDCTLZXmd5uXjX.js b/scripts/ACtDCTLZXmd5uXjX.js new file mode 100644 index 0000000..205ea6b --- /dev/null +++ b/scripts/ACtDCTLZXmd5uXjX.js @@ -0,0 +1,15 @@ +let halve; +if (args.opposedTest.attackerTest.item?.type != "spell") +{ + halve = await Dialog.confirm({title : this.effect.name, content : "Halve Damage? (Halves all damage other than fire, cold, and magic)"}) +} +else +{ + halve = false; +} + +if (halve) +{ + args.totalWoundLoss /= 2; + args.modifiers.other.push({label : this.effect.name, details : "Halved", value : "× 0.5"}) +} \ No newline at end of file diff --git a/scripts/AGD7zCyV4zruvnWu.js b/scripts/AGD7zCyV4zruvnWu.js new file mode 100644 index 0000000..f7eb0f9 --- /dev/null +++ b/scripts/AGD7zCyV4zruvnWu.js @@ -0,0 +1 @@ +return args.type != "cast" || !["death", "necromancy", "life", "light", "heavens"].includes(args.spell?.system.lore.value) \ No newline at end of file diff --git a/scripts/AHZ8f7dfN8jNsYk6.js b/scripts/AHZ8f7dfN8jNsYk6.js new file mode 100644 index 0000000..80ece08 --- /dev/null +++ b/scripts/AHZ8f7dfN8jNsYk6.js @@ -0,0 +1,22 @@ +let token = this.actor.getActiveTokens()[0]; +let target = args.data.targets[0]; +let weapon = args.weapon; + +if(!target || !token) +{ + return; +} + +let distance = canvas.grid.measureDistances([{ ray: new Ray({ x: token.center.x, y: token.center.y }, { x: target.center.x, y: target.center.y }) }], { gridSpaces: true })[0] +let currentBand + +for (let band in weapon.range.bands) +{ + if (distance >= weapon.range.bands[band].range[0] && distance <= weapon.range.bands[band].range[1]) + { + currentBand = band; + break; + } +} + +return [game.i18n.localize("Long Range"), game.i18n.localize("Extreme")].includes(currentBand) \ No newline at end of file diff --git a/scripts/AI6bFrjWk4NH9FBd.js b/scripts/AI6bFrjWk4NH9FBd.js new file mode 100644 index 0000000..c1eb8c2 --- /dev/null +++ b/scripts/AI6bFrjWk4NH9FBd.js @@ -0,0 +1 @@ +this.actor.addCondition("entangled", this.effect.sourceTest.result.overcast.usage.other.current) \ No newline at end of file diff --git a/scripts/ALuPRzf85dmkEfLo.js b/scripts/ALuPRzf85dmkEfLo.js new file mode 100644 index 0000000..b624bba --- /dev/null +++ b/scripts/ALuPRzf85dmkEfLo.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Intuition"); \ No newline at end of file diff --git a/scripts/AMI2wDJqsIZsoq1e.js b/scripts/AMI2wDJqsIZsoq1e.js new file mode 100644 index 0000000..26b30e4 --- /dev/null +++ b/scripts/AMI2wDJqsIZsoq1e.js @@ -0,0 +1,4 @@ +if (args.opposedTest.result.differenceSL >= 0 && args.opposedTest.result.differenceSL <= 2 && args.opposedTest.result.winner == "attacker") +{ + this.script.scriptMessage(`Emits a cloud of foul-smelling blackpowder. Enable the Fellowship Penalty Active Effect on @UUID[${this.actor.uuid}].`, {blind : true, whisper : ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/AMxezwtYnWCF6Oza.js b/scripts/AMxezwtYnWCF6Oza.js new file mode 100644 index 0000000..6eb5509 --- /dev/null +++ b/scripts/AMxezwtYnWCF6Oza.js @@ -0,0 +1 @@ +return args.skill?.name == "Ranged (Blackpowder)" \ No newline at end of file diff --git a/scripts/AS7CstSosuCrwZ19.js b/scripts/AS7CstSosuCrwZ19.js new file mode 100644 index 0000000..36c1d60 --- /dev/null +++ b/scripts/AS7CstSosuCrwZ19.js @@ -0,0 +1,12 @@ +this.actor.getActiveTokens().forEach(t => t.document.update({light : { + "dim": 20, + "bright": 10, + "angle": 360, + "alpha": 0.4, + "animation": { + "speed": 3, + "intensity": 3, + "type": "torch", + }, + "color": "#ffcc66", + }})); \ No newline at end of file diff --git a/scripts/AV2Kj6jgmIc45zKi.js b/scripts/AV2Kj6jgmIc45zKi.js new file mode 100644 index 0000000..77024fc --- /dev/null +++ b/scripts/AV2Kj6jgmIc45zKi.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/AVROqafFhKjN6TPR.js b/scripts/AVROqafFhKjN6TPR.js new file mode 100644 index 0000000..ce6d01e --- /dev/null +++ b/scripts/AVROqafFhKjN6TPR.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.DrNUTPeodEgpWTnT") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/AWgZnm9xLyIWCDnp.js b/scripts/AWgZnm9xLyIWCDnp.js new file mode 100644 index 0000000..71430ba --- /dev/null +++ b/scripts/AWgZnm9xLyIWCDnp.js @@ -0,0 +1,9 @@ +let robust = args.modifiers.other.find(i => i.key == "robust") +if (robust) +{ + robust.value--; +} +else +{ + args.modifiers.other.push({key: "robust", label : this.effect.name, value : -1}) +} diff --git a/scripts/AZGXrZOQ4EzjxRL9.js b/scripts/AZGXrZOQ4EzjxRL9.js new file mode 100644 index 0000000..5acac40 --- /dev/null +++ b/scripts/AZGXrZOQ4EzjxRL9.js @@ -0,0 +1 @@ +return true; \ No newline at end of file diff --git a/scripts/Adgs6Zs0FdefO6qx.js b/scripts/Adgs6Zs0FdefO6qx.js new file mode 100644 index 0000000..dd41f6a --- /dev/null +++ b/scripts/Adgs6Zs0FdefO6qx.js @@ -0,0 +1,5 @@ +if (args.test.options.pilot && args.test.result.reversed) +{ + args.test.data.result.SL = "+" + Math.min(1, Number(args.test.data.result.SL)) + args.test.result.other.push(`${this.effect.name}: SL limited to 1`) +} \ No newline at end of file diff --git a/scripts/Ah2wyywkL8hjJNXM.js b/scripts/Ah2wyywkL8hjJNXM.js new file mode 100644 index 0000000..887ba7c --- /dev/null +++ b/scripts/Ah2wyywkL8hjJNXM.js @@ -0,0 +1 @@ +args.options.healWounds = true; \ No newline at end of file diff --git a/scripts/AjC4dsiuhVCOnRGI.js b/scripts/AjC4dsiuhVCOnRGI.js new file mode 100644 index 0000000..13cd64b --- /dev/null +++ b/scripts/AjC4dsiuhVCOnRGI.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.MVI0lXcg6vvtooAF") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/AmOMCUaWLJ2iJAt5.js b/scripts/AmOMCUaWLJ2iJAt5.js new file mode 100644 index 0000000..4a29d59 --- /dev/null +++ b/scripts/AmOMCUaWLJ2iJAt5.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.IFKWu98qmWpaSfUi") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/AmpDbT0BkDHeaRzf.js b/scripts/AmpDbT0BkDHeaRzf.js new file mode 100644 index 0000000..4094235 --- /dev/null +++ b/scripts/AmpDbT0BkDHeaRzf.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn"); +let data = item.toObject(); +data.system.specification.value = 1; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/ApaLcUhuty3EzJoP.js b/scripts/ApaLcUhuty3EzJoP.js new file mode 100644 index 0000000..da73508 --- /dev/null +++ b/scripts/ApaLcUhuty3EzJoP.js @@ -0,0 +1,6 @@ +let fortunePoints = this.effect.sourceTest.result.overcast.usage.other.current +let current = this.actor.status.fortune.value + +this.actor.update({"system.status.fortune.value" : fortunePoints + current}) + +this.script.scriptMessage(`${this.actor.prototypeToken.name} fortune points increased from ${current} to ${fortunePoints + current}`) \ No newline at end of file diff --git a/scripts/AqHLHp4kH6KULk3e.js b/scripts/AqHLHp4kH6KULk3e.js new file mode 100644 index 0000000..d8b4d08 --- /dev/null +++ b/scripts/AqHLHp4kH6KULk3e.js @@ -0,0 +1,12 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + let effectData = this.item.effects.contents[0].convertToApplied(); + effectData.flags.wfrp4e.sourceItem = this.item.uuid + actor.applyEffect({effectData : [effectData]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/AyNb5sj6FD2Z3Q5T.js b/scripts/AyNb5sj6FD2Z3Q5T.js new file mode 100644 index 0000000..2d4490d --- /dev/null +++ b/scripts/AyNb5sj6FD2Z3Q5T.js @@ -0,0 +1,3 @@ +this.actor.addCondition("dead") +this.actor.setWounds(0); +this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("scatter")) \ No newline at end of file diff --git a/scripts/AyS3iLljxHRKsHg4.js b/scripts/AyS3iLljxHRKsHg4.js new file mode 100644 index 0000000..bd8ef94 --- /dev/null +++ b/scripts/AyS3iLljxHRKsHg4.js @@ -0,0 +1,8 @@ +let broken = this.actor.hasCondition("broken"); +let fatigued = this.actor.hasCondition("fatigued"); +await broken?.delete(); +await fatigued?.delete() +let drilled = await fromUuid("Compendium.wfrp4e-core.items.Item.J9MK0AIaTbvd5oF6") +let fearless = await fromUuid("Compendium.wfrp4e-core.items.Item.8pVzgPkgWpTJvfhG") +let stout = await fromUuid("Compendium.wfrp4e-core.items.Item.IogM5gnsoOX63w7j") +this.actor.createEmbeddedDocuments("Item", [drilled, fearless, stout], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/B063u4vrbvzMaCQt.js b/scripts/B063u4vrbvzMaCQt.js new file mode 100644 index 0000000..394602e --- /dev/null +++ b/scripts/B063u4vrbvzMaCQt.js @@ -0,0 +1 @@ +args.item.system.flaws.value = args.item.system.flaws.value.concat([{name : "bulky"}, {name : "unreliable"}]) \ No newline at end of file diff --git a/scripts/B1xgRS00RcTIZLnO.js b/scripts/B1xgRS00RcTIZLnO.js new file mode 100644 index 0000000..827c508 --- /dev/null +++ b/scripts/B1xgRS00RcTIZLnO.js @@ -0,0 +1 @@ +return ["cast", "channelling"].includes(args.type) && this.actor.hasCondition("fatigued") \ No newline at end of file diff --git a/scripts/B6ZbY3bxTPg6nCng.js b/scripts/B6ZbY3bxTPg6nCng.js new file mode 100644 index 0000000..82df2d2 --- /dev/null +++ b/scripts/B6ZbY3bxTPg6nCng.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Bribery"); \ No newline at end of file diff --git a/scripts/B87v1twc65qyvUWi.js b/scripts/B87v1twc65qyvUWi.js new file mode 100644 index 0000000..97894e2 --- /dev/null +++ b/scripts/B87v1twc65qyvUWi.js @@ -0,0 +1 @@ +args.fields.modifier += 10 * this.effect.conditionValue \ No newline at end of file diff --git a/scripts/B950b0XnIUYCdVwu.js b/scripts/B950b0XnIUYCdVwu.js new file mode 100644 index 0000000..99daff7 --- /dev/null +++ b/scripts/B950b0XnIUYCdVwu.js @@ -0,0 +1,11 @@ +let test = await args.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name}) +await test.roll(); + +if (test.succeeded) +{ + if (args.totalWoundLoss <= parseInt(test.result.SL)) + { + args.abort = `${this.effect.name}: Attack deflected and reflected` + } + args.modifiers.other.push({label : this.effect.name, value : -1 * parseInt(test.result.SL)}) +} \ No newline at end of file diff --git a/scripts/BAOv7moTxsKlT3JS.js b/scripts/BAOv7moTxsKlT3JS.js new file mode 100644 index 0000000..7adeacf --- /dev/null +++ b/scripts/BAOv7moTxsKlT3JS.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty : "easy"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("broken") +} \ No newline at end of file diff --git a/scripts/BD7bVTU2pVoRSRBe.js b/scripts/BD7bVTU2pVoRSRBe.js new file mode 100644 index 0000000..f82d353 --- /dev/null +++ b/scripts/BD7bVTU2pVoRSRBe.js @@ -0,0 +1,30 @@ +let symptoms = { + convulsions : "Convulsions", + coughsandsneezes : "Coughs and Sneezes", + fever : "Fever", + flux : "Flux", + nausea : "Nausea" +} + +let roll = await (new Roll(`max(0, 1d10 - ${this.actor.characteristics.wp.bonus})`).roll()) +roll.toMessage(this.script.getChatData()); + +let choices = await ItemDialog.create(ItemDialog.objectToArray(symptoms), roll.total, "Choose Symptoms"); + +if (choices.length) +{ + let symptomEffects = duplicate(game.wfrp4e.config.symptomEffects) + let added = [] + for(let choice of choices) + { + let symptom = symptomEffects[choice.id]; + symptom.origin = this.effect.uuid; + added.push(symptom); + } + this.actor.createEmbeddedDocuments("ActiveEffect", added) +} +else +{ + this.effect.delete(); +} + diff --git a/scripts/BHbFqhJPzZI2txLs.js b/scripts/BHbFqhJPzZI2txLs.js new file mode 100644 index 0000000..abf139c --- /dev/null +++ b/scripts/BHbFqhJPzZI2txLs.js @@ -0,0 +1,8 @@ +let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase(); + +// If channelling corresponding lore +if (args.type == "channelling" && args.spell.system.lore.value == lore) + args.prefillModifiers.slBonus += 2 +// If channelling or casting different lore +else if (args.spell.system.lore.value != lore && args.spell.system.lore.value != "petty") + args.prefillModifiers.slBonus -= 1 \ No newline at end of file diff --git a/scripts/BcXTujburrHpjpwa.js b/scripts/BcXTujburrHpjpwa.js new file mode 100644 index 0000000..a5e4b3a --- /dev/null +++ b/scripts/BcXTujburrHpjpwa.js @@ -0,0 +1 @@ +args.fields.slBonus -= 3; \ No newline at end of file diff --git a/scripts/Be5rdfnZorbILhpC.js b/scripts/Be5rdfnZorbILhpC.js new file mode 100644 index 0000000..7f8b900 --- /dev/null +++ b/scripts/Be5rdfnZorbILhpC.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let data = item.toObject(); +data.system.specification.value = 3 - this.actor.characteristics.s.bonus +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/Bexspr5viPhHiFmU.js b/scripts/Bexspr5viPhHiFmU.js new file mode 100644 index 0000000..601fb6e --- /dev/null +++ b/scripts/Bexspr5viPhHiFmU.js @@ -0,0 +1,3 @@ +let fatigued = this.actor.hasCondition("fatigued"); +let value = fatigued?.conditionValue || 0; +args.fields.modifier += value * 10; \ No newline at end of file diff --git a/scripts/Bj6bxItlgtI2sXVN.js b/scripts/Bj6bxItlgtI2sXVN.js new file mode 100644 index 0000000..65b1b9e --- /dev/null +++ b/scripts/Bj6bxItlgtI2sXVN.js @@ -0,0 +1,5 @@ +let roll = await new Roll("1d10").roll(); +roll.toMessage(this.script.getChatData()); +args.totalWoundLoss = Math.max(0, args.totalWoundLoss - roll.total) +args.modifiers.other.push({label: this.effect.name, value : -1 * roll.total}) +this.effect.update({disabled : true}) \ No newline at end of file diff --git a/scripts/BtyFhdGMKiMamGhM.js b/scripts/BtyFhdGMKiMamGhM.js new file mode 100644 index 0000000..62a927a --- /dev/null +++ b/scripts/BtyFhdGMKiMamGhM.js @@ -0,0 +1,15 @@ +let test = await args.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +let damage = parseInt(this.effect.sourceTest.result.SL) + +if (test.succeded) +{ + damage = damage + 8 - parseInt(test.result.SL) +} + +else +{ + damage = damage + 10 + this.actor.addCondition("entangled", 3) +} +this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc : "roll", suppressMsg: true})) diff --git a/scripts/Bv3431tnG3VKaTJr.js b/scripts/Bv3431tnG3VKaTJr.js new file mode 100644 index 0000000..9aa3165 --- /dev/null +++ b/scripts/Bv3431tnG3VKaTJr.js @@ -0,0 +1,4 @@ +if (args.test.result.castOutcome == "success") +{ + args.test.result.other.push(`@Fear[2,${this.actor.name}]`); +} \ No newline at end of file diff --git a/scripts/ByhEa1BxQOyrOmqg.js b/scripts/ByhEa1BxQOyrOmqg.js new file mode 100644 index 0000000..cff575e --- /dev/null +++ b/scripts/ByhEa1BxQOyrOmqg.js @@ -0,0 +1 @@ +return args.item?.attackType == 'melee' \ No newline at end of file diff --git a/scripts/BzDLuxBNw1QNIacg.js b/scripts/BzDLuxBNw1QNIacg.js new file mode 100644 index 0000000..88497b0 --- /dev/null +++ b/scripts/BzDLuxBNw1QNIacg.js @@ -0,0 +1,8 @@ +if (args.item.type == "skill") + args.item.system.advances.value = 0 + +if (args.item.type == "talent") + args.item.system.tests.value = "" + +if (args.item.type == "weapon") + args.item.system.qualities.value = [] \ No newline at end of file diff --git a/scripts/CCK1iIfPmB398ziT.js b/scripts/CCK1iIfPmB398ziT.js new file mode 100644 index 0000000..4d67bea --- /dev/null +++ b/scripts/CCK1iIfPmB398ziT.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Athletics"), {fields : {difficulty : "difficult"}, skipTargets: true, appendTitle : " - Walking"}) +test.roll(); \ No newline at end of file diff --git a/scripts/CCwuu3bPLCpVGAmb.js b/scripts/CCwuu3bPLCpVGAmb.js new file mode 100644 index 0000000..85aa1a1 --- /dev/null +++ b/scripts/CCwuu3bPLCpVGAmb.js @@ -0,0 +1,4 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + + diff --git a/scripts/CDASLC4fWKSGQKf9.js b/scripts/CDASLC4fWKSGQKf9.js new file mode 100644 index 0000000..2432564 --- /dev/null +++ b/scripts/CDASLC4fWKSGQKf9.js @@ -0,0 +1,5 @@ +let blinded = this.actor.hasCondition("blinded"); +if (blinded?.getFlag("wfrp4e", "flockOfDoom")) +{ + blinded.delete(); +} \ No newline at end of file diff --git a/scripts/CHnaBPHk6HdFS512.js b/scripts/CHnaBPHk6HdFS512.js new file mode 100644 index 0000000..6e8536e --- /dev/null +++ b/scripts/CHnaBPHk6HdFS512.js @@ -0,0 +1,6 @@ +let arm = await fromUuid("Compendium.wfrp4e-core.items.MnMZv7ZXoRqoH9dS"); +let leg = await fromUuid("Compendium.wfrp4e-core.items.k00PimCWkff11IA0"); + +let choice = await ItemDialog.create([arm, leg], 1, "Choose Limb") + +this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/CIxZYkHggBQ6EsHP.js b/scripts/CIxZYkHggBQ6EsHP.js new file mode 100644 index 0000000..8034dd7 --- /dev/null +++ b/scripts/CIxZYkHggBQ6EsHP.js @@ -0,0 +1,2 @@ +this.script.scriptNotification("Effect Used"); +this.effect.delete(); \ No newline at end of file diff --git a/scripts/CM43kvw5mIIE1OsB.js b/scripts/CM43kvw5mIIE1OsB.js new file mode 100644 index 0000000..7f1869d --- /dev/null +++ b/scripts/CM43kvw5mIIE1OsB.js @@ -0,0 +1,12 @@ +let key = this.item.system.location.key + +let lostFingers = this.actor.flags.useless[key] || 0; + +lostFingers += 1 + +this.actor.flags.useless[key] = lostFingers; + +if (lostFingers >= 4) +{ + this.actor.flags.useless[key[0] + "Arm"] = true; +} \ No newline at end of file diff --git a/scripts/CMUFtmNA1kkD1ay7.js b/scripts/CMUFtmNA1kkD1ay7.js new file mode 100644 index 0000000..927f0b6 --- /dev/null +++ b/scripts/CMUFtmNA1kkD1ay7.js @@ -0,0 +1,12 @@ +this.actor.getActiveTokens().forEach(t => t.document.update({light : { + "dim": 30, + "bright": 20, + "angle": 90, + "alpha": 0.6, + "animation": { + "speed": 3, + "intensity": 3, + "type": "torch", + }, + "color": "#ffcc66", + }})); \ No newline at end of file diff --git a/scripts/CPQoK7NjzOwVTFXS.js b/scripts/CPQoK7NjzOwVTFXS.js new file mode 100644 index 0000000..eeee877 --- /dev/null +++ b/scripts/CPQoK7NjzOwVTFXS.js @@ -0,0 +1,7 @@ +for(let effect of this.actor.effects.filter(e => e.isCondition)) +{ + if (effect.isCondition) + { + effect.delete(); + } +} \ No newline at end of file diff --git a/scripts/CW5Vlr57OaMkKJ8Q.js b/scripts/CW5Vlr57OaMkKJ8Q.js new file mode 100644 index 0000000..0d5a0a9 --- /dev/null +++ b/scripts/CW5Vlr57OaMkKJ8Q.js @@ -0,0 +1,12 @@ +if (this.actor.system.status.advantage.value >= 3) +{ + this.actor.modifyAdvantage(-3); + this.script.scriptNotification("Advantage Subtracted") +} +else +{ + return this.script.scriptNotification("Not enough Advantage!", "error") +} + +let test = await this.actor.setupTrait(this.item) +await test.roll(); \ No newline at end of file diff --git a/scripts/CWNGrg7se91RC95g.js b/scripts/CWNGrg7se91RC95g.js new file mode 100644 index 0000000..27d7518 --- /dev/null +++ b/scripts/CWNGrg7se91RC95g.js @@ -0,0 +1,11 @@ +if (args.totalWoundLoss > 0) { + args.opposedTest.result.other.push( + `@Corruption[minor]{Moderate Exposure to Corruption}` + ) + this.script.scriptMessage(`${this.effect.name}: + @Corruption[moderate]{Moderate Exposure to Corruption}
+ ${args.actor.prototypeToken.name} must take an + Corruption (Moderate) Test`, + {whisper: ChatMessage.getWhisperRecipients("GM")} + ) +} \ No newline at end of file diff --git a/scripts/Ca1fXHTA1e2QLx0D.js b/scripts/Ca1fXHTA1e2QLx0D.js new file mode 100644 index 0000000..85980bf --- /dev/null +++ b/scripts/Ca1fXHTA1e2QLx0D.js @@ -0,0 +1 @@ +args.fields.modifier += 50; \ No newline at end of file diff --git a/scripts/CiFeduksZJ6PRulx.js b/scripts/CiFeduksZJ6PRulx.js new file mode 100644 index 0000000..8bb32b5 --- /dev/null +++ b/scripts/CiFeduksZJ6PRulx.js @@ -0,0 +1 @@ +return args.skill?.name == "Ride (Horse)" || (args.options.dodge && this.actor.isMounted); \ No newline at end of file diff --git a/scripts/Cjj4iLkdY1NaZRCi.js b/scripts/Cjj4iLkdY1NaZRCi.js new file mode 100644 index 0000000..165854d --- /dev/null +++ b/scripts/Cjj4iLkdY1NaZRCi.js @@ -0,0 +1,26 @@ +if ((args.opposedTest.attackerTest.item && args.opposedTest.attackerTest.item.isMelee) || (args.opposedTest.attackerTest.item && !args.opposedTest.attackerTest.item.name.includes("Ranged"))) +{ + let choice = await Dialog.wait({ + title: this.effect.name, + content: `

Apply damage with ${this.effect.name} to attacker?`, + buttons: { + yes: { + label: "Yes", + callback: () => { + return true; + } + }, + no: { + label: "No", + callback: () => { + return false; + } + } + } + }) + + if (choice) + { + this.script.scriptMessage(await args.attacker.applyBasicDamage(this.actor.system.characteristics.wp.bonus, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true})); + } +} \ No newline at end of file diff --git a/scripts/CkE8NZOhzPkuRrKJ.js b/scripts/CkE8NZOhzPkuRrKJ.js new file mode 100644 index 0000000..d4e519f --- /dev/null +++ b/scripts/CkE8NZOhzPkuRrKJ.js @@ -0,0 +1,14 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.MnMZv7ZXoRqoH9dS") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data]) + + + + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("unconscious") +} \ No newline at end of file diff --git a/scripts/CoImIH9OCMx9DfQZ.js b/scripts/CoImIH9OCMx9DfQZ.js new file mode 100644 index 0000000..d5f9737 --- /dev/null +++ b/scripts/CoImIH9OCMx9DfQZ.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.nbhn2wX35b7Jrcbg") +let data = item.toObject(); +data.system.location.value = "Jaw" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/D5XmzrUGFa1JN0cl.js b/scripts/D5XmzrUGFa1JN0cl.js new file mode 100644 index 0000000..fe0c170 --- /dev/null +++ b/scripts/D5XmzrUGFa1JN0cl.js @@ -0,0 +1,2 @@ +args.prefillModifiers.modifier += 10 + diff --git a/scripts/DANLE5HxrkTNelhl.js b/scripts/DANLE5HxrkTNelhl.js new file mode 100644 index 0000000..e8601ac --- /dev/null +++ b/scripts/DANLE5HxrkTNelhl.js @@ -0,0 +1 @@ +args.wounds += 4; \ No newline at end of file diff --git a/scripts/DBafsY1HrclJRTtA.js b/scripts/DBafsY1HrclJRTtA.js new file mode 100644 index 0000000..b3311bb --- /dev/null +++ b/scripts/DBafsY1HrclJRTtA.js @@ -0,0 +1 @@ +return args.type != "cast" \ No newline at end of file diff --git a/scripts/DHxUKY9LMyifFgCi.js b/scripts/DHxUKY9LMyifFgCi.js new file mode 100644 index 0000000..a9beef0 --- /dev/null +++ b/scripts/DHxUKY9LMyifFgCi.js @@ -0,0 +1 @@ +return args.skill?.name == "Trade (Apothecary)" || args.skill?.name == "Trade (Alchemist)" \ No newline at end of file diff --git a/scripts/DL9vYNft9aXdV2aW.js b/scripts/DL9vYNft9aXdV2aW.js new file mode 100644 index 0000000..ef975b7 --- /dev/null +++ b/scripts/DL9vYNft9aXdV2aW.js @@ -0,0 +1,12 @@ +let tooth = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +tooth = tooth.toObject() +tooth.system.specification.value = 3 +tooth.system.qualities.value = [{name : "magical"}] + +let claw = await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM") +claw = claw.toObject() +claw.system.specification.value = 4 +claw.system.qualities.value = [{name : "magical"}] +claw.name = "Claw" + +this.actor.createEmbeddedDocuments("Item", [tooth, claw], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/DMQ0taEpBUJU5njV.js b/scripts/DMQ0taEpBUJU5njV.js new file mode 100644 index 0000000..8fb1dd8 --- /dev/null +++ b/scripts/DMQ0taEpBUJU5njV.js @@ -0,0 +1 @@ +args.actor.status.fortune.value = 0 \ No newline at end of file diff --git a/scripts/DTiHS6RfwhF4THbf.js b/scripts/DTiHS6RfwhF4THbf.js new file mode 100644 index 0000000..1a7339b --- /dev/null +++ b/scripts/DTiHS6RfwhF4THbf.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Drive") && !args.skill?.name.includes(game.i18n.localize("NAME.Ride")); \ No newline at end of file diff --git a/scripts/DVlZGbiuMIHEQOnM.js b/scripts/DVlZGbiuMIHEQOnM.js new file mode 100644 index 0000000..4395d41 --- /dev/null +++ b/scripts/DVlZGbiuMIHEQOnM.js @@ -0,0 +1,10 @@ +if (this.actor.getFlag("wfrp4e", "isAttached")) +{ + let roll = await new Roll("1d10").roll() + await roll.toMessage(this.script.getChatData()); + if (roll.total == 9 || roll.total == 10) + { + this.script.scriptMessage(`${this.actor.name} attached to ${this.actor.getFlag("wfrp4e", "isAttached")} gorges and falls off.`) + await this.actor.unsetFlag("wfrp4e", "isAttached") + } + } \ No newline at end of file diff --git a/scripts/DWBxvzfWGcG7PVNP.js b/scripts/DWBxvzfWGcG7PVNP.js new file mode 100644 index 0000000..789e83f --- /dev/null +++ b/scripts/DWBxvzfWGcG7PVNP.js @@ -0,0 +1,5 @@ +let letter = this.item.system.location.key[0]; // "l" or "r"; + +this.item.updateSource({"system.location.key" : letter + "Finger"}) + +// We want the location to be Right or Left Hand, but the key to be rFinger or lFinger \ No newline at end of file diff --git a/scripts/DcSJNRBXE9ZBBY7T.js b/scripts/DcSJNRBXE9ZBBY7T.js new file mode 100644 index 0000000..22c294b --- /dev/null +++ b/scripts/DcSJNRBXE9ZBBY7T.js @@ -0,0 +1 @@ +this.actor.addCondition("blinded", Math.max(0, this.effect.sourceTest.result.SL)) \ No newline at end of file diff --git a/scripts/DhZqJso1JWYtGrKk.js b/scripts/DhZqJso1JWYtGrKk.js new file mode 100644 index 0000000..5808036 --- /dev/null +++ b/scripts/DhZqJso1JWYtGrKk.js @@ -0,0 +1,3 @@ +this.actor.addCondition("ablaze") +let damage = this.effect.sourceTest.result.damage + this.effect.sourceTest.result.additionalDamage +this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true})) \ No newline at end of file diff --git a/scripts/DmbWR9s5I8LHBwxB.js b/scripts/DmbWR9s5I8LHBwxB.js new file mode 100644 index 0000000..0875467 --- /dev/null +++ b/scripts/DmbWR9s5I8LHBwxB.js @@ -0,0 +1,14 @@ +let column = await ValueDialog.create("Select the column to roll on to determine Beast Head", "Select Column", "", ["Undivided", "Khorne", "Nurgle", "Slaanesh", "Tzeentch"]); + +if (column) +{ + let result = await game.wfrp4e.tables.rollTable("beasthead", {}, column); + this.script.scriptMessage(`${result.title}
${result.result}`); + let uuid = `Compendium.${result.object.documentCollection}.${result.object.documentId}`; + let item = await fromUuid(uuid); + if (item) + { + this.actor.createEmbeddedDocuments("Item", [item]) + this.item.delete(); + } +} \ No newline at end of file diff --git a/scripts/DpdSEHM6NMN1ey6h.js b/scripts/DpdSEHM6NMN1ey6h.js new file mode 100644 index 0000000..aa9268a --- /dev/null +++ b/scripts/DpdSEHM6NMN1ey6h.js @@ -0,0 +1,4 @@ +if (parseInt(this.item.system.specification.value) > 0) +{ + this.actor.system.status.ward.value = parseInt(this.item.system.specification.value); +} \ No newline at end of file diff --git a/scripts/DqJFo74trI916qXN.js b/scripts/DqJFo74trI916qXN.js new file mode 100644 index 0000000..a2791f0 --- /dev/null +++ b/scripts/DqJFo74trI916qXN.js @@ -0,0 +1,3 @@ +let fatigued = args.actor.hasCondition("fatigued") +if (fatigued) + setProperty(fatigued, "flags.wfrp4e.scriptData", getProperty(fatigued, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) \ No newline at end of file diff --git a/scripts/DsE6rTSzxEn6uWMz.js b/scripts/DsE6rTSzxEn6uWMz.js new file mode 100644 index 0000000..63b87e9 --- /dev/null +++ b/scripts/DsE6rTSzxEn6uWMz.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "average"}}) +await test.roll(); +if (test.failed) +{ + await this.actor.addCondition("blinded"); + await this.actor.addCondition("fatigued") +} \ No newline at end of file diff --git a/scripts/DuM5l2Yb4bdvDeaG.js b/scripts/DuM5l2Yb4bdvDeaG.js new file mode 100644 index 0000000..ddbd4db --- /dev/null +++ b/scripts/DuM5l2Yb4bdvDeaG.js @@ -0,0 +1 @@ +return args.skill?.name != "Athletics" \ No newline at end of file diff --git a/scripts/DxQnamsb2AuW0p2e.js b/scripts/DxQnamsb2AuW0p2e.js new file mode 100644 index 0000000..fbdcd2f --- /dev/null +++ b/scripts/DxQnamsb2AuW0p2e.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Lore")); \ No newline at end of file diff --git a/scripts/DyZ1jH88EAp1ueOK.js b/scripts/DyZ1jH88EAp1ueOK.js new file mode 100644 index 0000000..3b86fbc --- /dev/null +++ b/scripts/DyZ1jH88EAp1ueOK.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.GlShFJF2TpsNh1FX") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +data.system.location.value = data.system.location.value.replace("Arm", "Wrist") +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) diff --git a/scripts/E1Xo4RVuN1YRRxg7.js b/scripts/E1Xo4RVuN1YRRxg7.js new file mode 100644 index 0000000..d6efa41 --- /dev/null +++ b/scripts/E1Xo4RVuN1YRRxg7.js @@ -0,0 +1 @@ +return args.item?.attackType != "ranged" \ No newline at end of file diff --git a/scripts/E1vUepgop09FF5wy.js b/scripts/E1vUepgop09FF5wy.js new file mode 100644 index 0000000..3da19b7 --- /dev/null +++ b/scripts/E1vUepgop09FF5wy.js @@ -0,0 +1,22 @@ +if (this.actor.system.status.advantage.value == 0) +{ + return this.script.scriptNotification("Not enough Advantage!", "error") +} + +let hatred = await fromUuid("Compendium.wfrp4e-core.items.Item.aE3pyW20Orvdjzj0") +let frenzy = await fromUuid("Compendium.wfrp4e-core.items.Item.yRhhOlt18COq4e1q"); + +if (this.actor.system.status.advantage.value >= 3) +{ + this.script.scriptNotification(`Adding ${frenzy.name}`) + this.actor.setAdvantage(0) + this.actor.createEmbeddedDocuments("Item", [frenzy]) +} +else if (this.actor.system.status.advantage.value >= 1) +{ + let data = hatred.toObject(); + data.system.specification.value = "Close Combat opponents" + this.script.scriptNotification(`Adding ${hatred.name}`) + this.actor.setAdvantage(0) + this.actor.createEmbeddedDocuments("Item", [data]) +} \ No newline at end of file diff --git a/scripts/E2VfOVuju67qO3VL.js b/scripts/E2VfOVuju67qO3VL.js new file mode 100644 index 0000000..200ae8f --- /dev/null +++ b/scripts/E2VfOVuju67qO3VL.js @@ -0,0 +1,5 @@ +let blinded = this.actor.hasCondition("blinded"); +if (blinded.getFlag("wfrp4e", "nightshroud")) +{ + blinded.delete() +} \ No newline at end of file diff --git a/scripts/E4CHDe1xfmcV3oGv.js b/scripts/E4CHDe1xfmcV3oGv.js new file mode 100644 index 0000000..c1e0400 --- /dev/null +++ b/scripts/E4CHDe1xfmcV3oGv.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Navigation"); \ No newline at end of file diff --git a/scripts/E6DMqfDeczqmVMFV.js b/scripts/E6DMqfDeczqmVMFV.js new file mode 100644 index 0000000..2a0bc28 --- /dev/null +++ b/scripts/E6DMqfDeczqmVMFV.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "average"}}) + +await test.roll(); \ No newline at end of file diff --git a/scripts/E7D4bxz8gy4e1wL7.js b/scripts/E7D4bxz8gy4e1wL7.js new file mode 100644 index 0000000..ec82dce --- /dev/null +++ b/scripts/E7D4bxz8gy4e1wL7.js @@ -0,0 +1 @@ +if (["Stealth (Rural)", "Track", "Outdoor Survival", "Swim", "Perception", "Intuition"].includes(args.item?.name)) \ No newline at end of file diff --git a/scripts/EGWF3LHav3e2zFL4.js b/scripts/EGWF3LHav3e2zFL4.js new file mode 100644 index 0000000..cb217a7 --- /dev/null +++ b/scripts/EGWF3LHav3e2zFL4.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Ranged")) || args.item?.isRanged || args.item?.name == game.i18n.localize("NAME.Charm"); \ No newline at end of file diff --git a/scripts/EJObiSth3WdcJOXN.js b/scripts/EJObiSth3WdcJOXN.js new file mode 100644 index 0000000..a98ecba --- /dev/null +++ b/scripts/EJObiSth3WdcJOXN.js @@ -0,0 +1,5 @@ +if (args.test.characteristicKey == "wp" && args.test.failed && args.test.result.SL <= -3) +{ + this.script.scriptNotification("Adding Prone"); + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/EJaBfqADqlo92Fx6.js b/scripts/EJaBfqADqlo92Fx6.js new file mode 100644 index 0000000..9fd2959 --- /dev/null +++ b/scripts/EJaBfqADqlo92Fx6.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.oGbDwnLOn3isPJpO") +let data = item.toObject(); +data.name += " (To Be Determined)" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/EKkdyp51Wf4csw2B.js b/scripts/EKkdyp51Wf4csw2B.js new file mode 100644 index 0000000..e3d745d --- /dev/null +++ b/scripts/EKkdyp51Wf4csw2B.js @@ -0,0 +1 @@ +return this.actor.statuses.has("frenzy"); \ No newline at end of file diff --git a/scripts/ENGmwaItRXO5s0XY.js b/scripts/ENGmwaItRXO5s0XY.js new file mode 100644 index 0000000..0a79fa7 --- /dev/null +++ b/scripts/ENGmwaItRXO5s0XY.js @@ -0,0 +1,5 @@ +await this.actor.modifyWounds(this.actor.system.characteristics.t.bonus * 3) +this.script.scriptMessage(`Heals ${this.actor.system.characteristics.t.bonus * 3} Wounds`) + +this.actor.hasCondition("bleeding")?.delete() +this.actor.hasCondition("fatigued")?.delete() diff --git a/scripts/EQ5dtGW5kQhtAb87.js b/scripts/EQ5dtGW5kQhtAb87.js new file mode 100644 index 0000000..767e730 --- /dev/null +++ b/scripts/EQ5dtGW5kQhtAb87.js @@ -0,0 +1,7 @@ +await this.actor.addCondition("prone") +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty : "hard"}, skipTargets: true, appendTitle : " - " + this.effect.name}) +await test.roll(); +if (test.failed) +{ + await this.actor.addCondition("stunned") +} \ No newline at end of file diff --git a/scripts/ERxrWzSpw8qwxFVi.js b/scripts/ERxrWzSpw8qwxFVi.js new file mode 100644 index 0000000..e0eaff5 --- /dev/null +++ b/scripts/ERxrWzSpw8qwxFVi.js @@ -0,0 +1 @@ +this.script.scriptNotification(`Cannot enter ${this.effect.name}!`); this.actor.addCondition("broken"); \ No newline at end of file diff --git a/scripts/EU5j0hnDTG9Z6d1e.js b/scripts/EU5j0hnDTG9Z6d1e.js new file mode 100644 index 0000000..82d6a1d --- /dev/null +++ b/scripts/EU5j0hnDTG9Z6d1e.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}) +await test.roll(); +if(test.failed) +{ + this.actor.addCondition("stunned", 2) +} \ No newline at end of file diff --git a/scripts/EVBSHEC5nmmj2X41.js b/scripts/EVBSHEC5nmmj2X41.js new file mode 100644 index 0000000..c08a5ea --- /dev/null +++ b/scripts/EVBSHEC5nmmj2X41.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Climb") && !args.skill?.name?.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/EYny6z5oTOhxGDfb.js b/scripts/EYny6z5oTOhxGDfb.js new file mode 100644 index 0000000..087904f --- /dev/null +++ b/scripts/EYny6z5oTOhxGDfb.js @@ -0,0 +1 @@ +args.fields.modifier -= 10; diff --git a/scripts/EaSNOmXUxAkUHnm5.js b/scripts/EaSNOmXUxAkUHnm5.js new file mode 100644 index 0000000..89a428d --- /dev/null +++ b/scripts/EaSNOmXUxAkUHnm5.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/Eay7GpDyfsEE40jT.js b/scripts/Eay7GpDyfsEE40jT.js new file mode 100644 index 0000000..14f4feb --- /dev/null +++ b/scripts/Eay7GpDyfsEE40jT.js @@ -0,0 +1,4 @@ +if (args.totalWoundLoss > 0) +{ + args.actor.addCondition("ablaze") +} \ No newline at end of file diff --git a/scripts/EdTChmSouS0MSmk5.js b/scripts/EdTChmSouS0MSmk5.js new file mode 100644 index 0000000..b5c9aed --- /dev/null +++ b/scripts/EdTChmSouS0MSmk5.js @@ -0,0 +1,10 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.succeeded) +{ + this.script.scriptMessage("Can perform an Action or Move (choose one)") +} +else +{ + this.script.scriptMessage("Cannot perform an Action or Move this round") +} \ No newline at end of file diff --git a/scripts/EiLaZW4b4ypw5sLV.js b/scripts/EiLaZW4b4ypw5sLV.js new file mode 100644 index 0000000..7761e61 --- /dev/null +++ b/scripts/EiLaZW4b4ypw5sLV.js @@ -0,0 +1,2 @@ +// can't use Damage application type because that checks if wounds were dealt +args.actor.applyEffect({effectUuids : this.item.effects.contents[0].uuid}) \ No newline at end of file diff --git a/scripts/EmXwcuycEH8slEn5.js b/scripts/EmXwcuycEH8slEn5.js new file mode 100644 index 0000000..4bd0b62 --- /dev/null +++ b/scripts/EmXwcuycEH8slEn5.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}) +await test.roll(); +if(test.failed) +{ + this.actor.addCondition("unconscious") +} \ No newline at end of file diff --git a/scripts/EmmG49pMOPHRwDzR.js b/scripts/EmmG49pMOPHRwDzR.js new file mode 100644 index 0000000..8c92354 --- /dev/null +++ b/scripts/EmmG49pMOPHRwDzR.js @@ -0,0 +1,8 @@ + let roll = Math.ceil(CONFIG.Dice.randomUniform() * 10) + if (args.test.isFumble && roll == 1 && !args.test.result.misfire) + { + args.test.result.misfire = game.i18n.localize("Misfire") + " (Rolled 1)" + args.test.result.misfireDamage = eval(parseInt(args.test.result.roll.toString().split('').pop()) + args.test.item.Damage) + } + else if (args.test.isFumble && roll != 1) + args.test.result.other.push("Misfire Roll: " + roll) diff --git a/scripts/EpdMj9d9SYPeP44q.js b/scripts/EpdMj9d9SYPeP44q.js new file mode 100644 index 0000000..ebf9773 --- /dev/null +++ b/scripts/EpdMj9d9SYPeP44q.js @@ -0,0 +1 @@ +return args.characteristic != "ag" && args.item?.id != this.item?.id \ No newline at end of file diff --git a/scripts/ErgOwSiVnm9VLVHN.js b/scripts/ErgOwSiVnm9VLVHN.js new file mode 100644 index 0000000..f81a403 --- /dev/null +++ b/scripts/ErgOwSiVnm9VLVHN.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.DrNUTPeodEgpWTnT") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/Et4tPHlrkueLqP3T.js b/scripts/Et4tPHlrkueLqP3T.js new file mode 100644 index 0000000..46d8efd --- /dev/null +++ b/scripts/Et4tPHlrkueLqP3T.js @@ -0,0 +1 @@ +if (args.item.type == "skill") args.item.system.modifier.value -= 10 \ No newline at end of file diff --git a/scripts/Ew3C2WmLCtc1KT46.js b/scripts/Ew3C2WmLCtc1KT46.js new file mode 100644 index 0000000..9e8991b --- /dev/null +++ b/scripts/Ew3C2WmLCtc1KT46.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Stealth")) || args.item?.id == this.item?.id \ No newline at end of file diff --git a/scripts/EwD053Fyy46b59ZI.js b/scripts/EwD053Fyy46b59ZI.js new file mode 100644 index 0000000..4512a9a --- /dev/null +++ b/scripts/EwD053Fyy46b59ZI.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.6l3jvIAvrKxt0lA9"); +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/Eye6dranWpNsILjm.js b/scripts/Eye6dranWpNsILjm.js new file mode 100644 index 0000000..917fad5 --- /dev/null +++ b/scripts/Eye6dranWpNsILjm.js @@ -0,0 +1,4 @@ +if (this.actor.system.status.wounds.value <= 1) +{ + this.effect.delete(); +} \ No newline at end of file diff --git a/scripts/F4aGsdzJ9SYcX57F.js b/scripts/F4aGsdzJ9SYcX57F.js new file mode 100644 index 0000000..57eb47b --- /dev/null +++ b/scripts/F4aGsdzJ9SYcX57F.js @@ -0,0 +1,10 @@ +if (args.equipped) +{ + let item = await fromUuid("Compendium.wfrp4e-core.items.HpFkVJ2lYPAWumUL") + let data = item.toObject(); + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) +} +else +{ + this.effect.deleteCreatedItems(); +} \ No newline at end of file diff --git a/scripts/FAB12eLcSCAOOQwk.js b/scripts/FAB12eLcSCAOOQwk.js new file mode 100644 index 0000000..4e92511 --- /dev/null +++ b/scripts/FAB12eLcSCAOOQwk.js @@ -0,0 +1 @@ +this.script.scirptMessage(await this.actor.applyBasicDamage(20, {suppressMsg: true}); \ No newline at end of file diff --git a/scripts/FAf4iXj5LkdvukS2.js b/scripts/FAf4iXj5LkdvukS2.js new file mode 100644 index 0000000..a39a05c --- /dev/null +++ b/scripts/FAf4iXj5LkdvukS2.js @@ -0,0 +1 @@ +fromUuid("Compendium.wfrp4e-wom.items.0Xdm4r7l2EwC4fcg").then(item => Item.create(item.toObject(), {fromEffect : this.effect.id, parent : this.actor})) \ No newline at end of file diff --git a/scripts/FMA16PvoObBV8vDl.js b/scripts/FMA16PvoObBV8vDl.js new file mode 100644 index 0000000..873a4f2 --- /dev/null +++ b/scripts/FMA16PvoObBV8vDl.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.EO05HX7jql0g605A") +item = item.toObject() +item.system.specification.value = 20 +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) +this.script.scriptNotification(item.name + " added") \ No newline at end of file diff --git a/scripts/FMSN5uRskkATexzB.js b/scripts/FMSN5uRskkATexzB.js new file mode 100644 index 0000000..913a79d --- /dev/null +++ b/scripts/FMSN5uRskkATexzB.js @@ -0,0 +1 @@ +game.wfrp4e.tables.rollToChat("crithead") \ No newline at end of file diff --git a/scripts/FSqUqSByMiztYOQM.js b/scripts/FSqUqSByMiztYOQM.js new file mode 100644 index 0000000..5bf62e7 --- /dev/null +++ b/scripts/FSqUqSByMiztYOQM.js @@ -0,0 +1,2 @@ +if (args.totalWoundLoss > 0) + this.script.scriptMessage(`Infected: ${args.actor.name} must pass an Easy (+40) Endurance Test or gain a @UUID[Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb]{Festering Wound}`, {whisper: ChatMessage.getWhisperRecipients("GM") }) \ No newline at end of file diff --git a/scripts/FUgCtIoj1Stgqxt7.js b/scripts/FUgCtIoj1Stgqxt7.js new file mode 100644 index 0000000..acd0a25 --- /dev/null +++ b/scripts/FUgCtIoj1Stgqxt7.js @@ -0,0 +1 @@ +return !["ws", "bs", "s", "ag", "t", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/FXuyiJoXdAh6WhRK.js b/scripts/FXuyiJoXdAh6WhRK.js new file mode 100644 index 0000000..6e7b684 --- /dev/null +++ b/scripts/FXuyiJoXdAh6WhRK.js @@ -0,0 +1 @@ +return args.skill?.name == "Ride (Horse)" && game.combat?.active \ No newline at end of file diff --git a/scripts/FXwfqF0jpXlBQ9Y3.js b/scripts/FXwfqF0jpXlBQ9Y3.js new file mode 100644 index 0000000..31fa389 --- /dev/null +++ b/scripts/FXwfqF0jpXlBQ9Y3.js @@ -0,0 +1 @@ +return args.item?.system?.isMelee && this.actor.attacker \ No newline at end of file diff --git a/scripts/FYUPfYyTYZkxRLFT.js b/scripts/FYUPfYyTYZkxRLFT.js new file mode 100644 index 0000000..35e86d3 --- /dev/null +++ b/scripts/FYUPfYyTYZkxRLFT.js @@ -0,0 +1 @@ +return !["NAME.Endurance", "NAME.Cool"].map(i => game.i18n.localize(i)).includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/FZFOC7bip0oiWEzk.js b/scripts/FZFOC7bip0oiWEzk.js new file mode 100644 index 0000000..11e7cfd --- /dev/null +++ b/scripts/FZFOC7bip0oiWEzk.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == this.item.system.location.key && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 2); + this.script.scriptNotification("Added Bleeding") +} \ No newline at end of file diff --git a/scripts/FciJSTq7dZsZIPgl.js b/scripts/FciJSTq7dZsZIPgl.js new file mode 100644 index 0000000..0da31e8 --- /dev/null +++ b/scripts/FciJSTq7dZsZIPgl.js @@ -0,0 +1,10 @@ +if (args.equipped) +{ + let item = await fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR") + let data = item.toObject(); + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) +} +else +{ + this.effect.deleteCreatedItems(); +} \ No newline at end of file diff --git a/scripts/FfTqCPxCoxwGDTQs.js b/scripts/FfTqCPxCoxwGDTQs.js new file mode 100644 index 0000000..bc75552 --- /dev/null +++ b/scripts/FfTqCPxCoxwGDTQs.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.wMwSRDmgiF2IdCJr") +let data = item.toObject() +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) diff --git a/scripts/FiD3mvWIBHNNIuO9.js b/scripts/FiD3mvWIBHNNIuO9.js new file mode 100644 index 0000000..f9fadbe --- /dev/null +++ b/scripts/FiD3mvWIBHNNIuO9.js @@ -0,0 +1,8 @@ +if (args.opposedTest.result.hitloc.value == "body") +{ + if ((await new Roll("1d2").roll()).total == 1) + { + args.opposedTest.result.hitloc.value = "head" + this.script.scriptMessage(`Hit location changed to Head`) + } +} \ No newline at end of file diff --git a/scripts/FkTwk8hfHpRLbAp2.js b/scripts/FkTwk8hfHpRLbAp2.js new file mode 100644 index 0000000..cd051cb --- /dev/null +++ b/scripts/FkTwk8hfHpRLbAp2.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/FmLx9pwOkzqqU7Ph.js b/scripts/FmLx9pwOkzqqU7Ph.js new file mode 100644 index 0000000..c54d1df --- /dev/null +++ b/scripts/FmLx9pwOkzqqU7Ph.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Track"); \ No newline at end of file diff --git a/scripts/FqevMs0ukQ9WuUHl.js b/scripts/FqevMs0ukQ9WuUHl.js new file mode 100644 index 0000000..d352c76 --- /dev/null +++ b/scripts/FqevMs0ukQ9WuUHl.js @@ -0,0 +1,9 @@ +// Each time the blade is used, the GM should secretly roll a d10. +// On a 1, its poison has run dry, +// and the next time it is employed it will shatter. + +if (this.item.getFlag("wfrp4e", "brittle")) +{ + ChatMessage.create({content: `${this.item.name} shatters!`}) + this.item.update({name : `${this.item.name} (Shattered)`}) +} \ No newline at end of file diff --git a/scripts/Fvlc4RkeF4dHjW3m.js b/scripts/Fvlc4RkeF4dHjW3m.js new file mode 100644 index 0000000..1fc9418 --- /dev/null +++ b/scripts/Fvlc4RkeF4dHjW3m.js @@ -0,0 +1,16 @@ +let caster = this.effect.sourceActor +if (caster && (this.actor.has(game.i18n.localize("NAME.Undead")) || this.actor.has(game.i18n.localize("NAME.Daemonic")))) { + let wp = caster.system.characteristics.wp.value + if (wp > this.actor.system.characteristics.t.value) { + if (this.actor.has(game.i18n.localize("NAME.Unstable"))) { + this.actor.update({ "system.status.wounds.value": 0 }) + this.actor.addCondition("dead") + } + else { + fromUuid("Compendium.wfrp4e-core.items.D0ImWEIMSDgElsnl").then(item => { + this.actor.createEmbeddedDocuments("Item", [item.toObject()], { fromEffect: this.effect.id }) + ChatMessage.create({ content: `Added Unstable to ${this.actor.prototypeToken.name}`, speaker: { alias: caster.name } }) + }) + } + } +} \ No newline at end of file diff --git a/scripts/G1RletYc6BzigJrK.js b/scripts/G1RletYc6BzigJrK.js new file mode 100644 index 0000000..24f4082 --- /dev/null +++ b/scripts/G1RletYc6BzigJrK.js @@ -0,0 +1,2 @@ +let ablaze = parseInt(this.effect.sourceTest.result.SL) + 5 +args.actor.addCondition("ablaze", ablaze) \ No newline at end of file diff --git a/scripts/G7sFEnJlXZvfXL3V.js b/scripts/G7sFEnJlXZvfXL3V.js new file mode 100644 index 0000000..758b802 --- /dev/null +++ b/scripts/G7sFEnJlXZvfXL3V.js @@ -0,0 +1,12 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + let effectData = this.item.effects.contents[1].convertToApplied(); + effectData.flags.wfrp4e.sourceItem = this.item.uuid + actor.applyEffect({effectData : [effectData]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/GAO8AozttWOyRkta.js b/scripts/GAO8AozttWOyRkta.js new file mode 100644 index 0000000..796ff24 --- /dev/null +++ b/scripts/GAO8AozttWOyRkta.js @@ -0,0 +1,5 @@ +if (!args.flags.lostHand) +{ + args.fields.lostHand = true; + args.fields.modifier += -20; +} \ No newline at end of file diff --git a/scripts/GEfWIFBSrXt0ldBM.js b/scripts/GEfWIFBSrXt0ldBM.js new file mode 100644 index 0000000..b4de7ed --- /dev/null +++ b/scripts/GEfWIFBSrXt0ldBM.js @@ -0,0 +1,2 @@ +(await new Roll("1d10").roll()).toMessage(this.script.getChatData()) +await this.actor.addCondition("dead") \ No newline at end of file diff --git a/scripts/GFaTz8f6PBNWrlad.js b/scripts/GFaTz8f6PBNWrlad.js new file mode 100644 index 0000000..509844b --- /dev/null +++ b/scripts/GFaTz8f6PBNWrlad.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure : `Confused: Determine behaviour by @Table[bewilder] Table.`}}) +await test.roll(); +return test.failed \ No newline at end of file diff --git a/scripts/GFkVnx4m9OwYsKGH.js b/scripts/GFkVnx4m9OwYsKGH.js new file mode 100644 index 0000000..864fe17 --- /dev/null +++ b/scripts/GFkVnx4m9OwYsKGH.js @@ -0,0 +1 @@ +args.actor.flags.ambi+= 1 \ No newline at end of file diff --git a/scripts/GNl5Zk7BZ2jhRV1I.js b/scripts/GNl5Zk7BZ2jhRV1I.js new file mode 100644 index 0000000..fca7f72 --- /dev/null +++ b/scripts/GNl5Zk7BZ2jhRV1I.js @@ -0,0 +1,4 @@ +if (args.item.type == "armour") +{ + args.item.system.AP.head = 0; +} \ No newline at end of file diff --git a/scripts/GOq4TcnWbfyfCo2V.js b/scripts/GOq4TcnWbfyfCo2V.js new file mode 100644 index 0000000..3a51404 --- /dev/null +++ b/scripts/GOq4TcnWbfyfCo2V.js @@ -0,0 +1,26 @@ +this.script.scriptNotification(`Healed ${this.actor.characteristics.t.bonus * 2} Wounds`) +await this.actor.modifyWounds(this.actor.characteristics.t.bonus * 2) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - Side Effects`,fields : {difficulty : "difficult"}}) +await test.roll(); +if (test.failed) +{ + let roll = await new Roll("1d10").roll(); + await roll.toMessage(this.script.getChatData()) + if (roll.total <= 3) + { + this.actor.addCondition("blinded", 3) + } + else if (roll.total <= 6) + { + this.actor.addCondition("broken"); + } + else if (roll.total <= 9) + { + this.actor.addCondition("stunned"); + } + else if (roll.total == 10) + { + this.actor.addConditon("unconscious") + } +} \ No newline at end of file diff --git a/scripts/GRfCxtYzmEx2LYU7.js b/scripts/GRfCxtYzmEx2LYU7.js new file mode 100644 index 0000000..dcc7340 --- /dev/null +++ b/scripts/GRfCxtYzmEx2LYU7.js @@ -0,0 +1,9 @@ +if (args.totalWoundLoss >= 1) +{ + let roll = await new Roll("1d10").roll(); + await roll.toMessage(this.script.getChatData()); + if (roll.total == 9) + { + this.script.scriptMessage(`Two @UUID[Compendium.wfrp4e-eis.actors.iDy8SDTwJSlCzZMl]{Blue Horror of Tzeentch} claw their way out of ${this.actor.name}'s screaming flesh, killing them in the process.`, {whisper : ChatMessage.getWhisperRecipients("GM")}) + } +} \ No newline at end of file diff --git a/scripts/GTZUO73pUJKpM1JB.js b/scripts/GTZUO73pUJKpM1JB.js new file mode 100644 index 0000000..3d99c30 --- /dev/null +++ b/scripts/GTZUO73pUJKpM1JB.js @@ -0,0 +1,3 @@ + let roll = await new Roll("1d10").roll(); + game.dice3d?.showForRoll(roll); + this.script.scriptMessage(await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true})) diff --git a/scripts/GUkpYdPwoC5pc9BT.js b/scripts/GUkpYdPwoC5pc9BT.js new file mode 100644 index 0000000..160e012 --- /dev/null +++ b/scripts/GUkpYdPwoC5pc9BT.js @@ -0,0 +1 @@ +return !args.weapon?.system.properties.flaws.crewed \ No newline at end of file diff --git a/scripts/GZFsuynUhgZqwTGo.js b/scripts/GZFsuynUhgZqwTGo.js new file mode 100644 index 0000000..bf5a7a7 --- /dev/null +++ b/scripts/GZFsuynUhgZqwTGo.js @@ -0,0 +1,10 @@ +if (args.totalWoundLoss >= 1) +{ + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context: { failure: "Gained a Poisoned Condition", success: "Resisted the poison" }}) + await test.roll(); + if (test.failed) + { + args.actor.addCondition("poisoned"); + } +} + \ No newline at end of file diff --git a/scripts/GbPEy22VuCNzlNv2.js b/scripts/GbPEy22VuCNzlNv2.js new file mode 100644 index 0000000..be6b4de --- /dev/null +++ b/scripts/GbPEy22VuCNzlNv2.js @@ -0,0 +1 @@ +return !this.actor.isMounted || (!args.skill?.name?.includes(game.i18n.localize("NAME.Ride")) && !args.options.dodge) \ No newline at end of file diff --git a/scripts/Gc8S5TYlVdV8NnOT.js b/scripts/Gc8S5TYlVdV8NnOT.js new file mode 100644 index 0000000..154ee3e --- /dev/null +++ b/scripts/Gc8S5TYlVdV8NnOT.js @@ -0,0 +1,8 @@ +let test = await args.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name, context: { failure: "Gained a Broken Condition", success: "Resisted the Broken Condition" } }) + + await test.roll(); + + if (!test.succeeded) + { + args.actor.addCondition("broken"); + } \ No newline at end of file diff --git a/scripts/GcIQtshex11AMmh2.js b/scripts/GcIQtshex11AMmh2.js new file mode 100644 index 0000000..793a7a8 --- /dev/null +++ b/scripts/GcIQtshex11AMmh2.js @@ -0,0 +1,25 @@ +if (this.item.system.isEquipped) +{ + let removeRepeater = false + if(!this.item.system.offhand.value) // main + { + let offhandUsed = this.actor.itemTypes.weapon.find(i => i.system.isEquipped && i.system.offhand.value) + if (offhandUsed) + { + removeRepeater = true; + } + } + else // offhand + { + let mainhandUsed = this.actor.itemTypes.weapon.find(i => i.system.isEquipped && !i.system.offhand.value) + if (mainhandUsed) + { + removeRepeater = true; + } + } + + if (removeRepeater) + { + this.item.system.qualities.value = this.item.system.qualities.value.filter(i => i.name != "repeater") + } +} \ No newline at end of file diff --git a/scripts/Gh7OidY6UdpWBS1g.js b/scripts/Gh7OidY6UdpWBS1g.js new file mode 100644 index 0000000..85ee2d0 --- /dev/null +++ b/scripts/Gh7OidY6UdpWBS1g.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.KII1gWnxIZ8HzmU5") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/GjkxWj9wCAclM9WA.js b/scripts/GjkxWj9wCAclM9WA.js new file mode 100644 index 0000000..6fefe6d --- /dev/null +++ b/scripts/GjkxWj9wCAclM9WA.js @@ -0,0 +1,17 @@ +let effects = foundry.utils.deepClone(this.item.effects.contents.filter(e => e.active)); + +effects.splice(effects.length - 1); + +if (effects.length == 0) +{ + return this.script.scriptNotification("All Effects have been used. Reset to select them again") +} +let choice = await ItemDialog.create(effects, 1, "Choose Power to Gain"); + +if (choice[0]) +{ + choice[0].update({disabled : true}) + let effect = choice[0].convertToApplied(); + effect.name += ` (${this.effect.name})` + this.actor.createEmbeddedDocuments("ActiveEffect", [effect]); +} \ No newline at end of file diff --git a/scripts/GrF6tQ08jgKmUH4i.js b/scripts/GrF6tQ08jgKmUH4i.js new file mode 100644 index 0000000..356b70b --- /dev/null +++ b/scripts/GrF6tQ08jgKmUH4i.js @@ -0,0 +1 @@ +return !["ws", "bs", "s", "ag", "i"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/GuUCErVbk5hrFzR3.js b/scripts/GuUCErVbk5hrFzR3.js new file mode 100644 index 0000000..85bf7f6 --- /dev/null +++ b/scripts/GuUCErVbk5hrFzR3.js @@ -0,0 +1 @@ +args.multiplier.tb += 1 \ No newline at end of file diff --git a/scripts/GuxbvztcvzJz2oH1.js b/scripts/GuxbvztcvzJz2oH1.js new file mode 100644 index 0000000..fb1c17c --- /dev/null +++ b/scripts/GuxbvztcvzJz2oH1.js @@ -0,0 +1 @@ +args.item.system.qualities.value = []; \ No newline at end of file diff --git a/scripts/GzSFlqL1YrIK1dxh.js b/scripts/GzSFlqL1YrIK1dxh.js new file mode 100644 index 0000000..1f5a252 --- /dev/null +++ b/scripts/GzSFlqL1YrIK1dxh.js @@ -0,0 +1,16 @@ +let items = await Promise.all(["Compendium.wfrp4e-wom.items.Item.EjGYZ4CgX2jZW7Ot", +"Compendium.wfrp4e-wom.items.Item.O2v9RQiFf0obskP5", +"Compendium.wfrp4e-wom.items.Item.2cv6hhZ57iV6z5Il", +"Compendium.wfrp4e-wom.items.Item.YgDEUO0G0XcqQJqg", +"Compendium.wfrp4e-wom.items.Item.J6K5TPxI8qIGQKKH", +"Compendium.wfrp4e-wom.items.Item.K9FPtiDLwTkC7FuO", +"Compendium.wfrp4e-wom.items.Item.CkMYRYCLrkMnyVm5", +"Compendium.wfrp4e-wom.items.Item.0Xdm4r7l2EwC4fcg"].map(fromUuid)); + +let choice = await game.wfrp4e.apps.ItemDialog.create(items, 1, "Select Wind") +//this.actor.createEmbeddedDocuments("Item", items); + +this.item.update(choice[0]?.toObject(), {diff: false, recursive : false}); + +//this.actor.items.getName(this.effect.item.name).delete() // For some reason this.effect.item.delete() throws an error + diff --git a/scripts/GzsuEg7gZy1f0ljy.js b/scripts/GzsuEg7gZy1f0ljy.js new file mode 100644 index 0000000..3220372 --- /dev/null +++ b/scripts/GzsuEg7gZy1f0ljy.js @@ -0,0 +1,10 @@ +let bleeding = this.actor.hasCondition("bleeding") +if (bleeding) +{ + this.script.scriptNotification(`Cleared ${bleeding.conditionValue} Bleeding Conditions`) + bleeding.delete(); +} +else +{ + this.script.scriptNotification(`No Bleeding Conditions`) +} \ No newline at end of file diff --git a/scripts/H06Ysj7oPiemW7S6.js b/scripts/H06Ysj7oPiemW7S6.js new file mode 100644 index 0000000..8c3872b --- /dev/null +++ b/scripts/H06Ysj7oPiemW7S6.js @@ -0,0 +1,18 @@ +if (args.test.options.income && !args.test.options.criminal) +{ + args.test.options.criminal = true; + let currentCareer = args.test.actor.system.currentCareer; + let coin = {1 : "b", 2 : "s", 3 : "s", 4 : "g"}[currentCareer.system.level.value] // b, s, or g maps to 2d10, 1d10, or 1 respectively (takes the first letter) + let term = {1 : "bp", 2 : "ss", 3 : "ss", 4 : "gc"}[currentCareer.system.level.value] // b, s, or g maps to 2d10, 1d10, or 1 respectively (takes the first letter) + let dieAmount = {1 : "2d10", 2 : "1d10", 3 : "2d10", 4 : "1"}[currentCareer.system.level.value] // b, s, or g maps to 2d10, 1d10, or 1 respectively (takes the first letter) + dieAmount = parseInt(dieAmount[0]) * this.item.system.Advances; // Multilpy that first letter by your standing (Brass 4 = 8d10 pennies) + if (coin != "g") // Don't roll for gold, just use standing value + { + dieAmount = dieAmount + "d10"; + } + let moneyEarned = (await new Roll(dieAmount.toString()).roll()).total; + let moneyString = `${moneyEarned}${coin}` + let transactionString = `${moneyEarned}${term}` + + this.script.scriptMessage(`Earned an additional ${game.wfrp4e.market.amountToString(game.wfrp4e.market.parseMoneyTransactionString(transactionString))}`, {whisper : ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/H1z3nWW7Rj3Oisxy.js b/scripts/H1z3nWW7Rj3Oisxy.js new file mode 100644 index 0000000..a7b8f33 --- /dev/null +++ b/scripts/H1z3nWW7Rj3Oisxy.js @@ -0,0 +1 @@ +return args.type != "channelling" \ No newline at end of file diff --git a/scripts/H2CJvApKMnfGNNoo.js b/scripts/H2CJvApKMnfGNNoo.js new file mode 100644 index 0000000..60892cb --- /dev/null +++ b/scripts/H2CJvApKMnfGNNoo.js @@ -0,0 +1,7 @@ + if (args.test.item?.type == "skill" && args.test.item.name.includes(game.i18n.localize("NAME.Stealth"))) +{ + args.test.result.description = "Astounding Failure"; + args.test.result.outcome = "failure"; + ChatMessage.create({content : "SQUEAK", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true}) + AudioHelper.play({ src: `${game.settings.get("wfrp4e", "soundPath")}squeek.wav` }, true); +} \ No newline at end of file diff --git a/scripts/H3Wls12aVWAWTp9J.js b/scripts/H3Wls12aVWAWTp9J.js new file mode 100644 index 0000000..32f6ee1 --- /dev/null +++ b/scripts/H3Wls12aVWAWTp9J.js @@ -0,0 +1,3 @@ +this.actor.setupCharacteristic("i", {skipTargets: true, appendTitle : " - " + this.effect.name}).then(test => { + test.roll(); +}) \ No newline at end of file diff --git a/scripts/H3pZ9UeIzIz3luKh.js b/scripts/H3pZ9UeIzIz3luKh.js new file mode 100644 index 0000000..c120317 --- /dev/null +++ b/scripts/H3pZ9UeIzIz3luKh.js @@ -0,0 +1,5 @@ +args.actor.addCondition("bleeding") + +this.actor.setFlag("wfrp4e", "isAttached", args.actor.name) + +this.script.scriptMessage(`Attaches to ${args.actor.name}`) \ No newline at end of file diff --git a/scripts/HASsi6wYHVALExWq.js b/scripts/HASsi6wYHVALExWq.js new file mode 100644 index 0000000..93a5c23 --- /dev/null +++ b/scripts/HASsi6wYHVALExWq.js @@ -0,0 +1,14 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context: { failure: "1 Corruption Point Gained" } }) +await test.roll(); + +if (test.failed && args.actor.type == "character") +{ + let msg = "" + msg += `

${this.actor.prototypeToken.name} gained a Corruption point

` + if (test.result.roll % 11 == 0 || test.result.roll == 100) + { + msg += `${args.actor.prototypeToken.name} gains a mutation (@Table[expandedmutatephys]{Physical} or @Table[expandedmutatemental]{Mental}) and gains @UUID[Compendium.wfrp4e-core.items.hiU7vhBOVpVI8c7C]{Chaos Magic (Tzeentch)}` + } + this.script.scriptMessage(msg, {whisper : ChatMessage.getWhisperRecipients("GM")}) + await this.actor.update({ "system.status.corruption.value": parseInt(args.actor.status.corruption.value) + 1 }) +} \ No newline at end of file diff --git a/scripts/HJ2X4ZtXei0BXbxf.js b/scripts/HJ2X4ZtXei0BXbxf.js new file mode 100644 index 0000000..9042978 --- /dev/null +++ b/scripts/HJ2X4ZtXei0BXbxf.js @@ -0,0 +1,19 @@ + let choices = await Promise.all([game.wfrp4e.utility.findItemId("PzimjNx9Ojq4g6mV"), game.wfrp4e.utility.findItemId("rOPmyLWa37e7s9v6")]) + let items = await game.wfrp4e.apps.ItemDialog.create(choices, 1, "Choose a Skill") + + items = items.map(i => i.toObject()) + items.forEach(i => i.system.advances.value = 20) + +items.forEach(i => equip(i)) + +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.data.worn.value = true + else if (item.type == "weapon") + item.data.equipped = true + else if (item.type == "trapping" && item.data.trappingType.value == "clothingAccessories") + item.data.worn = true +} \ No newline at end of file diff --git a/scripts/HKhyn0kijKfzW6cw.js b/scripts/HKhyn0kijKfzW6cw.js new file mode 100644 index 0000000..bb191fa --- /dev/null +++ b/scripts/HKhyn0kijKfzW6cw.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}) +await test.roll(); +this.item.updateSource({"flags.wfrp4e.passed" : test.succeeded}) \ No newline at end of file diff --git a/scripts/HMC6hPND9DWLFfZE.js b/scripts/HMC6hPND9DWLFfZE.js new file mode 100644 index 0000000..b975613 --- /dev/null +++ b/scripts/HMC6hPND9DWLFfZE.js @@ -0,0 +1,43 @@ +if (this.item.name.includes("(")) +{ + return; +} + +let index = game.packs +.filter(i => i.metadata.type == "Item") +.reduce((acc, pack) => acc.concat(pack.index.contents), []) +.filter(i => i.type == "skill" && i.name.includes(game.i18n.localize("NAME.Lore"))) +.map(i => { + i.id = i._id + return i +}) + +let choice = await ItemDialog.create(index, 1, "Choose a Lore") +let text; +if (!choice[0]) +{ + let custom = await Dialog.wait({ + title : "Enter Lore", + content : "", + buttons : { + confirm : { + label : game.i18n.localize("Confirm"), + callback : (dlg) => { + return dlg.find("input")[0].value + } + } + }, + default : "confirm", + close : () => { + return "" + } + }) + text = custom || "" +} +else +{ + text = game.wfrp4e.utility.extractParenthesesText(choice[0].name) +} + +await this.item.updateSource({name : this.item.name + ` (${text})`, "system.tests.value" : this.item.system.tests.value.replace("chosen Lore", text)}) +await this.effect.updateSource({name : this.effect.name + ` (${text})`}) \ No newline at end of file diff --git a/scripts/HOt2hHOiHDZ7oBgW.js b/scripts/HOt2hHOiHDZ7oBgW.js new file mode 100644 index 0000000..af34a62 --- /dev/null +++ b/scripts/HOt2hHOiHDZ7oBgW.js @@ -0,0 +1,4 @@ +if (["rLeg", "lLeg"].includes(this.effect.getFlag("wfrp4e", "location"))) +{ + args.actor.details.move.value /= 2 +} diff --git a/scripts/HX6CjNapYdC0VmQ8.js b/scripts/HX6CjNapYdC0VmQ8.js new file mode 100644 index 0000000..36a39a6 --- /dev/null +++ b/scripts/HX6CjNapYdC0VmQ8.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.epPBu7x6BRWp2PHG") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/HXJKkmpfxQUOnWOS.js b/scripts/HXJKkmpfxQUOnWOS.js new file mode 100644 index 0000000..34affd7 --- /dev/null +++ b/scripts/HXJKkmpfxQUOnWOS.js @@ -0,0 +1,4 @@ +if (!this.item.system.twohanded.value) +{ + this.item.system.flaws.value = this.item.system.flaws.value.concat([{name : "tiring"}, {name : "slow"}]) +} \ No newline at end of file diff --git a/scripts/Hcpn1gU58DIKIhty.js b/scripts/Hcpn1gU58DIKIhty.js new file mode 100644 index 0000000..6d5917a --- /dev/null +++ b/scripts/Hcpn1gU58DIKIhty.js @@ -0,0 +1,4 @@ +if (args.item.type == "skill" && args.item.name == "Melee (Flail)") +{ + args.item.system.modifier.value += 10; +} \ No newline at end of file diff --git a/scripts/HfCxNd7mFGZH4s9Y.js b/scripts/HfCxNd7mFGZH4s9Y.js new file mode 100644 index 0000000..07fcf28 --- /dev/null +++ b/scripts/HfCxNd7mFGZH4s9Y.js @@ -0,0 +1,13 @@ +// An opponent that takes more than a single Wound from a Warp Blade strike +// in melee combat must make an Average (+20) Endurance Test +// or take a Stunned Condition + + +if (args.totalWoundLoss > 1) { + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if(test.failed) + { + await args.actor.addCondition("stunned"); + } +} \ No newline at end of file diff --git a/scripts/HiMBS6GeOwEydWYN.js b/scripts/HiMBS6GeOwEydWYN.js new file mode 100644 index 0000000..9ad95cd --- /dev/null +++ b/scripts/HiMBS6GeOwEydWYN.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Climb"); \ No newline at end of file diff --git a/scripts/HmImVzvw6ecBy99l.js b/scripts/HmImVzvw6ecBy99l.js new file mode 100644 index 0000000..1731116 --- /dev/null +++ b/scripts/HmImVzvw6ecBy99l.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == "body" && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 2) + this.script.scriptNotification("Added Bleeding") +} \ No newline at end of file diff --git a/scripts/HoNTnPphrJISSQr1.js b/scripts/HoNTnPphrJISSQr1.js new file mode 100644 index 0000000..ae73e8e --- /dev/null +++ b/scripts/HoNTnPphrJISSQr1.js @@ -0,0 +1 @@ +ChatMessage.create({content : "Speak and be known to me", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true}) \ No newline at end of file diff --git a/scripts/Hq1G30lhJYvtOSNb.js b/scripts/Hq1G30lhJYvtOSNb.js new file mode 100644 index 0000000..5dce3bd --- /dev/null +++ b/scripts/Hq1G30lhJYvtOSNb.js @@ -0,0 +1,9 @@ + + if (args.test.failed) + { + let applicableCharacteristics = ["ws", "bs", "s", "fel", "ag", "t", "dex"]; + if (applicableCharacteristics.includes(args.preData.characteristic)) + { + this.actor.addCondition("stunned"); + } + } \ No newline at end of file diff --git a/scripts/HrOBAXsEX073ReKl.js b/scripts/HrOBAXsEX073ReKl.js new file mode 100644 index 0000000..de65a28 --- /dev/null +++ b/scripts/HrOBAXsEX073ReKl.js @@ -0,0 +1,18 @@ +let skill = `Entertain (Singing)` +let currentCareer = this.actor.system.currentCareer; +let existingSkill = this.actor.itemTypes.skill.find(i => i.name == skill); + +if (!currentCareer) return + + +let inCurrentCareer = currentCareer.system.skills.includes(skill); +if (existingSkill && inCurrentCareer) +{ + existingSkill.system.advances.costModifier = -5; +} +else +{ + currentCareer.system.skills.push(skill); +} + + diff --git a/scripts/HrYchgkdZBiu1yPF.js b/scripts/HrYchgkdZBiu1yPF.js new file mode 100644 index 0000000..959e502 --- /dev/null +++ b/scripts/HrYchgkdZBiu1yPF.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Climb"); \ No newline at end of file diff --git a/scripts/HwbgUIbpX0D8JLOR.js b/scripts/HwbgUIbpX0D8JLOR.js new file mode 100644 index 0000000..a9ddddc --- /dev/null +++ b/scripts/HwbgUIbpX0D8JLOR.js @@ -0,0 +1,2 @@ +if (args.opposedTest.result.differenceSL >= 0 && args.opposedTest.result.differenceSL <= 2 && args.opposedTest.result.winner == "attacker") + this.actor.addCondition("bleeding") \ No newline at end of file diff --git a/scripts/I0Jo6cbNAJtXUloc.js b/scripts/I0Jo6cbNAJtXUloc.js new file mode 100644 index 0000000..6066d3a --- /dev/null +++ b/scripts/I0Jo6cbNAJtXUloc.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.J9MK0AIaTbvd5oF6"); +this.actor.createEmbeddedDocuments("Item", [item.toObject()], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/I0oRZ7AWde5KI5jw.js b/scripts/I0oRZ7AWde5KI5jw.js new file mode 100644 index 0000000..57bbdb3 --- /dev/null +++ b/scripts/I0oRZ7AWde5KI5jw.js @@ -0,0 +1 @@ +return !["t", "int"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/I1J2m5uud84N50Lk.js b/scripts/I1J2m5uud84N50Lk.js new file mode 100644 index 0000000..5f22ef9 --- /dev/null +++ b/scripts/I1J2m5uud84N50Lk.js @@ -0,0 +1,6 @@ +if (["cast", "channelling", "pray"].includes(args.type)) +{ + args.abort = true; + this.script.scriptNotification("Cannot cast Spells or use Prayers"); +} +else return true; \ No newline at end of file diff --git a/scripts/I7ieW0hNYvvX0KFg.js b/scripts/I7ieW0hNYvvX0KFg.js new file mode 100644 index 0000000..5327a98 --- /dev/null +++ b/scripts/I7ieW0hNYvvX0KFg.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Heal"); \ No newline at end of file diff --git a/scripts/I93i49wI9ZrDHT4n.js b/scripts/I93i49wI9ZrDHT4n.js new file mode 100644 index 0000000..54906f2 --- /dev/null +++ b/scripts/I93i49wI9ZrDHT4n.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.jt0DmVK9IiF6Sd2h"); +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/I9QAPKbaXwMMMBT4.js b/scripts/I9QAPKbaXwMMMBT4.js new file mode 100644 index 0000000..99b5ec4 --- /dev/null +++ b/scripts/I9QAPKbaXwMMMBT4.js @@ -0,0 +1,17 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty: "average"}, skipTargets: true, appendTitle : " - " + this.effect.name}) +await test.roll(); +if(test.failed) +{ + await this.actor.addCondition("stunned"); + let secondTest = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty: "easy"}, skipTargets: true, appendTitle : " - Despair"}) + await secondTest.roll(); + if(secondTest.failed) + { + this.effect.updateSource({name : "Taste of Death"}) + await this.actor.addCondition("fatigued"); + } + else + { + return false; + } +} \ No newline at end of file diff --git a/scripts/IAGla7HJlYN0wa4H.js b/scripts/IAGla7HJlYN0wa4H.js new file mode 100644 index 0000000..5840592 --- /dev/null +++ b/scripts/IAGla7HJlYN0wa4H.js @@ -0,0 +1,8 @@ +if (args.test.characteristicKey == "wp") +{ + if (args.test.failed) + { + this.actor.addSystemEffect("convulsions") + this.script.scriptMessage(`Willpower Test failed, ${this.actor.prototypeToken.name} gains @Symptom[Convulsions] for [[1d10]] hours`) + } +} \ No newline at end of file diff --git a/scripts/ID8mCcjkl7PCQhDq.js b/scripts/ID8mCcjkl7PCQhDq.js new file mode 100644 index 0000000..4691ac9 --- /dev/null +++ b/scripts/ID8mCcjkl7PCQhDq.js @@ -0,0 +1,8 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Dodge"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + +if(test.failed) +{ + let damage = this.effect.sourceItem.system.computeSpellDamage("3", true); + this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {suppressMsg: true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP})) +} \ No newline at end of file diff --git a/scripts/IG4zYqtN9fRSYE7q.js b/scripts/IG4zYqtN9fRSYE7q.js new file mode 100644 index 0000000..6fb0958 --- /dev/null +++ b/scripts/IG4zYqtN9fRSYE7q.js @@ -0,0 +1 @@ +args.actor.addCondition("ablaze"); \ No newline at end of file diff --git a/scripts/IKiZv9YSFmKmHo6a.js b/scripts/IKiZv9YSFmKmHo6a.js new file mode 100644 index 0000000..b0e3f02 --- /dev/null +++ b/scripts/IKiZv9YSFmKmHo6a.js @@ -0,0 +1 @@ +return args.spell?.system.lore.value == "fire" \ No newline at end of file diff --git a/scripts/ILqHxk7deotgI3KD.js b/scripts/ILqHxk7deotgI3KD.js new file mode 100644 index 0000000..fdb8958 --- /dev/null +++ b/scripts/ILqHxk7deotgI3KD.js @@ -0,0 +1,10 @@ +if (args.item.type != "weapon") + return + +let reach = args.item.reach.value +let reachNum = game.wfrp4e.config.reachNum[reach] +reachNum = Math.min(reachNum + 2, 7) + +let key = game.wfrp4e.utility.findKey(reachNum, game.wfrp4e.config.reachNum) + +args.item.reach.value = key \ No newline at end of file diff --git a/scripts/IPPDvZdE8kn3H9z7.js b/scripts/IPPDvZdE8kn3H9z7.js new file mode 100644 index 0000000..a78deea --- /dev/null +++ b/scripts/IPPDvZdE8kn3H9z7.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); + +if (test.failed) +{ + await this.actor.addCondition("grappling") +} \ No newline at end of file diff --git a/scripts/IR5URcjnCuWBFMoN.js b/scripts/IR5URcjnCuWBFMoN.js new file mode 100644 index 0000000..69ed22a --- /dev/null +++ b/scripts/IR5URcjnCuWBFMoN.js @@ -0,0 +1,15 @@ +// If a full dose is imbibed, +// the victim must pass a Hard (-20) Endurance Test. + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}}) +await test.roll() +if (test.failed) +{ + this.script.scriptMessage(`

${this.actor.prototypeToken.name} notices nothing amiss save that they become tired a little earlier than usual. At this point it is still possible to save the victim via a powerful antidote or magical means.

+

Once they fall asleep however, it is almost impossible. At this point the victim must make a Hard (-20) Endurance Test. If they fail, they never awaken.

`, + { + whisper: ChatMessage.getWhisperRecipients("GM"), + blind: true + }) +} +return test.failed; \ No newline at end of file diff --git a/scripts/IR86DuMbVdbGOJYt.js b/scripts/IR86DuMbVdbGOJYt.js new file mode 100644 index 0000000..4316d1c --- /dev/null +++ b/scripts/IR86DuMbVdbGOJYt.js @@ -0,0 +1 @@ +this.actor.addCondition("blinded") \ No newline at end of file diff --git a/scripts/IfEu1hO8sKEZBpvg.js b/scripts/IfEu1hO8sKEZBpvg.js new file mode 100644 index 0000000..0b53314 --- /dev/null +++ b/scripts/IfEu1hO8sKEZBpvg.js @@ -0,0 +1,14 @@ +let value = parseInt(this.item.specification.value) +let name = this.actor.prototypeToken.name + +if (game.user.isGM && game.user.targets.size) +{ + game.user.targets.forEach(t => { + t.actor.applyFear(value, name) + }) + game.user.updateTokenTargets([]); +} +else +{ + game.wfrp4e.utility.postFear(value, name) +} \ No newline at end of file diff --git a/scripts/IkGegSuQwwVPhrjF.js b/scripts/IkGegSuQwwVPhrjF.js new file mode 100644 index 0000000..97f7893 --- /dev/null +++ b/scripts/IkGegSuQwwVPhrjF.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn") +let data = item.toObject(); +data.system.specification.value = 1 +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/Ip8sctF9SIE1Z2vF.js b/scripts/Ip8sctF9SIE1Z2vF.js new file mode 100644 index 0000000..7cc82a8 --- /dev/null +++ b/scripts/Ip8sctF9SIE1Z2vF.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.UnJ25lL8aUzem5JO") +let data = item.toObject(); +data.system.specification.value = 3 +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/IpoOOjYJs6RmVrpb.js b/scripts/IpoOOjYJs6RmVrpb.js new file mode 100644 index 0000000..c6867fc --- /dev/null +++ b/scripts/IpoOOjYJs6RmVrpb.js @@ -0,0 +1,4 @@ +if (args.totalWoundLoss > 0) +{ + args.attacker.applyEffect({effectUuids : this.effect.sourceItem.effects.contents[1].uuid}) +} \ No newline at end of file diff --git a/scripts/IsLAvY9ikR1cOJWw.js b/scripts/IsLAvY9ikR1cOJWw.js new file mode 100644 index 0000000..c5a06ce --- /dev/null +++ b/scripts/IsLAvY9ikR1cOJWw.js @@ -0,0 +1 @@ +return !["NAME.Row", "NAME.Swim"].map(i => game.i18n.localize(i)).includes(args.skill?.name); \ No newline at end of file diff --git a/scripts/IslMfFgpgQq2brpu.js b/scripts/IslMfFgpgQq2brpu.js new file mode 100644 index 0000000..02c913e --- /dev/null +++ b/scripts/IslMfFgpgQq2brpu.js @@ -0,0 +1,5 @@ +if (this.actor.hasCondition("broken")) +{ + this.actor.removeCondition("broken") + this.script.scriptNotification(`Cannot have Broken`); +} \ No newline at end of file diff --git a/scripts/IukS0clr1yAleacc.js b/scripts/IukS0clr1yAleacc.js new file mode 100644 index 0000000..d71d043 --- /dev/null +++ b/scripts/IukS0clr1yAleacc.js @@ -0,0 +1,3 @@ +this.actor.system.characteristics.ag.modifier -= parseInt(this.item.system.location.value || 1) + +this.actor.system.characteristics.ws.modifier -= parseInt(this.item.system.location.value || 1) \ No newline at end of file diff --git a/scripts/IupskvzvoGyD2H5o.js b/scripts/IupskvzvoGyD2H5o.js new file mode 100644 index 0000000..87c4934 --- /dev/null +++ b/scripts/IupskvzvoGyD2H5o.js @@ -0,0 +1,23 @@ +if (this.actor.type != "character") +{ + return; +} + +let god = await ValueDialog.create("Enter a Deity", "Blessed") + +if (god) +{ + let prayers = await game.wfrp4e.utility.findAll("prayer", "Loading Prayers") + let blessings = prayers.filter(p => p.system.god.value.split(",").map(i => i.trim().toLowerCase()).includes(god.toLowerCase()) && p.system.type.value == "blessing") + if (blessings.length) + { + this.script.scriptNotification("Adding " + blessings.map(i => i.name).join(", ")) + await this.actor.createEmbeddedDocuments("Item", blessings, {fromEffect : this.effect.id}) + } + else + { + this.script.scriptNotification(`Could not find any Blessings associated with ${god}.`) + } + this.item.updateSource({name : this.item.name.replace("Any", god)}) + await this.actor.update({"system.details.god.value": god}) +} \ No newline at end of file diff --git a/scripts/IzZcsSngI8TZH4d8.js b/scripts/IzZcsSngI8TZH4d8.js new file mode 100644 index 0000000..a63265f --- /dev/null +++ b/scripts/IzZcsSngI8TZH4d8.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.fjd1u9VAgiYzhBRp"); +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/J0IWUhxada2ONowP.js b/scripts/J0IWUhxada2ONowP.js new file mode 100644 index 0000000..aec5a9d --- /dev/null +++ b/scripts/J0IWUhxada2ONowP.js @@ -0,0 +1 @@ + return args.skill?.name == "Entertain (Sing)" || args.skill?.name == "Entertain (Singing)" || (args.skill?.name.includes("Language") && (args.skill?.name.includes("Magick") || args.skill?.name.includes("Elthárin") || args.skill?.name.includes("Cathayan"))) \ No newline at end of file diff --git a/scripts/J1FPDdrXGctKDTZz.js b/scripts/J1FPDdrXGctKDTZz.js new file mode 100644 index 0000000..d72299d --- /dev/null +++ b/scripts/J1FPDdrXGctKDTZz.js @@ -0,0 +1,16 @@ +if (args.equipped) +{ + let ward = await fromUuid("Compendium.wfrp4e-core.items.Bvd2aZ0gQUXHfCTh") + wardData = ward.toObject() + wardData.system.specification.value = "8" + + let mr = await fromUuid("Compendium.wfrp4e-core.items.yrkI7ATjqLPDTFmZ") + mrData = mr.toObject() + mrData.system.specification.value = 2 + + this.actor.createEmbeddedDocuments("Item", [wardData, mrData], {fromEffect : this.effect.id}) +} +else +{ + this.effect.deleteCreatedItems() +} \ No newline at end of file diff --git a/scripts/J8aPichsl25t1QZ9.js b/scripts/J8aPichsl25t1QZ9.js new file mode 100644 index 0000000..e0eef4f --- /dev/null +++ b/scripts/J8aPichsl25t1QZ9.js @@ -0,0 +1 @@ +this.actor.addCondition("entangled", this.effect.sourceTest.result.SL) \ No newline at end of file diff --git a/scripts/JEbs0WlqhKNDOo5A.js b/scripts/JEbs0WlqhKNDOo5A.js new file mode 100644 index 0000000..83eb600 --- /dev/null +++ b/scripts/JEbs0WlqhKNDOo5A.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("unconscious") +} diff --git a/scripts/JFgXyb6bKjZJLmF8.js b/scripts/JFgXyb6bKjZJLmF8.js new file mode 100644 index 0000000..996b184 --- /dev/null +++ b/scripts/JFgXyb6bKjZJLmF8.js @@ -0,0 +1 @@ +return args.characteristic == "ag" \ No newline at end of file diff --git a/scripts/JQruHprM5R5vZ9DA.js b/scripts/JQruHprM5R5vZ9DA.js new file mode 100644 index 0000000..ae80286 --- /dev/null +++ b/scripts/JQruHprM5R5vZ9DA.js @@ -0,0 +1,10 @@ +let caster = this.effect.sourceActor; +if (caster) +{ + let healed= caster.system.characteristics.wp.bonus + caster.system.characteristics.int.bonus + await this.actor.modifyWounds(healed); + this.script.scriptMessage(`${this.actor.prototypeToken.name} regains ${healed} Wounds`) +} + + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "vhard"}, context : {success : "1 Corruption point that was gained within the last hour is removed.", failure: "Nothing happens"}}) + await test.roll(); \ No newline at end of file diff --git a/scripts/JZIn1dsKHFE3smJU.js b/scripts/JZIn1dsKHFE3smJU.js new file mode 100644 index 0000000..a07962a --- /dev/null +++ b/scripts/JZIn1dsKHFE3smJU.js @@ -0,0 +1,2 @@ +let ablaze = parseInt(this.effect.sourceTest.result.SL) + 1 +args.actor.addCondition("ablaze", ablaze) \ No newline at end of file diff --git a/scripts/JaiC5P6nIgctOacH.js b/scripts/JaiC5P6nIgctOacH.js new file mode 100644 index 0000000..d3560ca --- /dev/null +++ b/scripts/JaiC5P6nIgctOacH.js @@ -0,0 +1,4 @@ +if (args.actor.system.details.species?.value?.toLowerCase() == "dwarf") +{ + args.weaponProperties.flaws.undamaging = true; +} \ No newline at end of file diff --git a/scripts/JavuFNZ9Pj5elVLc.js b/scripts/JavuFNZ9Pj5elVLc.js new file mode 100644 index 0000000..9c9591a --- /dev/null +++ b/scripts/JavuFNZ9Pj5elVLc.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let data = item.toObject(); +data.system.specification.value = 4 - this.actor.characteristics.s.bonus +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/JeThJbOf6Xmbtgo1.js b/scripts/JeThJbOf6Xmbtgo1.js new file mode 100644 index 0000000..8125581 --- /dev/null +++ b/scripts/JeThJbOf6Xmbtgo1.js @@ -0,0 +1,8 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(8 + parseInt(this.effect.sourceTest.result.SL), {suppressMsg : true})) + +let test = await this.actor.setupSkill("Athletics", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/JgCcgDVZX54slrWx.js b/scripts/JgCcgDVZX54slrWx.js new file mode 100644 index 0000000..b758160 --- /dev/null +++ b/scripts/JgCcgDVZX54slrWx.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Melee")) || args.item?.isMelee || args.options.corruption \ No newline at end of file diff --git a/scripts/JibNjuQrJRnY0yf9.js b/scripts/JibNjuQrJRnY0yf9.js new file mode 100644 index 0000000..03aff09 --- /dev/null +++ b/scripts/JibNjuQrJRnY0yf9.js @@ -0,0 +1 @@ +return this.actor.flags.useless.rEye && this.actor.flags.useless.lEye && (["ws", "bs"].includes(args.characteristic) || args.skill?.name?.includes(game.i18n.localize("NAME.Ride")) || args.weapon || args.options.dodge) \ No newline at end of file diff --git a/scripts/JjDzMnUxaWQePIYh.js b/scripts/JjDzMnUxaWQePIYh.js new file mode 100644 index 0000000..70529bf --- /dev/null +++ b/scripts/JjDzMnUxaWQePIYh.js @@ -0,0 +1 @@ +return args.characteristic != "int" \ No newline at end of file diff --git a/scripts/JjiPprLSlSmmB5Ga.js b/scripts/JjiPprLSlSmmB5Ga.js new file mode 100644 index 0000000..bfe3c8a --- /dev/null +++ b/scripts/JjiPprLSlSmmB5Ga.js @@ -0,0 +1 @@ +args.item.system.damage.value += " + 1" \ No newline at end of file diff --git a/scripts/Jjq3oPYbI26zjxME.js b/scripts/Jjq3oPYbI26zjxME.js new file mode 100644 index 0000000..dcf1d23 --- /dev/null +++ b/scripts/Jjq3oPYbI26zjxME.js @@ -0,0 +1,21 @@ +let location = this.item.system.location.key; + +if (location) +{ + let dropped = this.item.system.weaponsAtLocation; + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} + +let roll = await new Roll("1d10").roll() + +roll.toMessage(this.script.getChatData({flavor : `${this.effect.name} (Duration)`})); + +this.effect.updateSource({"duration.rounds" : roll.total}) \ No newline at end of file diff --git a/scripts/Jk7OHqx06oCUVAzb.js b/scripts/Jk7OHqx06oCUVAzb.js new file mode 100644 index 0000000..44fed7e --- /dev/null +++ b/scripts/Jk7OHqx06oCUVAzb.js @@ -0,0 +1 @@ +return !["Language (Magick)", "Channelling (Hysh)"].includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/JmZQRvdWjm9ykYfn.js b/scripts/JmZQRvdWjm9ykYfn.js new file mode 100644 index 0000000..90d6edc --- /dev/null +++ b/scripts/JmZQRvdWjm9ykYfn.js @@ -0,0 +1,5 @@ +if (this.actor.hasCondition("surprised")) +{ + this.actor.removeCondition("surprised") + this.script.scriptMessage(`Cannot be Surprised`); +} \ No newline at end of file diff --git a/scripts/Jnp5c09sPzDD61EK.js b/scripts/Jnp5c09sPzDD61EK.js new file mode 100644 index 0000000..e9e5662 --- /dev/null +++ b/scripts/Jnp5c09sPzDD61EK.js @@ -0,0 +1,3 @@ +this.script.scriptNotification(`${args.actor.prototypeToken.name} must pass an Average (+20) Willpower Test to attack this target!`) + +return true; // No need to show this in the dialog \ No newline at end of file diff --git a/scripts/JstrA46EYSEuRSy5.js b/scripts/JstrA46EYSEuRSy5.js new file mode 100644 index 0000000..f5e7f96 --- /dev/null +++ b/scripts/JstrA46EYSEuRSy5.js @@ -0,0 +1,2 @@ +if (this.actor.has(game.i18n.localize("NAME.Undead")) && this.actor.has(game.i18n.localize("NAME.Construct"))) + this.actor.addCondition("dead") \ No newline at end of file diff --git a/scripts/JwYZJGkZMSM2M3Si.js b/scripts/JwYZJGkZMSM2M3Si.js new file mode 100644 index 0000000..23dc567 --- /dev/null +++ b/scripts/JwYZJGkZMSM2M3Si.js @@ -0,0 +1,10 @@ +if (args.totalWoundLoss > 0) +{ + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}}) + await test.roll() + if (test.failed) + { + args.totalWoundLoss += this.effect.sourceActor.system.characteristics.wp.bonus + args.modifiers.other.push({label : this.effect.name, value : this.effect.sourceActor.system.characteristics.wp.bonus}) + } +} \ No newline at end of file diff --git a/scripts/JwgFQmPQtXWAP94i.js b/scripts/JwgFQmPQtXWAP94i.js new file mode 100644 index 0000000..7c989d6 --- /dev/null +++ b/scripts/JwgFQmPQtXWAP94i.js @@ -0,0 +1 @@ +this.actor.addCondition("fatigued"); \ No newline at end of file diff --git a/scripts/JyTxUG5dNW670Sf7.js b/scripts/JyTxUG5dNW670Sf7.js new file mode 100644 index 0000000..9421a21 --- /dev/null +++ b/scripts/JyTxUG5dNW670Sf7.js @@ -0,0 +1,11 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.7mCcI3q7hgWcmbBU") +let data = item.toObject(); +data.system.location.key= this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("stunned") +} \ No newline at end of file diff --git a/scripts/K06v93N4FXb70mB7.js b/scripts/K06v93N4FXb70mB7.js new file mode 100644 index 0000000..051a245 --- /dev/null +++ b/scripts/K06v93N4FXb70mB7.js @@ -0,0 +1 @@ +args.item.system.encumbrance.value = Math.max(0, args.item.system.encumbrance.value - 1); \ No newline at end of file diff --git a/scripts/KD4nCSdSXJVJmk0R.js b/scripts/KD4nCSdSXJVJmk0R.js new file mode 100644 index 0000000..7499473 --- /dev/null +++ b/scripts/KD4nCSdSXJVJmk0R.js @@ -0,0 +1,2 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(this.effect.sourceTest.result.damage, {suppressMsg : true})) +await this.actor.addCondition("ablaze") \ No newline at end of file diff --git a/scripts/KF69WqF4PSEtpdb2.js b/scripts/KF69WqF4PSEtpdb2.js new file mode 100644 index 0000000..4f434e6 --- /dev/null +++ b/scripts/KF69WqF4PSEtpdb2.js @@ -0,0 +1,2 @@ +args.fields.slBonus += 2; + \ No newline at end of file diff --git a/scripts/KG4TxnXiLLpfWOQO.js b/scripts/KG4TxnXiLLpfWOQO.js new file mode 100644 index 0000000..14697ad --- /dev/null +++ b/scripts/KG4TxnXiLLpfWOQO.js @@ -0,0 +1 @@ +args.fields.difficulty = "average" \ No newline at end of file diff --git a/scripts/KGK9vL1Yl0qmCeCN.js b/scripts/KGK9vL1Yl0qmCeCN.js new file mode 100644 index 0000000..78b37da --- /dev/null +++ b/scripts/KGK9vL1Yl0qmCeCN.js @@ -0,0 +1,88 @@ +let specification = this.item.system.specification.value; +let choice = []; + +if (!specification || specification == "Trained Skills") +{ + choice = await ItemDialog.create(ItemDialog.objectToArray({ + broken: "Broken", + drive: "Drive", + entertain: "Entertain", + fetch: "Fetch", + guard: "Guard", + home: "Home", + magic: "Magic", + mount: "Mount", + war: "War" + }, this.effect.img), "unlimited", "Choose Training"); +} +else +{ + choice = specification.split(", ").map(i => { + return { + id : i.toLowerCase(), + name : i + } + }); +} + +if (choice.length) +{ + let changes = foundry.utils.deepClone(this.effect.changes); + + for(let training of choice) + { + switch(training.id) + { + case "broken" : + let roll = await new Roll("2d10").roll(); + roll.toMessage(this.script.getChatData()); + changes.push({value : roll.total, mode : 2, key : "system.characteristics.fel.modifier"}) + + if (this.actor.type == "creature") + { + let bestial = this.actor.itemTypes.trait.find(i => i.name == "Bestial"); + if (bestial) + { + bestial.update({"system.disabled" : true}) + } + } + break; + + case "drive" : + + break; + + case "entertain" : + + break; + + case "fetch" : + + break; + + case "guard" : + let territorial = await fromUuid("Compendium.wfrp4e-core.items.Item.JIAe7i7dqTQBu4do"); + await this.actor.createEmbeddedDocuments("Item", [territorial], {fromEffect: this.effect.id}) + setProperty(args, "options.keepId", true); + break; + + case "home" : + + break; + + case "magic" : + + break; + + case "mount" : + + break; + + case "war" : + changes.push({value : 10, mode : 2, key : "system.characteristics.ws.modifier"}) + break; + } + } + this.effect.updateSource({name : `${this.effect.name} (${choice.map(i => i.name).join(", ")})`, changes, "flags.wfrp4e.trained" : choice.map(i => i.id)}) + this.item.updateSource({"system.specification.value" : `${choice.map(i => i.name).join(", ")}`}) +} \ No newline at end of file diff --git a/scripts/KICZPwLvbUSxbDrE.js b/scripts/KICZPwLvbUSxbDrE.js new file mode 100644 index 0000000..30a0d6f --- /dev/null +++ b/scripts/KICZPwLvbUSxbDrE.js @@ -0,0 +1,18 @@ +let table = game.wfrp4e.tables.findTable("mutatemental"); +if (!table) +{ + ui.notifications.error("Cannot find table with key: mutatemental") +} +let result = (await table.roll()).results[0]; +let uuid = `Compendium.${result.documentCollection}.${result.documentId}` +let item = await fromUuid(uuid); + +if (item) +{ + this.script.scriptNotification(`${item.name} added`) + this.actor.createEmbeddedDocuments("Item", [item]) +} +else +{ + ui.notifications.error("Item could not be found: " + uuid) +} \ No newline at end of file diff --git a/scripts/KIoVBinAZK8sMOqD.js b/scripts/KIoVBinAZK8sMOqD.js new file mode 100644 index 0000000..072c254 --- /dev/null +++ b/scripts/KIoVBinAZK8sMOqD.js @@ -0,0 +1,11 @@ + + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty : "average"}, skipTargets: true, appendTitle : " - Wounded"}) + await test.roll(); + if (test.failed) + { + fromUuid("Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb").then(disease => { + this.actor.createEmbeddedDocuments("Item", [disease.toObject()]) + this.script.scriptNotification("Gained " + disease.name) + }) + } + \ No newline at end of file diff --git a/scripts/KJLAan0glJlyOyqF.js b/scripts/KJLAan0glJlyOyqF.js new file mode 100644 index 0000000..e9a31c5 --- /dev/null +++ b/scripts/KJLAan0glJlyOyqF.js @@ -0,0 +1,11 @@ + this.actor.getActiveTokens().forEach(t => t.document.update({light : { + "dim": 10, + "bright": 5, + "alpha": 0.5, + "animation": { + "speed": 4, + "intensity": 4, + "type": "flame", + }, + "color": "#ac9e6c", + }})); \ No newline at end of file diff --git a/scripts/KPQfupKuaf4LCv4R.js b/scripts/KPQfupKuaf4LCv4R.js new file mode 100644 index 0000000..9dcc016 --- /dev/null +++ b/scripts/KPQfupKuaf4LCv4R.js @@ -0,0 +1,2 @@ +const talents = await Promise.all(["Schemer", "Second Sight"].map(game.wfrp4e.utility.findTalent)) +this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/KQmb5B27eJ1lkbVL.js b/scripts/KQmb5B27eJ1lkbVL.js new file mode 100644 index 0000000..7adee1c --- /dev/null +++ b/scripts/KQmb5B27eJ1lkbVL.js @@ -0,0 +1 @@ +return this.item.system.quantity.value > 0 && args.type != "channelling" \ No newline at end of file diff --git a/scripts/KQzbrpb0T5a7it4k.js b/scripts/KQzbrpb0T5a7it4k.js new file mode 100644 index 0000000..1620dd8 --- /dev/null +++ b/scripts/KQzbrpb0T5a7it4k.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.vMYEkrWj0ip6ZOdv"); +let data = item.toObject(); +data.name += ` (Disease)`; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/KSjsDlsx3DD6cT16.js b/scripts/KSjsDlsx3DD6cT16.js new file mode 100644 index 0000000..f00b8b8 --- /dev/null +++ b/scripts/KSjsDlsx3DD6cT16.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Bribery"); \ No newline at end of file diff --git a/scripts/KT670CjGBEprx2fO.js b/scripts/KT670CjGBEprx2fO.js new file mode 100644 index 0000000..bbf4c65 --- /dev/null +++ b/scripts/KT670CjGBEprx2fO.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.RWJrupj9seau0w31"); +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/KTBVDHUndI3qDOXM.js b/scripts/KTBVDHUndI3qDOXM.js new file mode 100644 index 0000000..b9aa611 --- /dev/null +++ b/scripts/KTBVDHUndI3qDOXM.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance")) +await test.roll(); +if (!test.succeeded) +{ + args.actor.addCondition("stunned") +} \ No newline at end of file diff --git a/scripts/KUx0deSF3xNzMucL.js b/scripts/KUx0deSF3xNzMucL.js new file mode 100644 index 0000000..208679d --- /dev/null +++ b/scripts/KUx0deSF3xNzMucL.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Art")); \ No newline at end of file diff --git a/scripts/KVpDUEjHhd3nLa0f.js b/scripts/KVpDUEjHhd3nLa0f.js new file mode 100644 index 0000000..a301dfb --- /dev/null +++ b/scripts/KVpDUEjHhd3nLa0f.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("enrage-beast")) +} \ No newline at end of file diff --git a/scripts/KVuPduDztyMZQNt9.js b/scripts/KVuPduDztyMZQNt9.js new file mode 100644 index 0000000..c359f67 --- /dev/null +++ b/scripts/KVuPduDztyMZQNt9.js @@ -0,0 +1 @@ +args.fields.slBonus += this.actor.system.characteristics.ag.bonus \ No newline at end of file diff --git a/scripts/KXzDe7cN2vynHjJO.js b/scripts/KXzDe7cN2vynHjJO.js new file mode 100644 index 0000000..41a9fa8 --- /dev/null +++ b/scripts/KXzDe7cN2vynHjJO.js @@ -0,0 +1,3 @@ +this.actor.hasCondition("blinded")?.delete(); +this.actor.hasCondition("deafened")?.delete() +this.actor.hasCondition("unconscious")?.delete() \ No newline at end of file diff --git a/scripts/KkjkYAGI9Em1NgiQ.js b/scripts/KkjkYAGI9Em1NgiQ.js new file mode 100644 index 0000000..1790282 --- /dev/null +++ b/scripts/KkjkYAGI9Em1NgiQ.js @@ -0,0 +1,19 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Heal"), { appendTitle: ` - ${this.effect.name}`, skipTargets: true }) + await test.roll(); + if (test.succeeded) + { + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({ effectData: [this.item.effects.contents[0].convertToApplied()] }) + } + else + { + this.script.scriptNotification("Heal Test failed!", "error") + } +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/KmngDrPD72xn22kZ.js b/scripts/KmngDrPD72xn22kZ.js new file mode 100644 index 0000000..331fdca --- /dev/null +++ b/scripts/KmngDrPD72xn22kZ.js @@ -0,0 +1,11 @@ +if (this.actor.Species.toLowerCase() != "skaven") { + this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - Used ${this.effect.name}`, fields: { difficulty: "difficult" } }).then(async test => { + await test.roll() + if (test.failed) + { + let toughnessLost = Math.ceil(CONFIG.Dice.randomUniform() * 10) + this.actor.update({ "system.characteristics.t.initial": this.actor.characteristics.t.initial - toughnessLost }) + this.script.scriptMessage(`${this.actor.prototypeToken.name} lost ${toughnessLost} Toughness`) + } + }) + } \ No newline at end of file diff --git a/scripts/KnwYZbeRSBA94hfl.js b/scripts/KnwYZbeRSBA94hfl.js new file mode 100644 index 0000000..11bc24c --- /dev/null +++ b/scripts/KnwYZbeRSBA94hfl.js @@ -0,0 +1,5 @@ +if (!args.flags.lostFingers) +{ + args.flags.lostFingers = true; + args.fields.modifier -= 5 * this.actor.flags.useless[this.item.system.location.key] +} \ No newline at end of file diff --git a/scripts/KuUkUmOOLf05I4Bp.js b/scripts/KuUkUmOOLf05I4Bp.js new file mode 100644 index 0000000..b2e2144 --- /dev/null +++ b/scripts/KuUkUmOOLf05I4Bp.js @@ -0,0 +1 @@ +this.actor.hasCondition("broken")?.delete(); diff --git a/scripts/KuuWAhoSzk0rCxxw.js b/scripts/KuuWAhoSzk0rCxxw.js new file mode 100644 index 0000000..2d3f461 --- /dev/null +++ b/scripts/KuuWAhoSzk0rCxxw.js @@ -0,0 +1 @@ +args.fields.modifier += -20; \ No newline at end of file diff --git a/scripts/KyUPYV1RXJxPOfyA.js b/scripts/KyUPYV1RXJxPOfyA.js new file mode 100644 index 0000000..5e60157 --- /dev/null +++ b/scripts/KyUPYV1RXJxPOfyA.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "veasy"}}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("fatigued"); +} \ No newline at end of file diff --git a/scripts/KyswmGj1uG3QS3ng.js b/scripts/KyswmGj1uG3QS3ng.js new file mode 100644 index 0000000..81a6df2 --- /dev/null +++ b/scripts/KyswmGj1uG3QS3ng.js @@ -0,0 +1 @@ +args.applyAP = false; \ No newline at end of file diff --git a/scripts/L1RMLvKtRPFtnczI.js b/scripts/L1RMLvKtRPFtnczI.js new file mode 100644 index 0000000..9e11b96 --- /dev/null +++ b/scripts/L1RMLvKtRPFtnczI.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.MGEPI4jNhymNIRVz"); +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/L2cdQppcPwxz24hN.js b/scripts/L2cdQppcPwxz24hN.js new file mode 100644 index 0000000..8eabc28 --- /dev/null +++ b/scripts/L2cdQppcPwxz24hN.js @@ -0,0 +1 @@ +return !args.weapon \ No newline at end of file diff --git a/scripts/L89UcafRHqUfxoux.js b/scripts/L89UcafRHqUfxoux.js new file mode 100644 index 0000000..092415c --- /dev/null +++ b/scripts/L89UcafRHqUfxoux.js @@ -0,0 +1,3 @@ +let injury = await fromUuid("Compendium.wfrp4e-core.items.3S4OYOZLauXctmev") +injury.updateSource({"system.location.key" : this.item.system.location.key}) +this.actor.createEmbeddedDocuments("Item", [injury], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/L9eAtDyaoHvqryk4.js b/scripts/L9eAtDyaoHvqryk4.js new file mode 100644 index 0000000..c5efbe5 --- /dev/null +++ b/scripts/L9eAtDyaoHvqryk4.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Intimidate"); \ No newline at end of file diff --git a/scripts/LAyLbcC0lOPwZP3U.js b/scripts/LAyLbcC0lOPwZP3U.js new file mode 100644 index 0000000..328bcfe --- /dev/null +++ b/scripts/LAyLbcC0lOPwZP3U.js @@ -0,0 +1 @@ +this.actor.addCondition("ablaze", parseInt(this.effect.sourceTest.result.SL)) \ No newline at end of file diff --git a/scripts/LHUUXfZVLBhWqRvb.js b/scripts/LHUUXfZVLBhWqRvb.js new file mode 100644 index 0000000..9dae93e --- /dev/null +++ b/scripts/LHUUXfZVLBhWqRvb.js @@ -0,0 +1 @@ +this.actor.status.addArmour(5, {magical: true, source : this.effect}) \ No newline at end of file diff --git a/scripts/LLqAT9wEUGMLfDhU.js b/scripts/LLqAT9wEUGMLfDhU.js new file mode 100644 index 0000000..4102c46 --- /dev/null +++ b/scripts/LLqAT9wEUGMLfDhU.js @@ -0,0 +1 @@ +return !args.item?.system.isRanged \ No newline at end of file diff --git a/scripts/LOL2TGf8p8KxP14D.js b/scripts/LOL2TGf8p8KxP14D.js new file mode 100644 index 0000000..a462357 --- /dev/null +++ b/scripts/LOL2TGf8p8KxP14D.js @@ -0,0 +1,2 @@ +let wind = this.effect.name.split(" ")[2] +return args.type != "cast" || game.wfrp4e.config.magicWind[args.item.system.lore.value] != wind; \ No newline at end of file diff --git a/scripts/LQEWSN5KnHHATPsf.js b/scripts/LQEWSN5KnHHATPsf.js new file mode 100644 index 0000000..bd8c028 --- /dev/null +++ b/scripts/LQEWSN5KnHHATPsf.js @@ -0,0 +1,4 @@ +if (args.totalWoundLoss > 0) +{ + this.script.scriptMessage(`${args.actor.name} must pass an Easy (+40) Endurance Test or gain a @UUID[Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb]{Festering Wound}`, {whisper: ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/LXEUhHuXe8keEPI9.js b/scripts/LXEUhHuXe8keEPI9.js new file mode 100644 index 0000000..0683f16 --- /dev/null +++ b/scripts/LXEUhHuXe8keEPI9.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupCharacteristic("wp", {fields: {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + let stuns = Math.max(1, Math.abs(test.result.SL)) + this.actor.addCondition("stunned", stuns) +} \ No newline at end of file diff --git a/scripts/LeKLtvEDrWh4yHsx.js b/scripts/LeKLtvEDrWh4yHsx.js new file mode 100644 index 0000000..bfe04ec --- /dev/null +++ b/scripts/LeKLtvEDrWh4yHsx.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.CharmAnimal") || args.skill?.name.includes(game.i18n.localize("NAME.AnimalTraining")); \ No newline at end of file diff --git a/scripts/LedRsrVo2f7lm3Ix.js b/scripts/LedRsrVo2f7lm3Ix.js new file mode 100644 index 0000000..647d323 --- /dev/null +++ b/scripts/LedRsrVo2f7lm3Ix.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Intimidate"); \ No newline at end of file diff --git a/scripts/Lg1oRg4oNRvucsvi.js b/scripts/Lg1oRg4oNRvucsvi.js new file mode 100644 index 0000000..42395c3 --- /dev/null +++ b/scripts/Lg1oRg4oNRvucsvi.js @@ -0,0 +1 @@ +return !(args.skill?.name == game.i18n.localize("NAME.Climb") || args.skill?.name == game.i18n.localize("NAME.Athletics")) \ No newline at end of file diff --git a/scripts/LjXPlgdXBdllnA3i.js b/scripts/LjXPlgdXBdllnA3i.js new file mode 100644 index 0000000..402cd45 --- /dev/null +++ b/scripts/LjXPlgdXBdllnA3i.js @@ -0,0 +1 @@ +return !["s", "t"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/LkPtgN9A36OI6Frh.js b/scripts/LkPtgN9A36OI6Frh.js new file mode 100644 index 0000000..4bda5cb --- /dev/null +++ b/scripts/LkPtgN9A36OI6Frh.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Leadership"); \ No newline at end of file diff --git a/scripts/LlRhPGorLl5qJCU8.js b/scripts/LlRhPGorLl5qJCU8.js new file mode 100644 index 0000000..3393901 --- /dev/null +++ b/scripts/LlRhPGorLl5qJCU8.js @@ -0,0 +1,8 @@ +if (this.actor.hasCondition("prone")) +{ + this.actor.addCondition("unconscious"); +} +else +{ + this.actor.addCondition("prone"); +} \ No newline at end of file diff --git a/scripts/Lm9IBkc918Duw3US.js b/scripts/Lm9IBkc918Duw3US.js new file mode 100644 index 0000000..c27cbaf --- /dev/null +++ b/scripts/Lm9IBkc918Duw3US.js @@ -0,0 +1,6 @@ +let career = this.actor.itemTypes.career.find(c => c.getFlag("wfrp4e", "doubleLife")) + +if(career) +{ + career.system.current.value = true; +} \ No newline at end of file diff --git a/scripts/Lp261O9fgEXmgPf3.js b/scripts/Lp261O9fgEXmgPf3.js new file mode 100644 index 0000000..65d054e --- /dev/null +++ b/scripts/Lp261O9fgEXmgPf3.js @@ -0,0 +1,5 @@ +// If this actor wins a defending test, swap the test +if (!args.opposedTest.result.swapped && args.opposedTest.result.winner == "defender" && args.opposedTest.attackerTest.result.damage) +{ + args.opposedTest.swap(this.effect.label); +} \ No newline at end of file diff --git a/scripts/Lpv2N9LK9loeumiW.js b/scripts/Lpv2N9LK9loeumiW.js new file mode 100644 index 0000000..ad3c30e --- /dev/null +++ b/scripts/Lpv2N9LK9loeumiW.js @@ -0,0 +1,6 @@ +if (this.actor.uuid != this.effect.sourceActor.uuid) +{ + this.actor.setupSkill(game.i18n.localize("NAME.Athletics"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty: "hard"}, context : {failure : `${this.effect.name}: cannot move or take actions`}}).then(test => { + test.roll(); + }) +} \ No newline at end of file diff --git a/scripts/Lrb1S2aK7SFVD0C7.js b/scripts/Lrb1S2aK7SFVD0C7.js new file mode 100644 index 0000000..2f40127 --- /dev/null +++ b/scripts/Lrb1S2aK7SFVD0C7.js @@ -0,0 +1,9 @@ +if (args.totalWoundLoss > 0) +{ + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if (test.failed) + { + await args.actor.addCondition("fatigued"); + } +} \ No newline at end of file diff --git a/scripts/Lu27iXtJVkrJ8bOx.js b/scripts/Lu27iXtJVkrJ8bOx.js new file mode 100644 index 0000000..73cb61d --- /dev/null +++ b/scripts/Lu27iXtJVkrJ8bOx.js @@ -0,0 +1 @@ +return !args.skill?.name?.includes(game.i18n.localize("NAME.Stealth")) \ No newline at end of file diff --git a/scripts/LxdLkPxH3SFvYrCJ.js b/scripts/LxdLkPxH3SFvYrCJ.js new file mode 100644 index 0000000..8f8a38c --- /dev/null +++ b/scripts/LxdLkPxH3SFvYrCJ.js @@ -0,0 +1,4 @@ +if (args.effect.conditionId == "ablaze") +{ + args.data.formula += ` - ${this.actor.system.characteristics.t.bonus}` +} \ No newline at end of file diff --git a/scripts/LyAK0dVDS5L09yq2.js b/scripts/LyAK0dVDS5L09yq2.js new file mode 100644 index 0000000..e8b817a --- /dev/null +++ b/scripts/LyAK0dVDS5L09yq2.js @@ -0,0 +1,9 @@ +let caster = this.effect.sourceActor + +if (caster) +{ + let bonus = caster.system.characteristics.wp.bonus + this.actor.modifyWounds(bonus) + + this.script.scriptMessage(`${this.actor.prototypeToken.name} regains ${bonus} Wounds`) +} \ No newline at end of file diff --git a/scripts/M0XhKnWjG14pk3iH.js b/scripts/M0XhKnWjG14pk3iH.js new file mode 100644 index 0000000..1431d31 --- /dev/null +++ b/scripts/M0XhKnWjG14pk3iH.js @@ -0,0 +1 @@ +return !args.skill?.name.includes("Channelling") && args.type != "channelling" && args.skill?.name != game.i18n.localize("NAME.Charm") && !args.skill?.name.includes("Language (Magick)") && args.type != "cast" \ No newline at end of file diff --git a/scripts/M2FshTX4PjKFVU8y.js b/scripts/M2FshTX4PjKFVU8y.js new file mode 100644 index 0000000..6aa49fc --- /dev/null +++ b/scripts/M2FshTX4PjKFVU8y.js @@ -0,0 +1,9 @@ +args.flags.earCount = Number.isNumeric(args.flags.earCount) ? args.flags.earCount+1 : 1; +if (args.characteristic == "fel") +{ + args.fields.modifier -= 5; +} +if (args.flags.earCount == 2 && args.skill?.name == game.i18n.localize("NAME.Perception")) +{ + args.fields.modifier -= 20; +} diff --git a/scripts/M5bh0heeafA2fQQ8.js b/scripts/M5bh0heeafA2fQQ8.js new file mode 100644 index 0000000..3583c70 --- /dev/null +++ b/scripts/M5bh0heeafA2fQQ8.js @@ -0,0 +1,8 @@ +if (args.test.spell?.getFlag("wfrp4e", "boonOfTzeentch")) +{ + if (args.test.result.minormis || args.test.result.majormis || args.test.result.catastrophicmis) + { + this.script.scriptMessage(`${this.effect.name} quits your mind in disgust and erases itself from your grimoire!`) + this.effect.sourceItem.delete(); + } +} \ No newline at end of file diff --git a/scripts/M9VgeYGiUO97ZUW4.js b/scripts/M9VgeYGiUO97ZUW4.js new file mode 100644 index 0000000..4cb39af --- /dev/null +++ b/scripts/M9VgeYGiUO97ZUW4.js @@ -0,0 +1,12 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.hCadFsTRvLN9faaY") +let data = item.toObject(); +data.system.location.value = "Jaw" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (!test.succeeded) +{ + args.actor.addCondition("unconscious") +} + diff --git a/scripts/MCK6WyjwYT28lsTN.js b/scripts/MCK6WyjwYT28lsTN.js new file mode 100644 index 0000000..e13fea1 --- /dev/null +++ b/scripts/MCK6WyjwYT28lsTN.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.u0CFf3xwiyidD9T5") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/MDLttXplnNthncGr.js b/scripts/MDLttXplnNthncGr.js new file mode 100644 index 0000000..b7a08ee --- /dev/null +++ b/scripts/MDLttXplnNthncGr.js @@ -0,0 +1 @@ +return args.type == "cast" && ["death", "necromancy", "life", "light", "heavens"].includes(args.spell?.system.lore.value) \ No newline at end of file diff --git a/scripts/MFKhU9vp8bQpHP3I.js b/scripts/MFKhU9vp8bQpHP3I.js new file mode 100644 index 0000000..126a0b5 --- /dev/null +++ b/scripts/MFKhU9vp8bQpHP3I.js @@ -0,0 +1,14 @@ +let value = parseInt(this.item.specification.value) +let name = this.actor.prototypeToken.name + +if (game.user.isGM && game.user.targets.size) +{ + game.user.targets.forEach(t => { + t.actor.applyTerror(value, name) + }) + game.user.updateTokenTargets([]); +} +else +{ + game.wfrp4e.utility.postTerror(value, name) +} \ No newline at end of file diff --git a/scripts/MI2GgNi3fZtUCtQD.js b/scripts/MI2GgNi3fZtUCtQD.js new file mode 100644 index 0000000..4a7e8fc --- /dev/null +++ b/scripts/MI2GgNi3fZtUCtQD.js @@ -0,0 +1 @@ +return ["int", "wp"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/MJB6WbZSF6Briz30.js b/scripts/MJB6WbZSF6Briz30.js new file mode 100644 index 0000000..13bb16c --- /dev/null +++ b/scripts/MJB6WbZSF6Briz30.js @@ -0,0 +1 @@ +return args.item?.name == game.i18n.localize("NAME.Leadership") \ No newline at end of file diff --git a/scripts/MSJWJEUrX7ZmMvAD.js b/scripts/MSJWJEUrX7ZmMvAD.js new file mode 100644 index 0000000..ad91ce3 --- /dev/null +++ b/scripts/MSJWJEUrX7ZmMvAD.js @@ -0,0 +1 @@ +return !(args.skill?.name.includes(game.i18n.localize("NAME.Ranged")) || args.item?.isRanged || args.item?.name == game.i18n.localize("NAME.Charm")) \ No newline at end of file diff --git a/scripts/McLR9YcgVUG3MooC.js b/scripts/McLR9YcgVUG3MooC.js new file mode 100644 index 0000000..38225fd --- /dev/null +++ b/scripts/McLR9YcgVUG3MooC.js @@ -0,0 +1 @@ +args.applyTB = false; \ No newline at end of file diff --git a/scripts/MfxWXZwaZUjGSBqw.js b/scripts/MfxWXZwaZUjGSBqw.js new file mode 100644 index 0000000..4e012c4 --- /dev/null +++ b/scripts/MfxWXZwaZUjGSBqw.js @@ -0,0 +1,5 @@ +if (this.actor.hasCondition("ablaze")) +{ + this.script.scriptNotification("Immune to Ablaze") + await this.actor.hasCondition("ablaze")?.delete() +} \ No newline at end of file diff --git a/scripts/MfxzwJz2o9ho2hOM.js b/scripts/MfxzwJz2o9ho2hOM.js new file mode 100644 index 0000000..664e6ec --- /dev/null +++ b/scripts/MfxzwJz2o9ho2hOM.js @@ -0,0 +1 @@ +return args.skill?.name == "Lore (Apothecary)" \ No newline at end of file diff --git a/scripts/MgMMoC4Umpg7fmNI.js b/scripts/MgMMoC4Umpg7fmNI.js new file mode 100644 index 0000000..ef41566 --- /dev/null +++ b/scripts/MgMMoC4Umpg7fmNI.js @@ -0,0 +1,24 @@ +// Apply changes when the mask is worn + +if (args.equipped) { + this.actor.createEmbeddedDocuments("ActiveEffect", [this.item.effects.contents[1]?.convertToApplied()]) + this.script.scriptMessage(`${this.actor.name} dons the ${this.item.name}.
+ They cannot cast Spells or pray for Blessings and Miracles.
+ If they wear the mask for more than an hour or benefit from any of its effects, they are exposed to @Corruption[moderate]{Moderate Corruption}. + `, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} + +// Notify of lingering effects when mask is removed +else if (!args.equipped) +{ + await this.item.effects.contents[0].delete(); + await this.item.update({name : this.item.name += " (Used)"}) + this.script.scriptMessage(`${this.item.name} on ${this.actor.name} has been taken off and loses its properties. However, the effects last for [[1d10+4]] days, after which they should be manually removed.`, + {whisper: ChatMessage.getWhisperRecipients("GM")} + ) + +} + + + diff --git a/scripts/MgTqCMRjxhezT73T.js b/scripts/MgTqCMRjxhezT73T.js new file mode 100644 index 0000000..91cd17f --- /dev/null +++ b/scripts/MgTqCMRjxhezT73T.js @@ -0,0 +1 @@ +return args.fields.hitLocation == "head" && args.weapon?.system.properties.qualities.pummel \ No newline at end of file diff --git a/scripts/MgZreqq3Jua10c8s.js b/scripts/MgZreqq3Jua10c8s.js new file mode 100644 index 0000000..b3da966 --- /dev/null +++ b/scripts/MgZreqq3Jua10c8s.js @@ -0,0 +1 @@ +return !["ws", "bs", "s", "fel", "ag", "t", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/Mhb67xufvA9uWO21.js b/scripts/Mhb67xufvA9uWO21.js new file mode 100644 index 0000000..05b8bc7 --- /dev/null +++ b/scripts/Mhb67xufvA9uWO21.js @@ -0,0 +1,8 @@ +let actorSize = game.wfrp4e.config.actorSizeNums[args.actor.details.size.value] +let attackerSize = game.wfrp4e.config.actorSizeNums[args.attacker.details.size.value] + +if (attackerSize > actorSize) +{ + args.actor.addCondition("prone") + this.script.scriptMessage(`Tail Attack: ${args.actor.prototypeToken.name} is now Prone`) +} \ No newline at end of file diff --git a/scripts/Mir4FMHQRdVqazAF.js b/scripts/Mir4FMHQRdVqazAF.js new file mode 100644 index 0000000..7ad1e1f --- /dev/null +++ b/scripts/Mir4FMHQRdVqazAF.js @@ -0,0 +1,13 @@ +let actorSize = game.wfrp4e.config.actorSizeNums[args.actor.details.size.value] +let attackerSize = game.wfrp4e.config.actorSizeNums[args.attacker.details.size.value] + +if (attackerSize > actorSize) +{ + let msg = `Tongue Attack: ${args.actor.prototypeToken.name} is now @Condition[Entangled]`; + await args.actor.addCondition("entangled"); + if (actorSize <= 2) + { + msg += `and @Condition[Engaged]` + } + this.script.scriptMessage(msg, {speaker : {alias: args.attacker.prototypeToken.name}}) +} \ No newline at end of file diff --git a/scripts/MkEcdViivk7abf1x.js b/scripts/MkEcdViivk7abf1x.js new file mode 100644 index 0000000..0ae9907 --- /dev/null +++ b/scripts/MkEcdViivk7abf1x.js @@ -0,0 +1 @@ +args.actor.flags.meleeDamageIncrease += 1 \ No newline at end of file diff --git a/scripts/MnXny8SCh6OceJc9.js b/scripts/MnXny8SCh6OceJc9.js new file mode 100644 index 0000000..544e090 --- /dev/null +++ b/scripts/MnXny8SCh6OceJc9.js @@ -0,0 +1 @@ +return args.characteristic == "int" \ No newline at end of file diff --git a/scripts/MnqQkXVp20Lw84I1.js b/scripts/MnqQkXVp20Lw84I1.js new file mode 100644 index 0000000..93be773 --- /dev/null +++ b/scripts/MnqQkXVp20Lw84I1.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "difficult"}}) +await test.roll(); +if (test.failed) +{ + this.script.scriptMessage(await this.actor.applyBasicDamage(3, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true})) +} \ No newline at end of file diff --git a/scripts/Mp8UjuCLa9jdzhBS.js b/scripts/Mp8UjuCLa9jdzhBS.js new file mode 100644 index 0000000..0e448e2 --- /dev/null +++ b/scripts/Mp8UjuCLa9jdzhBS.js @@ -0,0 +1,20 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + +if (test.failed) +{ + if (!this.actor.hasCondition("fatigued")) + { + await this.actor.addCondition("fatigued"); + } + else + { + await this.actor.addCondition("blinded"); + await this.actor.addCondition("deafened"); + } + + if (((this.actor.hasCondition("blinded").conditionValue || 0) + (this.actor.hasCondition("deafened").conditionValue || 0)) > this.actor.system.characteristics.i.bonus) + { + await this.actor.addCondition("unconscious"); + } +} \ No newline at end of file diff --git a/scripts/Msygc7oQQPB5fw0b.js b/scripts/Msygc7oQQPB5fw0b.js new file mode 100644 index 0000000..2a7c502 --- /dev/null +++ b/scripts/Msygc7oQQPB5fw0b.js @@ -0,0 +1,14 @@ +let test = this.effect.sourceTest; +if (test.failed && (test.result.roll % 11 == 0 || test.result.roll == 100)) +{ + let points = await new Roll("1d10").roll(); + game.dice3d?.showForRoll(points) + this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value + points.total}) + this.script.scriptMessage(`Gains ${points.total} Corruption`) +} +else +{ + let points = this.effect.sourceTest.result.overcast.usage.other.current; + this.actor.update({"system.status.corruption.value" : this.actor.system.status.corruption.value - points}) + this.script.scriptMessage(`Loses ${points} Corruption`) +} \ No newline at end of file diff --git a/scripts/MwUzyAgd0yPnmZCH.js b/scripts/MwUzyAgd0yPnmZCH.js new file mode 100644 index 0000000..aef44fc --- /dev/null +++ b/scripts/MwUzyAgd0yPnmZCH.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.klCJX0mNpXYH5AIx") +let data = item.toObject(); +data.name = data.name.replace("Target", "Strangers"); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/Myl1Ishu9GBraYUZ.js b/scripts/Myl1Ishu9GBraYUZ.js new file mode 100644 index 0000000..7bc2097 --- /dev/null +++ b/scripts/Myl1Ishu9GBraYUZ.js @@ -0,0 +1 @@ +this.actor.removeCondition("bleeding") \ No newline at end of file diff --git a/scripts/N2MeOlf0GjPiRcSb.js b/scripts/N2MeOlf0GjPiRcSb.js new file mode 100644 index 0000000..8b92869 --- /dev/null +++ b/scripts/N2MeOlf0GjPiRcSb.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupCharacteristic("dex", {context : {failure : "Drops the item"}}) +await test.roll(); \ No newline at end of file diff --git a/scripts/N7nGncsPrTz2ZbDA.js b/scripts/N7nGncsPrTz2ZbDA.js new file mode 100644 index 0000000..dc64a26 --- /dev/null +++ b/scripts/N7nGncsPrTz2ZbDA.js @@ -0,0 +1 @@ +return !args.options.dodge || !this.actor.isMounted \ No newline at end of file diff --git a/scripts/N8hA6ysHCTlLd8Kj.js b/scripts/N8hA6ysHCTlLd8Kj.js new file mode 100644 index 0000000..1d8cf17 --- /dev/null +++ b/scripts/N8hA6ysHCTlLd8Kj.js @@ -0,0 +1,86 @@ +let characteristics = { + "ws" : 0, + "bs" : 0, + "s" : 0, + "t" : 5, + "i" : 15, + "ag" : 0, + "dex" : 10, + "int" : 15, + "wp" : 15, + "fel" : 0 +} +let skills = ["Channelling", "Cool", "Dodge", "Entertain (Storytelling)", "Intuition", "Language (Magick)", "Lore (Magic)", "Perception"] +let skillAdvancements = [5, 15, 10, 10, 15, 10, 10, 20] +let talents = ["Arcane Magic", "Petty Magic", "Second Sight"] +let trappings = ["Hand Weapon", "Quarterstaff", "Ritual Dress incorporating many ingredients and fetishes"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + items.push({name : trapping, type : "trapping", "system.trappingType.value" : "clothingAccessories"}) + //ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/N9kA46ZQ9LiRjy6T.js b/scripts/N9kA46ZQ9LiRjy6T.js new file mode 100644 index 0000000..a19284c --- /dev/null +++ b/scripts/N9kA46ZQ9LiRjy6T.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Haggle") || args.skill?.name == game.i18n.localize("NAME.Gossip"); \ No newline at end of file diff --git a/scripts/NDvNGATDM2xPFJK0.js b/scripts/NDvNGATDM2xPFJK0.js new file mode 100644 index 0000000..58c8edd --- /dev/null +++ b/scripts/NDvNGATDM2xPFJK0.js @@ -0,0 +1,21 @@ +brokenbone = await fromUuid("Compendium.wfrp4e-core.items.hCadFsTRvLN9faaY") +teeth = await fromUuid("Compendium.wfrp4e-core.items.fBcZhOBn8IpoVqQ1") +tongue = await fromUuid("Compendium.wfrp4e-core.items.rkJA1DlK51QuRlJy") +brokenbone = brokenbone.toObject(); +teeth = teeth.toObject(); +tongue = tongue.toObject(); + + +let roll = await new Roll("1d10").roll(); +roll.toMessage(this.script.getChatData({flavor : "Teeth Lost"})) + +teeth.system.location.value = `${roll.total} ${teeth.system.location.value}` +brokenbone.system.location.value = "Jaw" +this.actor.createEmbeddedDocuments("Item", [brokenbone, teeth, tongue]) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty : "vhard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("unconscious") +} \ No newline at end of file diff --git a/scripts/NNytXz5XFPrEF6dw.js b/scripts/NNytXz5XFPrEF6dw.js new file mode 100644 index 0000000..ac177e6 --- /dev/null +++ b/scripts/NNytXz5XFPrEF6dw.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == this.item.system.location.key && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 1); +} + \ No newline at end of file diff --git a/scripts/NQSvFWhmBQAyx5Zz.js b/scripts/NQSvFWhmBQAyx5Zz.js new file mode 100644 index 0000000..6f94648 --- /dev/null +++ b/scripts/NQSvFWhmBQAyx5Zz.js @@ -0,0 +1 @@ +return args.item?.isRanged \ No newline at end of file diff --git a/scripts/Na7Nanl9YmxZlTo7.js b/scripts/Na7Nanl9YmxZlTo7.js new file mode 100644 index 0000000..e4f212b --- /dev/null +++ b/scripts/Na7Nanl9YmxZlTo7.js @@ -0,0 +1 @@ +return args.type != "cast" && args.type != "channelling") \ No newline at end of file diff --git a/scripts/NdquQqyuOkGCj8Uo.js b/scripts/NdquQqyuOkGCj8Uo.js new file mode 100644 index 0000000..3e25112 --- /dev/null +++ b/scripts/NdquQqyuOkGCj8Uo.js @@ -0,0 +1,8 @@ +let darkvision = await fromUuid("Compendium.wfrp4e-core.items.Item.JQa5DLnTs2SEzRrc") +let fear = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn") +let acutesense = await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS") +fear = fear.toObject(); +fear.system.specification.value = 1; +acutesense = acutesense.toObject(); +acutesense.name += " (Smell)"; +this.actor.createEmbeddedDocuments("Item", [darkvision, fear, acutesense], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/NkqtQaLEGYst0PUO.js b/scripts/NkqtQaLEGYst0PUO.js new file mode 100644 index 0000000..a5fa1cd --- /dev/null +++ b/scripts/NkqtQaLEGYst0PUO.js @@ -0,0 +1,5 @@ +if (this.actor.has("Magic Resistance", "talent")) + return + +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.eowbsW6oHGSNJmxV") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/NnA4zpuO6iUXKhH7.js b/scripts/NnA4zpuO6iUXKhH7.js new file mode 100644 index 0000000..c49dff4 --- /dev/null +++ b/scripts/NnA4zpuO6iUXKhH7.js @@ -0,0 +1,7 @@ +if ((args.opposedTest.attackerTest.item && args.opposedTest.attackerTest.item.isMelee) || (args.opposedTest.attackerTest.item && !args.opposedTest.attackerTest.item.name.includes("Ranged"))) +{ + let AP = parseInt(this.effect.sourceTest.result.SL) + args.modifiers.ap.value += AP; + args.modifiers.ap.magical += AP; + args.modifiers.ap.details.push(`${this.effect.name} (${AP})`) +} \ No newline at end of file diff --git a/scripts/NnDq4miIPNEtZUWb.js b/scripts/NnDq4miIPNEtZUWb.js new file mode 100644 index 0000000..14c9bf3 --- /dev/null +++ b/scripts/NnDq4miIPNEtZUWb.js @@ -0,0 +1,7 @@ +args.test.result.critModifier = args.test.result.critModifier || 0; +args.test.result.critModifier += 20; + +if (args.test.result.critical) +{ + args.test.result.critical = `${game.i18n.localize("Critical")} (+${args.test.result.critModifier})` +} \ No newline at end of file diff --git a/scripts/NrVFrIXM8GnIbojv.js b/scripts/NrVFrIXM8GnIbojv.js new file mode 100644 index 0000000..c13398d --- /dev/null +++ b/scripts/NrVFrIXM8GnIbojv.js @@ -0,0 +1 @@ +args.item.system.damage.value = `SB + ${this.actor.system.characteristics.fel.bonus}`; \ No newline at end of file diff --git a/scripts/O7lXFZLrLdFaShGR.js b/scripts/O7lXFZLrLdFaShGR.js new file mode 100644 index 0000000..e5cf296 --- /dev/null +++ b/scripts/O7lXFZLrLdFaShGR.js @@ -0,0 +1 @@ +args.options.catfall = true; \ No newline at end of file diff --git a/scripts/O9fc0hLHdkTgSuLg.js b/scripts/O9fc0hLHdkTgSuLg.js new file mode 100644 index 0000000..cc67541 --- /dev/null +++ b/scripts/O9fc0hLHdkTgSuLg.js @@ -0,0 +1,8 @@ +let bite = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let venom = await fromUuid("Compendium.wfrp4e-core.items.gFkRm9wS65qe18Xv") +let biteData = bite.toObject(); +let venomData = venom.toObject(); + +biteData.system.specification.value = 3 - this.actor.characteristics.s.bonus; +venomData.system.specification.value = "Average" +this.actor.createEmbeddedDocuments("Item", [biteData, venomData], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/OCFrGXAYfo9OYnhc.js b/scripts/OCFrGXAYfo9OYnhc.js new file mode 100644 index 0000000..142913d --- /dev/null +++ b/scripts/OCFrGXAYfo9OYnhc.js @@ -0,0 +1 @@ +return args.item?.system.magicMissile?.value || args.item?.system.attackType \ No newline at end of file diff --git a/scripts/OEy2lxvic37dRBEt.js b/scripts/OEy2lxvic37dRBEt.js new file mode 100644 index 0000000..583f063 --- /dev/null +++ b/scripts/OEy2lxvic37dRBEt.js @@ -0,0 +1,30 @@ +let filters = [ + { + property : "type", + value : "spell" + }, + { + property : "system.lore.value", + value : "petty" + } +] + +let petty = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 3, "Choose 3 Petty Spells") + + +filters = [ + { + property : "type", + value : "spell" + }, + { + property : "system.lore.value", + value : "" + } +] + +let arcane = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 3, "Choose 3 Arcane Spells") + +let items = petty.concat(arcane).map(i => i.toObject()) + +this.actor.createEmbeddedDocuments("Item", items); \ No newline at end of file diff --git a/scripts/OGX4BneaYAnV25TO.js b/scripts/OGX4BneaYAnV25TO.js new file mode 100644 index 0000000..7e752b3 --- /dev/null +++ b/scripts/OGX4BneaYAnV25TO.js @@ -0,0 +1,40 @@ +let chatData = { whisper: ChatMessage.getWhisperRecipients("GM") } +let message = "" + +let wounds = duplicate(this.actor.status.wounds) +let regenRoll = await new Roll("1d10").roll(); +let regen = regenRoll.total; + +if (wounds.value >= wounds.max) + return + +if (wounds.value > 0) +{ + wounds.value += regen + if (wounds.value > wounds.max) + { + wounds.value = wounds.max + } + message += `${this.actor.name} regains ${regen} Wounds.` + + if (regen == 10) + { + message += `
Additionally, they regenerate a Critical Wound.` + } +} +else if (regen >= 8) +{ + message += `${this.actor.name} rolled a ${regen} and regains 1 Wound.` + wounds.value += 1 + if (regen == 10) + { + message += `
Additionally, they regenerate a Critical Wound.` + } +} +else +{ + message += `${this.actor.name} Regenerate roll of ${regen} - No effect.` +} + +await this.actor.update({ "system.status.wounds": wounds }) +this.script.scriptMessage(message, { whisper: ChatMessage.getWhisperRecipients("GM") }) \ No newline at end of file diff --git a/scripts/OJMgS8ZQv0j4tEFf.js b/scripts/OJMgS8ZQv0j4tEFf.js new file mode 100644 index 0000000..cf6f0f5 --- /dev/null +++ b/scripts/OJMgS8ZQv0j4tEFf.js @@ -0,0 +1 @@ +return ["ws", "bs", "s", "fel", "ag", "t", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/OMAUX1fnHyIpplul.js b/scripts/OMAUX1fnHyIpplul.js new file mode 100644 index 0000000..b2a1c64 --- /dev/null +++ b/scripts/OMAUX1fnHyIpplul.js @@ -0,0 +1 @@ +return !["fel", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/OXoqtpOdfkURZbuL.js b/scripts/OXoqtpOdfkURZbuL.js new file mode 100644 index 0000000..ac11a0d --- /dev/null +++ b/scripts/OXoqtpOdfkURZbuL.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.yRhhOlt18COq4e1q") +let data = item.toObject() +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) diff --git a/scripts/Oa9FmLXRRZRpLrrq.js b/scripts/Oa9FmLXRRZRpLrrq.js new file mode 100644 index 0000000..d20b213 --- /dev/null +++ b/scripts/Oa9FmLXRRZRpLrrq.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupTrait(this.item); +await test.roll(); \ No newline at end of file diff --git a/scripts/OcQe0zfksf1DCJYe.js b/scripts/OcQe0zfksf1DCJYe.js new file mode 100644 index 0000000..87d4ead --- /dev/null +++ b/scripts/OcQe0zfksf1DCJYe.js @@ -0,0 +1,17 @@ +args.actor.system.characteristics.s.value += 30 +args.actor.system.characteristics.t.value += 30 + +args.actor.system.characteristics.s.bonus += 3 +args.actor.system.characteristics.t.bonus += 3 + +if (args.actor.system.characteristics.s.value > 100) +{ + args.actor.system.characteristics.s.value = 100 + args.actor.system.characteristics.s.bonus = 10 +} + +if (args.actor.system.characteristics.t.value > 100) +{ + args.actor.system.characteristics.t.value = 100 +args.actor.system.characteristics.t.bonus = 10 +} \ No newline at end of file diff --git a/scripts/OeCgX3hIsfLfmGvC.js b/scripts/OeCgX3hIsfLfmGvC.js new file mode 100644 index 0000000..6777873 --- /dev/null +++ b/scripts/OeCgX3hIsfLfmGvC.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Perception")) +await test.roll(); +if (test.succeeded) +{ + this.actor.removeCondition("surprised"); +} \ No newline at end of file diff --git a/scripts/OeKeQAAcJhdI4Qky.js b/scripts/OeKeQAAcJhdI4Qky.js new file mode 100644 index 0000000..df7e559 --- /dev/null +++ b/scripts/OeKeQAAcJhdI4Qky.js @@ -0,0 +1,5 @@ +if (this.actor.hasCondition("stunned") || this.actor.hasCondition("unconscious")) +{ + this.script.scriptNotification("Disabled!"); + await this.effect.update({"disabled" : true}) +} \ No newline at end of file diff --git a/scripts/Ofn6vDbP3fZ4UlSc.js b/scripts/Ofn6vDbP3fZ4UlSc.js new file mode 100644 index 0000000..a993e5e --- /dev/null +++ b/scripts/Ofn6vDbP3fZ4UlSc.js @@ -0,0 +1,2 @@ +args.fields.modifier += -20; + \ No newline at end of file diff --git a/scripts/OgSI0Z6SHjYuqKIz.js b/scripts/OgSI0Z6SHjYuqKIz.js new file mode 100644 index 0000000..af30fee --- /dev/null +++ b/scripts/OgSI0Z6SHjYuqKIz.js @@ -0,0 +1,16 @@ +let blows = this.item.getFlag("wfrp4e", "blows") || 0 +let difficulties = Object.keys(game.wfrp4e.config.difficultyLabels) + +blows = Math.clamped(blows, 0, difficulties.length - 1) +if (this.item.system.protects[args.opposedTest.result.hitloc.value]) +{ + let difficulty = difficulties[blows]; + this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields: {difficulty}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => { + await test.roll(); + if (test.failed) + { + this.script.scriptMessage(`${this.actor.name} must break from combat and flee until they pass a Challenging (+0) Willpower Test`); + this.item.setFlag("wfrp4e", "failedCool", true); + } + }) +} \ No newline at end of file diff --git a/scripts/OicQSEVZBbqLtrcf.js b/scripts/OicQSEVZBbqLtrcf.js new file mode 100644 index 0000000..796995b --- /dev/null +++ b/scripts/OicQSEVZBbqLtrcf.js @@ -0,0 +1,4 @@ +let choice = await ItemDialog.create(this.actor.itemTypes.critical, (this.effect.sourceTest.result.overcast.usage.other.current || 1), "Choose the Critical Wounds to heal (cannot reattach body parts)") + +this.script.scriptMessage(`Healed ${choice.map(i => i.name).join(`, `)}`); +this.actor.deleteEmbeddedDocuments("Item", choice.map(i => i.id)) \ No newline at end of file diff --git a/scripts/OnkEe4ISru1hjJWP.js b/scripts/OnkEe4ISru1hjJWP.js new file mode 100644 index 0000000..5631383 --- /dev/null +++ b/scripts/OnkEe4ISru1hjJWP.js @@ -0,0 +1 @@ +this.actor.flags.useless[this.item.system.location.key] = true; \ No newline at end of file diff --git a/scripts/Op88kMtimSEWlY2h.js b/scripts/Op88kMtimSEWlY2h.js new file mode 100644 index 0000000..3fd9036 --- /dev/null +++ b/scripts/Op88kMtimSEWlY2h.js @@ -0,0 +1,10 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectData : [this.item.effects.contents[1].convertToApplied()]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/OqLKL0PiCvYH2QxW.js b/scripts/OqLKL0PiCvYH2QxW.js new file mode 100644 index 0000000..1641e71 --- /dev/null +++ b/scripts/OqLKL0PiCvYH2QxW.js @@ -0,0 +1,13 @@ +if (args.test.options.wallcrawler) +{ + if (parseInt(args.test.result.SL) < 0 || args.test.failed) + { + if (parseInt(args.test.result.SL) < 0) + { + args.test.result.SL = "+0"; + args.test.result.description = game.i18n.localize("ROLL.MarginalSuccess"); + } + args.test.result.outcome = "success" + args.test.result.other.push(`${this.effect.name}: Minimum +0 SL`) + } +} \ No newline at end of file diff --git a/scripts/OqxeuZfZDfm9ax6h.js b/scripts/OqxeuZfZDfm9ax6h.js new file mode 100644 index 0000000..cf5f9ce --- /dev/null +++ b/scripts/OqxeuZfZDfm9ax6h.js @@ -0,0 +1 @@ +this.actor.system.status.addArmour(1, {locations : "head", source : this.effect}) \ No newline at end of file diff --git a/scripts/OvIELZLvnlN2H2uw.js b/scripts/OvIELZLvnlN2H2uw.js new file mode 100644 index 0000000..73a23e7 --- /dev/null +++ b/scripts/OvIELZLvnlN2H2uw.js @@ -0,0 +1,11 @@ +args.update({light : { + "dim": 2, + "bright": 1, + "alpha": 0.5, + "animation": { + "speed": 4, + "intensity": 4, + "type": "pulse", + }, + "color": "#949bff", +}}); \ No newline at end of file diff --git a/scripts/OxsBnnVI3Smpknpb.js b/scripts/OxsBnnVI3Smpknpb.js new file mode 100644 index 0000000..519a2a2 --- /dev/null +++ b/scripts/OxsBnnVI3Smpknpb.js @@ -0,0 +1,5 @@ +if (this.actor.status.advantage.value && !this.actor.sameSideAs(this.effect.sourceActor)) +{ + this.actor.modifyAdvantage(-1); + this.script.scriptNotification(`${this.actor.name} loses 1 Advantage`); +} \ No newline at end of file diff --git a/scripts/Oz7pWF9mEc1pQypj.js b/scripts/Oz7pWF9mEc1pQypj.js new file mode 100644 index 0000000..c206691 --- /dev/null +++ b/scripts/Oz7pWF9mEc1pQypj.js @@ -0,0 +1,3 @@ +let roll = await new Roll("1d10").roll(); +roll.toMessage({flavor : this.effect.name, speaker : {alias : this.actor.prototypeToken.name}}) +this.actor.addCondition("stunned", roll.total) \ No newline at end of file diff --git a/scripts/P29tT1eMMdAw3CPF.js b/scripts/P29tT1eMMdAw3CPF.js new file mode 100644 index 0000000..28be2ef --- /dev/null +++ b/scripts/P29tT1eMMdAw3CPF.js @@ -0,0 +1,12 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.3S4OYOZLauXctmev") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("unconscious") +} \ No newline at end of file diff --git a/scripts/PBW6IZtwawNHxB6y.js b/scripts/PBW6IZtwawNHxB6y.js new file mode 100644 index 0000000..f0a42aa --- /dev/null +++ b/scripts/PBW6IZtwawNHxB6y.js @@ -0,0 +1 @@ +return args.options.dodge && this.actor.isMounted \ No newline at end of file diff --git a/scripts/PI1QNaKFeqood6d7.js b/scripts/PI1QNaKFeqood6d7.js new file mode 100644 index 0000000..dcae646 --- /dev/null +++ b/scripts/PI1QNaKFeqood6d7.js @@ -0,0 +1,15 @@ +if (args.attackerTest.weapon && args.defenderTest.weapon) +{ + + let attackerReach = game.wfrp4e.config.reachNum[args.attackerTest.weapon.reach.value] + let defenderReach = game.wfrp4e.config.reachNum[args.defenderTest.weapon.reach.value] + + if (attackerReach == defenderReach) + attackerReach = attackerReach < 7 ? attackerReach + 1 : attackerReach + + attackerReach = game.wfrp4e.utility.findKey(attackerReach, game.wfrp4e.config.reachNum) + defenderReach = game.wfrp4e.utility.findKey(defenderReach, game.wfrp4e.config.reachNum) + + args.attackerTest.weapon.reach.value = attackerReach + args.defenderTest.weapon.reach.value = defenderReach +} \ No newline at end of file diff --git a/scripts/PMISUsaEDBA7D3od.js b/scripts/PMISUsaEDBA7D3od.js new file mode 100644 index 0000000..d9cd2ce --- /dev/null +++ b/scripts/PMISUsaEDBA7D3od.js @@ -0,0 +1,33 @@ +// After consumption, the user gains the Magic Resistance 3 Creature Trait, +// reducing the SL of any spell affecting it by 3. +// This effect lasts for one hour. +const hasMagicResistance = this.actor.has("Magic Resistance") + +if (hasMagicResistance === undefined) { + fromUuid("Compendium.wfrp4e-core.items.yrkI7ATjqLPDTFmZ").then(trait => { + let traitItem = trait.toObject() + traitItem.system.specification.value = 2 + this.actor.createEmbeddedDocuments("Item", [traitItem], {fromEffect: this.effect.id}) + }) + this.script.scriptMessage(`

${this.actor.prototypeToken.name} has gained the Magic Resistance Trait. This effect lasts for one hour.

`, {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true }) +} + +if (hasMagicResistance) { + // Multiple doses may be consumed at once, with each one adding an additional 1 to the Magic Resistance rating and increasing the duration by one hour. + let msg = `

${this.actor.prototypeToken.name} has enhanced their Magic Resistance by 1 to Rating ${parseInt(hasMagicResistance.system.specification.value)}. This effect lasts for one hour.

` + + // Resist toxic effect + this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), { + fields: {difficulty: "challenging"} + }).then(async test => { + await test.roll() + + // If they fail ... + if (!test.succeeded) { + msg += `

However, they begin to ooze the thick, poisonous slime that coats every Dreadmaw. They have gained 1 Poisoned Condition now and should continue to receive an additional @Condition[Poisoned] Condition at the end of each of the round.

+

If they are still alive at the end of 10 rounds, the effect ends and all Poisoned Conditions gained from ${this.effect.name} are removed.

` + this.actor.addCondition("poisoned", 1) + } + this.script.scriptMessage(msg, {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true }) + }) +} diff --git a/scripts/PVjaKAHTKDA0rA9J.js b/scripts/PVjaKAHTKDA0rA9J.js new file mode 100644 index 0000000..8942127 --- /dev/null +++ b/scripts/PVjaKAHTKDA0rA9J.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); \ No newline at end of file diff --git a/scripts/PdClojv7yNgQpOUc.js b/scripts/PdClojv7yNgQpOUc.js new file mode 100644 index 0000000..071f833 --- /dev/null +++ b/scripts/PdClojv7yNgQpOUc.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Endurance"); \ No newline at end of file diff --git a/scripts/PeZYj8b0vedyJj00.js b/scripts/PeZYj8b0vedyJj00.js new file mode 100644 index 0000000..51a0a44 --- /dev/null +++ b/scripts/PeZYj8b0vedyJj00.js @@ -0,0 +1,14 @@ +// This script needs to be separate because equipTransfer is off on the other effect, and thus won't execute when added to an actor + +let mainEffect = this.item.effects.contents[0]; +if (mainEffect.name.includes("(Lore)")) +{ + let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.magicLores, this.item.img), 1, "Choose Lore"); + if (choice.length) + { + mainEffect.update({name : mainEffect.name.replace("Lore", choice[0].name)}) + this.item.update({name : this.item.name += ` (${choice[0].name})`}) + } +} + +this.effect.delete(); \ No newline at end of file diff --git a/scripts/Pg9C6nJX5QHIdqa9.js b/scripts/Pg9C6nJX5QHIdqa9.js new file mode 100644 index 0000000..f7d625b --- /dev/null +++ b/scripts/Pg9C6nJX5QHIdqa9.js @@ -0,0 +1 @@ +return !args.item?.system.attackType diff --git a/scripts/Ph3TdQw1lGiFr049.js b/scripts/Ph3TdQw1lGiFr049.js new file mode 100644 index 0000000..f7e4852 --- /dev/null +++ b/scripts/Ph3TdQw1lGiFr049.js @@ -0,0 +1,19 @@ + if (!args.test.context.phantasmal && + (this.actor.isOpposing || args.test.context.defending) && + args.test.result.roll % 11 == 0 && + args.test.succeeded && + ["Language (Magick)", "Dodge"].includes(args.test.item?.name)) + { + args.test.context.phantasmal = true; // Flag so items aren't readded if test is edited + let text = `${this.effect.name}: Adding Unstable and Ward` + args.test.result.other.push(text) + this.script.scriptNotification(text); + + let ward = await fromUuid("Compendium.wfrp4e-core.items.Bvd2aZ0gQUXHfCTh") + let wardData = ward.toObject(); + wardData.system.specification.value = 9; + + let unstable = await fromUuid("Compendium.wfrp4e-core.items.D0ImWEIMSDgElsnl") + let unstableData = unstable.toObject(); + this.actor.createEmbeddedDocuments("Item", [wardData, unstableData], {fromEffect: this.effect.id}) + } diff --git a/scripts/PjRxGuUDKGmSmVDc.js b/scripts/PjRxGuUDKGmSmVDc.js new file mode 100644 index 0000000..dd06719 --- /dev/null +++ b/scripts/PjRxGuUDKGmSmVDc.js @@ -0,0 +1,5 @@ +fromUuid("Compendium.wfrp4e-core.items.EO05HX7jql0g605A").then(item => { + item = item.toObject() + item.system.specification.value = this.actor.characteristics.ag.value + this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) +}) \ No newline at end of file diff --git a/scripts/PmELrzD3RmF9qKkO.js b/scripts/PmELrzD3RmF9qKkO.js new file mode 100644 index 0000000..3d5c0b3 --- /dev/null +++ b/scripts/PmELrzD3RmF9qKkO.js @@ -0,0 +1,9 @@ +if (this.item.system.specification.value == "Size") +{ + let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.actorSizes, this.item.img), 1, "Choose Size"); + if (choice[0]) + { + this.item.updateSource({"system.specification.value" : choice[0].name}) + this.effect.updateSource({name : this.effect.name + ` (${choice[0].name})`}) + } +} \ No newline at end of file diff --git a/scripts/PoNnT5EqvLj2r5yf.js b/scripts/PoNnT5EqvLj2r5yf.js new file mode 100644 index 0000000..af693bc --- /dev/null +++ b/scripts/PoNnT5EqvLj2r5yf.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.OutdoorSurvival") && args.skill?.name != game.i18n.localize("NAME.Track"); \ No newline at end of file diff --git a/scripts/PwqTmw7rsG8hzqCS.js b/scripts/PwqTmw7rsG8hzqCS.js new file mode 100644 index 0000000..6ce47bf --- /dev/null +++ b/scripts/PwqTmw7rsG8hzqCS.js @@ -0,0 +1,10 @@ +if (args.test.result.critical && args.test.result.roll % 10 == 0) +{ + game.wfrp4e.tables.findTable("knuckleduster-diseases").roll().then(roll => { + let results = roll.results[0] + + this.script.scriptMessage(`${this.actor.name} contracts @UUID[Compendium.${results.documentCollection}.${results.documentId}]{${results.text}}`, {blind : true, whisper: ChatMessage.getWhisperRecipients("GM") }) + }) + + } + diff --git a/scripts/Q1trEhtqjIiDvFPF.js b/scripts/Q1trEhtqjIiDvFPF.js new file mode 100644 index 0000000..edff223 --- /dev/null +++ b/scripts/Q1trEhtqjIiDvFPF.js @@ -0,0 +1 @@ +args.prefillModifiers.modifier -= 10 * getProperty(this.effect, 'flags.wfrp4e.value') \ No newline at end of file diff --git a/scripts/Q4EQgP4gZR8TTm7S.js b/scripts/Q4EQgP4gZR8TTm7S.js new file mode 100644 index 0000000..2ae696c --- /dev/null +++ b/scripts/Q4EQgP4gZR8TTm7S.js @@ -0,0 +1,9 @@ +let penalty = 0 +if (args.item?.system.attackType) +{ + penalty -= 30 +} +if (args.actor.has("Second Sight", "talent")) + penalty += 10 + +args.prefillModifiers.modifier += penalty \ No newline at end of file diff --git a/scripts/Q68WiUWY7GxiXBbT.js b/scripts/Q68WiUWY7GxiXBbT.js new file mode 100644 index 0000000..536d1ae --- /dev/null +++ b/scripts/Q68WiUWY7GxiXBbT.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.9GNpAqgsKzxZKJpp") +let data = item.toObject(); +data.system.specification.value = "When Alone"; +data.effects[0].disabled = true; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/Q9EmlWmuDac83cJw.js b/scripts/Q9EmlWmuDac83cJw.js new file mode 100644 index 0000000..65e9e2e --- /dev/null +++ b/scripts/Q9EmlWmuDac83cJw.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Climb") || args.skill?.name?.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/QF8LanKNoAlTkQG0.js b/scripts/QF8LanKNoAlTkQG0.js new file mode 100644 index 0000000..bb333fb --- /dev/null +++ b/scripts/QF8LanKNoAlTkQG0.js @@ -0,0 +1 @@ +this.actor.system.status.encumbrance.max += 2 \ No newline at end of file diff --git a/scripts/QKTA2TqZ77pvHWSJ.js b/scripts/QKTA2TqZ77pvHWSJ.js new file mode 100644 index 0000000..1a94aec --- /dev/null +++ b/scripts/QKTA2TqZ77pvHWSJ.js @@ -0,0 +1,9 @@ + this.actor.getActiveTokens().forEach(t => t.document.update({light : { + "dim": 0, + "bright": 0, + "alpha": 0.5, + "animation": { + "type": "", + }, + "color": "#000000", + }})); \ No newline at end of file diff --git a/scripts/QKjR6P1WEHXf4K77.js b/scripts/QKjR6P1WEHXf4K77.js new file mode 100644 index 0000000..1fee3fb --- /dev/null +++ b/scripts/QKjR6P1WEHXf4K77.js @@ -0,0 +1 @@ +args.fields.slBonus -= 2 diff --git a/scripts/QPVVDPcJ4Xi5FmQl.js b/scripts/QPVVDPcJ4Xi5FmQl.js new file mode 100644 index 0000000..340975c --- /dev/null +++ b/scripts/QPVVDPcJ4Xi5FmQl.js @@ -0,0 +1,9 @@ +if(this.actor.hasCondition("fatigued") && args.opposedTest.result.hitloc.value == "head" && (args.opposedTest.attackerTest.result.critical || args.actor.status.wounds.value - args.totalWoundLoss < 0)) +{ + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), { fields: { difficulty: "average" }, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if (test.failed) + { + this.actor.addCondition("unconscious") + } +} \ No newline at end of file diff --git a/scripts/QQ2gHThZHdO4yLLX.js b/scripts/QQ2gHThZHdO4yLLX.js new file mode 100644 index 0000000..abb25c3 --- /dev/null +++ b/scripts/QQ2gHThZHdO4yLLX.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Swim"); \ No newline at end of file diff --git a/scripts/QQPiREc50HT5W2Tr.js b/scripts/QQPiREc50HT5W2Tr.js new file mode 100644 index 0000000..7190682 --- /dev/null +++ b/scripts/QQPiREc50HT5W2Tr.js @@ -0,0 +1,2 @@ +if (args.item.type == "weapon" && args.item.weaponGroup.value == "brawling") + args.item.damage.value += " + 1" \ No newline at end of file diff --git a/scripts/QRSACifDrvojIXHB.js b/scripts/QRSACifDrvojIXHB.js new file mode 100644 index 0000000..0527702 --- /dev/null +++ b/scripts/QRSACifDrvojIXHB.js @@ -0,0 +1,11 @@ +if (!this.actor.effects.find(e => e.isCondition)) +{ + return this.script.scriptNotification("No Conditions on this Actor") +} + +let choice = await ItemDialog.create(this.actor.effects.filter(i => i.isCondition), 1, "Choose a Condition") + +if (choice[0]) +{ + this.actor.removeCondition(choice[0].conditionId) +} diff --git a/scripts/QaGNsqKm2Nf0zGVm.js b/scripts/QaGNsqKm2Nf0zGVm.js new file mode 100644 index 0000000..3fc40b5 --- /dev/null +++ b/scripts/QaGNsqKm2Nf0zGVm.js @@ -0,0 +1 @@ +return ["t", "int", "wp", "fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/QbIYnshWeP1U8SUy.js b/scripts/QbIYnshWeP1U8SUy.js new file mode 100644 index 0000000..d6c5e61 --- /dev/null +++ b/scripts/QbIYnshWeP1U8SUy.js @@ -0,0 +1,2 @@ +args.applyAP = false; +args.applyTB = false; \ No newline at end of file diff --git a/scripts/Qgn92fZyc3Psn8QJ.js b/scripts/Qgn92fZyc3Psn8QJ.js new file mode 100644 index 0000000..fcfd3fd --- /dev/null +++ b/scripts/Qgn92fZyc3Psn8QJ.js @@ -0,0 +1,10 @@ +if (args.test.options.useOnesAttractive && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target)) +{ + +let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10) +let ones = Number(args.test.result.roll.toString().split("").pop()) + +if (ones > SL) + args.test.data.result.SL = "+" + (ones + args.test.successBonus + args.test.slBonus) + args.test.result.other.push(`${this.effect.name}: Used unit dice as SL`) +} \ No newline at end of file diff --git a/scripts/Qk7t2l5ep9RDVpgE.js b/scripts/Qk7t2l5ep9RDVpgE.js new file mode 100644 index 0000000..80de579 --- /dev/null +++ b/scripts/Qk7t2l5ep9RDVpgE.js @@ -0,0 +1 @@ +args.options.diceman= true; \ No newline at end of file diff --git a/scripts/QoEOxRruQXYrZrv3.js b/scripts/QoEOxRruQXYrZrv3.js new file mode 100644 index 0000000..c084829 --- /dev/null +++ b/scripts/QoEOxRruQXYrZrv3.js @@ -0,0 +1,17 @@ +let filters = [ + { + property : "type", + value : "skill" + }, + { + property : "name", + value : /Melee/gm, + regex: true + } +] + +let items = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 2, "Choose 2 Skills to add +20") +items = items.map(i => i.toObject()) +items.forEach(i => i.system.advances.value = 20) + +this.actor.createEmbeddedDocuments("Item", items); \ No newline at end of file diff --git a/scripts/QqkE7rlqhkeRohFD.js b/scripts/QqkE7rlqhkeRohFD.js new file mode 100644 index 0000000..896b9a2 --- /dev/null +++ b/scripts/QqkE7rlqhkeRohFD.js @@ -0,0 +1 @@ +return !(["cast", "channelling"].includes(args.type) && this.actor.hasCondition("fatigued")) \ No newline at end of file diff --git a/scripts/QqybHxNCzPEzG1Qh.js b/scripts/QqybHxNCzPEzG1Qh.js new file mode 100644 index 0000000..05952e9 --- /dev/null +++ b/scripts/QqybHxNCzPEzG1Qh.js @@ -0,0 +1 @@ +return args.fields.dualWielding || args.options.dualWieldOffhand \ No newline at end of file diff --git a/scripts/QwHoqu2oO8QO8Mad.js b/scripts/QwHoqu2oO8QO8Mad.js new file mode 100644 index 0000000..a5972f6 --- /dev/null +++ b/scripts/QwHoqu2oO8QO8Mad.js @@ -0,0 +1,3 @@ +let content = `${this.effect.name}: All targets engaged with ${this.actor.prototypeToken.name} take [[/r 1d10]] Damage, modified by TB and AP.` + +this.script.scriptMessage(content) \ No newline at end of file diff --git a/scripts/R32U01LBjBrK1pns.js b/scripts/R32U01LBjBrK1pns.js new file mode 100644 index 0000000..4816313 --- /dev/null +++ b/scripts/R32U01LBjBrK1pns.js @@ -0,0 +1,33 @@ + const templateMap = { + 'P2e7Yx98bK3u110a' : "", + 'iuMp3KLaMT2WCmie' : "Xp4r2KUhqfjak8zq", + 'RBuYcT5tppwcmnC5' : "wYN19h3WVF1yOVq2", + 'vcGpNwNbhvfzVveQ' : "ac5ClOuaYtzOYyWp", + 'jmhKZy0w9TzkEK9c' : "IS3LTdTuay6uRHUq", + '9Byj6k7SmdTYis2V' : "LjMlx99gBGeRJUQu", + 'laJwc2l9tzJPgaaJ' : "x5wpMprsObuqMCYg", + } + let template = (await game.wfrp4e.tables.rollTable("hireling-templates", {hideDSN: true})).object; + let physicalQuirk = (await game.wfrp4e.tables.rollTable("physical-quirks", {hideDSN: true})).text; + let workEthic = (await game.wfrp4e.tables.rollTable("work-ethic", {hideDSN: true})).text; + let personalityQuirk = (await game.wfrp4e.tables.rollTable("personality-quirks", {hideDSN: true})).text; + + + let templateItem = await game.wfrp4e.utility.findItemId(templateMap[template._id]); + + let bio = + ` +

Template: ${template.text}

+

Phsyical Quirk: ${physicalQuirk}

+

Work Ethic: ${workEthic}

+

Personality Quirk: ${personalityQuirk}

+ ` + + this.script.scriptMessage(bio, {whisper : ChatMessage.getWhisperRecipients("GM")}) + + await this.actor.update({"system.details.gmnotes.value" : bio}) + + if (templateItem) + { + this.actor.createEmbeddedDocuments("Item", [templateItem.toObject()]) + } \ No newline at end of file diff --git a/scripts/R5dOZWFxE2n6tooX.js b/scripts/R5dOZWFxE2n6tooX.js new file mode 100644 index 0000000..d6c0f61 --- /dev/null +++ b/scripts/R5dOZWFxE2n6tooX.js @@ -0,0 +1 @@ +return this.item.system.usesLocation(args.weapon) \ No newline at end of file diff --git a/scripts/R6SnyF3y4Vsq6oga.js b/scripts/R6SnyF3y4Vsq6oga.js new file mode 100644 index 0000000..9cb3f07 --- /dev/null +++ b/scripts/R6SnyF3y4Vsq6oga.js @@ -0,0 +1,8 @@ +let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase(); + +// If channelling corresponding lore +if (args.type == "channelling" && args.spell.system.lore.value == lore) + args.prefillModifiers.slBonus += 1 +// If channelling or casting different lore +else if (args.spell.system.lore.value != lore && args.spell.system.lore.value != "petty") + args.prefillModifiers.slBonus -= 1 \ No newline at end of file diff --git a/scripts/R95pDZMHnD9iHAl8.js b/scripts/R95pDZMHnD9iHAl8.js new file mode 100644 index 0000000..903d7c3 --- /dev/null +++ b/scripts/R95pDZMHnD9iHAl8.js @@ -0,0 +1 @@ +return args.skill?.name.includes(this.item.system.tests.value); \ No newline at end of file diff --git a/scripts/RDtJXji3hgcKnEBk.js b/scripts/RDtJXji3hgcKnEBk.js new file mode 100644 index 0000000..84cd8d9 --- /dev/null +++ b/scripts/RDtJXji3hgcKnEBk.js @@ -0,0 +1,33 @@ +let as = (await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS")).toObject(); +let hv = (await fromUuid("Compendium.wfrp4e-core.items.Item.Nj3tC8A5fZ3zEdMR")).toObject(); +let ms = (await fromUuid("Compendium.wfrp4e-core.items.Item.6w30u0VPsAicrqb5")).toObject(); +let ss = (await fromUuid("Compendium.wfrp4e-core.items.Item.OEjUvJKi0xmBwbS2")).toObject(); + +as.name += " (Sight)"; + +let roll = (await new Roll("1d10").roll()); +roll.toMessage(this.script.getChatData()) +let items = [] + +if (roll.total <= 2) +{ + items = items.concat([as]); +} +else if (roll.total <= 4) +{ + items = items.concat([hv]); +} +else if (roll.total <= 6) +{ + items = items.concat([ms]); +} +else if (roll.total <= 8) +{ + items = items.concat([ss]); +} +else if (roll.total <= 10) +{ + items = items.concat([as, hv, ms, ss]); +} + +this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/RHyBLYT5oHf7EPnG.js b/scripts/RHyBLYT5oHf7EPnG.js new file mode 100644 index 0000000..0eeaadd --- /dev/null +++ b/scripts/RHyBLYT5oHf7EPnG.js @@ -0,0 +1,21 @@ +let skills = this.actor.itemTypes.skill.filter(i => i.name.includes(game.i18n.localize("NAME.Melee"))) + +let skill = await ItemDialog.create(skills, 1, "Select the skill used by the weapon") +let group = game.wfrp4e.utility.extractParenthesesText(skill[0]?.name) +let groupKey = game.wfrp4e.utility.findKey(group, game.wfrp4e.config.weaponGroups) + +let weapon = { + name : this.effect.name, + type : "weapon", + img : this.effect.img, + system : { + "damage.value" : this.actor.system.characteristics.wp.bonus, + "weaponGroup.value" : groupKey || "basic", + "twohanded.value" : ["polearm", "twohanded"].includes(groupKey), + "reach.value" : "average", + "qualities.value" : [{name : "magical"}] + }, +} + +Item.implementation.create(foundry.utils.expandObject(weapon), {parent : this.actor, fromEffect : this.effect.id}) +this.script.scriptNotification("Item created. Further customization must be done manually within the Item's sheet"); \ No newline at end of file diff --git a/scripts/RI8crJxeD8JLDwMh.js b/scripts/RI8crJxeD8JLDwMh.js new file mode 100644 index 0000000..0a98874 --- /dev/null +++ b/scripts/RI8crJxeD8JLDwMh.js @@ -0,0 +1 @@ +return args.weapon?.system?.weaponGroup?.value != "fencing" \ No newline at end of file diff --git a/scripts/RJpglw5eVRM1f9t0.js b/scripts/RJpglw5eVRM1f9t0.js new file mode 100644 index 0000000..ab32d24 --- /dev/null +++ b/scripts/RJpglw5eVRM1f9t0.js @@ -0,0 +1 @@ +args.wounds *= 5 \ No newline at end of file diff --git a/scripts/RKIFGN583PQnqHGk.js b/scripts/RKIFGN583PQnqHGk.js new file mode 100644 index 0000000..c0633f0 --- /dev/null +++ b/scripts/RKIFGN583PQnqHGk.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == "body" && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 2) + this.script.scriptMessage("Gained 2 Bleeding Conditions") +} \ No newline at end of file diff --git a/scripts/RNHrSTfMLXm5sXkC.js b/scripts/RNHrSTfMLXm5sXkC.js new file mode 100644 index 0000000..c5b8e70 --- /dev/null +++ b/scripts/RNHrSTfMLXm5sXkC.js @@ -0,0 +1 @@ +return ["ws", "bs", "s", "ag"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/RNr9CwyvLhlnwD2h.js b/scripts/RNr9CwyvLhlnwD2h.js new file mode 100644 index 0000000..2dbcde4 --- /dev/null +++ b/scripts/RNr9CwyvLhlnwD2h.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Sail")); \ No newline at end of file diff --git a/scripts/ROXCqAFSTLouJniL.js b/scripts/ROXCqAFSTLouJniL.js new file mode 100644 index 0000000..dcc969a --- /dev/null +++ b/scripts/ROXCqAFSTLouJniL.js @@ -0,0 +1,7 @@ +if (args.test.spell.name == "Warp Lightning") +{ + if (args.test.result.minormis || args.test.result.majormis || args.test.result.catastrophicmis) + { + this.script.scriptMessage(`${this.item.name} Overloads!`) + } +} \ No newline at end of file diff --git a/scripts/RSsGiDFibuqg3sHr.js b/scripts/RSsGiDFibuqg3sHr.js new file mode 100644 index 0000000..9132550 --- /dev/null +++ b/scripts/RSsGiDFibuqg3sHr.js @@ -0,0 +1,15 @@ +let diseaseIndex = game.packs +.filter(i => i.metadata.type == "Item") +.reduce((acc, pack) => acc.concat(pack.index.contents), []) +.filter(i => i.type == "disease") +.map(i => { + i.id = i._id + return i +}) + +let choice = await ItemDialog.create(diseaseIndex , 1, "Choose a Disease") + +if (choice[0]) +{ + await this.item.updateSource({"system.specification.value" : choice[0].name}) +} \ No newline at end of file diff --git a/scripts/RZlMkxJz5apn0mUj.js b/scripts/RZlMkxJz5apn0mUj.js new file mode 100644 index 0000000..74fe1bc --- /dev/null +++ b/scripts/RZlMkxJz5apn0mUj.js @@ -0,0 +1 @@ +return args.item?.system.attackType != "ranged" \ No newline at end of file diff --git a/scripts/RprZWlnopSqZt7KZ.js b/scripts/RprZWlnopSqZt7KZ.js new file mode 100644 index 0000000..523491c --- /dev/null +++ b/scripts/RprZWlnopSqZt7KZ.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/RqWnhnwFxaHubgiA.js b/scripts/RqWnhnwFxaHubgiA.js new file mode 100644 index 0000000..a9b12cd --- /dev/null +++ b/scripts/RqWnhnwFxaHubgiA.js @@ -0,0 +1,3 @@ +await args.actor.addCondition("blinded"); +await args.actor.addCondition("deafened"); +await args.actor.addCondition("stunned"); \ No newline at end of file diff --git a/scripts/RrchOMpEdIvceJxl.js b/scripts/RrchOMpEdIvceJxl.js new file mode 100644 index 0000000..300050b --- /dev/null +++ b/scripts/RrchOMpEdIvceJxl.js @@ -0,0 +1 @@ +return args.skill?.name == "Stealth (Rural)" \ No newline at end of file diff --git a/scripts/RuW1PWUFxIbbSlIm.js b/scripts/RuW1PWUFxIbbSlIm.js new file mode 100644 index 0000000..c333e53 --- /dev/null +++ b/scripts/RuW1PWUFxIbbSlIm.js @@ -0,0 +1 @@ +return !["t", "wp", "ag", "i", "int"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/RvipIYj9H7n4UDMe.js b/scripts/RvipIYj9H7n4UDMe.js new file mode 100644 index 0000000..4ae90e5 --- /dev/null +++ b/scripts/RvipIYj9H7n4UDMe.js @@ -0,0 +1,84 @@ + let characteristics = { + "ws" : -10, + "bs" : -10, + "s" : -5, + "t" : -5, + "i" : -10, + "ag" : -10, + "dex" : -10, + "int" : 0, + "wp" : 0, + "fel" : 0 + } + let skills = [] + let skillAdvancements = [] + let talents = [] + let trappings = [] + let items = [] + + let updateObj = this.actor.toObject(); + + for (let ch in characteristics) + { + updateObj.system.characteristics[ch].modifier += characteristics[ch]; + } + + for (let index = 0; index < skills.length; index++) + { + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } + } + + for (let talent of talents) + { + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + } + + for (let trapping of trappings) + { + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } + } + + + await this.actor.update(updateObj) + this.actor.createEmbeddedDocuments("Item", items); + + function equip(item) + { + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true + } \ No newline at end of file diff --git a/scripts/S1QihXuvdEVzeRtB.js b/scripts/S1QihXuvdEVzeRtB.js new file mode 100644 index 0000000..0194c09 --- /dev/null +++ b/scripts/S1QihXuvdEVzeRtB.js @@ -0,0 +1,40 @@ +let dice = await new Roll("1d10").roll() +let roll = dice.total +let talent +let message +let modifier = 0 + +if (roll <= 3) +{ + item = await fromUuid("Compendium.wfrp4e-core.items.mNoCuaVbFBflfO6X") +} + +else if (roll <= 6) +{ + item = await fromUuid("Compendium.wfrp4e-core.items.OEjUvJKi0xmBwbS2") + modifier = -3 +} + +else if (roll <= 9) +{ + item = await fromUuid("Compendium.wfrp4e-core.items.mdPGZsn2396dEpOf") + modifier = -3 +} + +else if (roll = 10) +{ + item = await fromUuid("Compendium.wfrp4e-core.items.qdMbxW09FUoYBzmB") + modifier = -5 +} + +message = `${roll} Rolled, gain ${item.name}, ${modifier} Strength` +dice.toMessage(this.script.getChatData()) + +let changes = duplicate(this.effect.changes) +changes[0].value = modifier + +this.effect.updateSource({changes}) + +await this.actor.createEmbeddedDocuments("Item", [item.toObject()], {fromEffect : this.effect.id}) + +this.script.scriptNotification(message) \ No newline at end of file diff --git a/scripts/S3DCTw4yJ85eSaKp.js b/scripts/S3DCTw4yJ85eSaKp.js new file mode 100644 index 0000000..666ee45 --- /dev/null +++ b/scripts/S3DCTw4yJ85eSaKp.js @@ -0,0 +1 @@ +this.actor.setupCharacteristic("s", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(test => test.roll()) \ No newline at end of file diff --git a/scripts/S3Dev4hleOYqDNe9.js b/scripts/S3Dev4hleOYqDNe9.js new file mode 100644 index 0000000..82a4f59 --- /dev/null +++ b/scripts/S3Dev4hleOYqDNe9.js @@ -0,0 +1,16 @@ +if (args.test.options.healWounds) { + if (args.test.succeeded) + { + let wounds = this.actor.characteristics.int.bonus + Number(args.test.result.SL) + if (args.test.options.fieldDressing && args.test.result.reversed) + { + wounds = this.actor.characteristics.int.bonus + Math.min(1, Number(args.test.result.SL)) + } + args.test.result.woundsHealed = wounds + args.test.result.other.push(`${this.actor.name} healed ${wounds} wounds of the patient.`) + } + else if (this.actor.characteristics.int.bonus + Number(args.test.result.SL) < 0) + { + args.test.result.other.push(`The patient contracts a @UUID[Compendium.wfrp4e-core.items.Item.1hQuVFZt9QnnbWzg]{Minor Infection}.`) + } +} \ No newline at end of file diff --git a/scripts/S4793DLFhjMxpM8x.js b/scripts/S4793DLFhjMxpM8x.js new file mode 100644 index 0000000..4f2f739 --- /dev/null +++ b/scripts/S4793DLFhjMxpM8x.js @@ -0,0 +1 @@ +return !["ws", "bs"].includes(args.characteristic) && !args.item?.system.attackType && !args.options.dodge \ No newline at end of file diff --git a/scripts/S6tUyFJvGMV19mvP.js b/scripts/S6tUyFJvGMV19mvP.js new file mode 100644 index 0000000..867c8d8 --- /dev/null +++ b/scripts/S6tUyFJvGMV19mvP.js @@ -0,0 +1 @@ +this.actor.status.addArmour(2, {source: this.effect}) \ No newline at end of file diff --git a/scripts/S95QqpX1cZyIVCPy.js b/scripts/S95QqpX1cZyIVCPy.js new file mode 100644 index 0000000..3011ed7 --- /dev/null +++ b/scripts/S95QqpX1cZyIVCPy.js @@ -0,0 +1,5 @@ +if (parseInt(this.item.system.specification.value) > 0) +{ + this.actor.system.status.ward.value = parseInt(this.item.system.specification.value); +} + diff --git a/scripts/SGr50Hq1AHIEzIFN.js b/scripts/SGr50Hq1AHIEzIFN.js new file mode 100644 index 0000000..324b7a2 --- /dev/null +++ b/scripts/SGr50Hq1AHIEzIFN.js @@ -0,0 +1,6 @@ +let choice = await ItemDialog.create(ItemDialog.objectToArray({ + int : game.wfrp4e.config.characteristics.int, + fel : game.wfrp4e.config.characteristics.fel +}, this.effect.img), 1, "Choose Characteristic"); + +this.effect.updateSource({"flags.wfrp4e.characteristic" : choice[0].id}) \ No newline at end of file diff --git a/scripts/SLy1Fs3oXcHgFgjK.js b/scripts/SLy1Fs3oXcHgFgjK.js new file mode 100644 index 0000000..4add629 --- /dev/null +++ b/scripts/SLy1Fs3oXcHgFgjK.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn") +let data = item.toObject(); +let value = getProperty(this.effect.sourceTest, "result.overcast.usage.other.current") || 1 +data.system.specification.value = value +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/SO4Aa9argKbuO9rQ.js b/scripts/SO4Aa9argKbuO9rQ.js new file mode 100644 index 0000000..2af913b --- /dev/null +++ b/scripts/SO4Aa9argKbuO9rQ.js @@ -0,0 +1 @@ +args.prefillModifiers.modifier -= 20 \ No newline at end of file diff --git a/scripts/SPOkFWZWziZk5b7A.js b/scripts/SPOkFWZWziZk5b7A.js new file mode 100644 index 0000000..d26b8cb --- /dev/null +++ b/scripts/SPOkFWZWziZk5b7A.js @@ -0,0 +1 @@ +return args.item?.system?.attackType != "melee" \ No newline at end of file diff --git a/scripts/SRmfstEs278bP9Pz.js b/scripts/SRmfstEs278bP9Pz.js new file mode 100644 index 0000000..4831d32 --- /dev/null +++ b/scripts/SRmfstEs278bP9Pz.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.yRhhOlt18COq4e1q") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/SSqGxyN9hw0HDmED.js b/scripts/SSqGxyN9hw0HDmED.js new file mode 100644 index 0000000..ea4faf2 --- /dev/null +++ b/scripts/SSqGxyN9hw0HDmED.js @@ -0,0 +1 @@ +this.actor.addCondition("prone"); \ No newline at end of file diff --git a/scripts/SWIJjM2RCmzfr64u.js b/scripts/SWIJjM2RCmzfr64u.js new file mode 100644 index 0000000..5a07e2e --- /dev/null +++ b/scripts/SWIJjM2RCmzfr64u.js @@ -0,0 +1,6 @@ +if (args.test.result.hitloc.result == "head") +{ + args.test.result.critModifier = args.test.result.critModifier ? args.test.result.critModifier + 40 : 40 + + args.test.result.critical += ` (+${args.test.result.critModifier})` +} diff --git a/scripts/SrCHfOJFZwDickqa.js b/scripts/SrCHfOJFZwDickqa.js new file mode 100644 index 0000000..28558bc --- /dev/null +++ b/scripts/SrCHfOJFZwDickqa.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "average"}}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/StAderQaQQsxb6Rv.js b/scripts/StAderQaQQsxb6Rv.js new file mode 100644 index 0000000..d361e9a --- /dev/null +++ b/scripts/StAderQaQQsxb6Rv.js @@ -0,0 +1,10 @@ +let target = await game.wfrp4e.tables.rollTable("fixations") +if (target) +{ + this.script.scriptNotification(target.result); + let hatred = this.actor.items.find(i => i.getFlag("wfrp4e", "fromEffect") == this.effect.id) + if (hatred) + { + hatred.update({"system.specification.value" : target.result}) + } +} \ No newline at end of file diff --git a/scripts/SvFKt9hMcFQjeILA.js b/scripts/SvFKt9hMcFQjeILA.js new file mode 100644 index 0000000..52d528c --- /dev/null +++ b/scripts/SvFKt9hMcFQjeILA.js @@ -0,0 +1 @@ +args.actor.addCondition("entangled", this.effect.sourceTest.result.overcast.usage.other.current) \ No newline at end of file diff --git a/scripts/T5fiTzhXEQAv9Drf.js b/scripts/T5fiTzhXEQAv9Drf.js new file mode 100644 index 0000000..536b32a --- /dev/null +++ b/scripts/T5fiTzhXEQAv9Drf.js @@ -0,0 +1,20 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.rlDZZTj5PXjuRXa2") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key; +await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + +let location = this.item.system.location.key; + +if (location) +{ + let dropped = this.item.system.weaponsAtLocation; + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} \ No newline at end of file diff --git a/scripts/T74FEjfFrh3f6MKv.js b/scripts/T74FEjfFrh3f6MKv.js new file mode 100644 index 0000000..1a4f658 --- /dev/null +++ b/scripts/T74FEjfFrh3f6MKv.js @@ -0,0 +1 @@ +args.wpb = args.sb; \ No newline at end of file diff --git a/scripts/TAw9vXnfyIAl5DGs.js b/scripts/TAw9vXnfyIAl5DGs.js new file mode 100644 index 0000000..c6062cd --- /dev/null +++ b/scripts/TAw9vXnfyIAl5DGs.js @@ -0,0 +1,11 @@ +if (this.item.system.quantity.value) +{ + game.wfrp4e.utility.postCorruptionTest("minor", this.script.getChatData()); + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectData : [this.item.effects.contents[1].convertToApplied()]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/TBpNFRL5uehs0fze.js b/scripts/TBpNFRL5uehs0fze.js new file mode 100644 index 0000000..be5a2fb --- /dev/null +++ b/scripts/TBpNFRL5uehs0fze.js @@ -0,0 +1,10 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectData : [this.item.effects.contents[0]]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/TEiNj5FgkoD3YbhS.js b/scripts/TEiNj5FgkoD3YbhS.js new file mode 100644 index 0000000..bcac25e --- /dev/null +++ b/scripts/TEiNj5FgkoD3YbhS.js @@ -0,0 +1 @@ +this.actor.hasCondition("bleeding")?.delete() \ No newline at end of file diff --git a/scripts/TGN070HeJLl3gSMY.js b/scripts/TGN070HeJLl3gSMY.js new file mode 100644 index 0000000..876f760 --- /dev/null +++ b/scripts/TGN070HeJLl3gSMY.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupCharacteristic("ag", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context: { failure: "Goes Prone" }}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone"); +} \ No newline at end of file diff --git a/scripts/TNWmIkuubqBn38he.js b/scripts/TNWmIkuubqBn38he.js new file mode 100644 index 0000000..8f318aa --- /dev/null +++ b/scripts/TNWmIkuubqBn38he.js @@ -0,0 +1 @@ +this.effect.deleteCreatedItems(); \ No newline at end of file diff --git a/scripts/TOyQLrugFGzwc5nY.js b/scripts/TOyQLrugFGzwc5nY.js new file mode 100644 index 0000000..1e8b373 --- /dev/null +++ b/scripts/TOyQLrugFGzwc5nY.js @@ -0,0 +1 @@ +return !(args.skill?.name.includes(game.i18n.localize("NAME.Melee")) || args.item?.isMelee || args.options.corruption); \ No newline at end of file diff --git a/scripts/TQRL4mZhZohXg1Au.js b/scripts/TQRL4mZhZohXg1Au.js new file mode 100644 index 0000000..2288bc8 --- /dev/null +++ b/scripts/TQRL4mZhZohXg1Au.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +test.roll(); \ No newline at end of file diff --git a/scripts/TU2xjbJ0zFtytF3J.js b/scripts/TU2xjbJ0zFtytF3J.js new file mode 100644 index 0000000..9325462 --- /dev/null +++ b/scripts/TU2xjbJ0zFtytF3J.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.CharmAnimal"); \ No newline at end of file diff --git a/scripts/TY0xSQ00XXyEr49r.js b/scripts/TY0xSQ00XXyEr49r.js new file mode 100644 index 0000000..7b1ab7b --- /dev/null +++ b/scripts/TY0xSQ00XXyEr49r.js @@ -0,0 +1 @@ +args.fields.slBonus += 1; \ No newline at end of file diff --git a/scripts/TcqumwUFAL6V0cty.js b/scripts/TcqumwUFAL6V0cty.js new file mode 100644 index 0000000..e7a337e --- /dev/null +++ b/scripts/TcqumwUFAL6V0cty.js @@ -0,0 +1,11 @@ +if (this.item.getFlag("wfrp4e", "failedCool")) +{ + this.item.system.AP = { + "head": 0, + "lArm": 0, + "rArm": 0, + "lLeg": 0, + "rLeg": 0, + "body": 0 + } +} \ No newline at end of file diff --git a/scripts/TdjlJro0RRVSh8g8.js b/scripts/TdjlJro0RRVSh8g8.js new file mode 100644 index 0000000..a893cc5 --- /dev/null +++ b/scripts/TdjlJro0RRVSh8g8.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Gamble") && args.skill?.name != game.i18n.localize("NAME.SleightOfHand"); \ No newline at end of file diff --git a/scripts/TmaS8o33825QUMrx.js b/scripts/TmaS8o33825QUMrx.js new file mode 100644 index 0000000..599ff1b --- /dev/null +++ b/scripts/TmaS8o33825QUMrx.js @@ -0,0 +1,3 @@ +let stomp = game.wfrp4e.config.systemItems.stomp; +let test = await this.actor.setupTrait(stomp) +await test.roll(); \ No newline at end of file diff --git a/scripts/TnFobCxG4pxlYmKr.js b/scripts/TnFobCxG4pxlYmKr.js new file mode 100644 index 0000000..75668c8 --- /dev/null +++ b/scripts/TnFobCxG4pxlYmKr.js @@ -0,0 +1,16 @@ +let gorCharacteristics = { + "ws": 45, + "bs": 30, + "s": 35, + "t": 45, + "i": 30, + "ag": 35, + "dex": 25, + "int": 25, + "wp": 30, + "fel": 25 +} +for (let char in this.actor.characteristics) { + if (this.actor.characteristics[char].initial < gorCharacteristics[char]) + this.actor.characteristics[char].initial = gorCharacteristics[char] +} \ No newline at end of file diff --git a/scripts/ToKlHDAjJOsC51ag.js b/scripts/ToKlHDAjJOsC51ag.js new file mode 100644 index 0000000..2ee3319 --- /dev/null +++ b/scripts/ToKlHDAjJOsC51ag.js @@ -0,0 +1,11 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.GlShFJF2TpsNh1FX") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}); +await test.roll(); +if (test.failed) +{ + args.actor.addCondition("unconscious") +} \ No newline at end of file diff --git a/scripts/TpZItJ5Ugbazaobd.js b/scripts/TpZItJ5Ugbazaobd.js new file mode 100644 index 0000000..414537b --- /dev/null +++ b/scripts/TpZItJ5Ugbazaobd.js @@ -0,0 +1,15 @@ +let locations = []; + +while (locations.length < 2) +{ + let loc = await game.wfrp4e.tables.rollTable("hitloc", {hideDSN : true}) + if (!locations.includes(loc.result)) + { + locations.push(loc.result); + } +} + +locationText = locations.map(i => game.wfrp4e.config.locations[i]).join(", ") + +this.item.updateSource({name : this.item.name += ` (${locationText})`, "flags.wfrp4e.locations" : locations}) +this.effect.updateSource({"flags.wfrp4e.locations" : locations}) \ No newline at end of file diff --git a/scripts/Tq45Nd8J3eTvHT41.js b/scripts/Tq45Nd8J3eTvHT41.js new file mode 100644 index 0000000..88ba249 --- /dev/null +++ b/scripts/Tq45Nd8J3eTvHT41.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Perception") && args.skill?.name != game.i18n.localize("NAME.SetTrap"); \ No newline at end of file diff --git a/scripts/TrIYdcG3jDER4WgY.js b/scripts/TrIYdcG3jDER4WgY.js new file mode 100644 index 0000000..5965a8c --- /dev/null +++ b/scripts/TrIYdcG3jDER4WgY.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.xsGbDFqK2qh7lsIj") +let data = item.toObject(); +data.system.specification.value = "Minor" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/TwgdEucxcHloc4cX.js b/scripts/TwgdEucxcHloc4cX.js new file mode 100644 index 0000000..325d158 --- /dev/null +++ b/scripts/TwgdEucxcHloc4cX.js @@ -0,0 +1,135 @@ +let choice1 = [ + { + type : "armour", + name : "Mail Chausses" + }, + { + type : "armour", + name : "Mail Coat" + }, + { + type : "armour", + name : "Mail Coif" + }, +] +let choice2 = [ + { + type : "armour", + name : "Mail Chausses" + }, + { + type : "armour", + name : "Mail Coat" + }, + { + type : "armour", + name : "Mail Coif" + }, + { + type : "armour", + name : "Leather Leggings" + }, + { + type : "armour", + name : "Leather Skullcap" + }, + { + type : "armour", + name : "Leather Jack" + }, +] +let choice3 = [ + { + type : "armour", + name : "Plate Breastplate" + }, + { + type : "armour", + name : "Plate Bracers" + }, + { + type : "armour", + name : "Plate Helm" + }, + { + type : "armour", + name : "Plate Leggings" + }, +] + +let choice = await new Promise((resolve, reject) => { + new Dialog({ + title : "Choice", + content : + `

+ Select your choice +

+
    +
  1. Mail
  2. +
  3. Mail & Leather
  4. +
  5. Plate
  6. +
+ `, + buttons : { + 1 : { + label : "Mail", + callback : () => { + resolve(choice1) + } + }, + 2 : { + label : "Mail & Leather", + callback : () => { + resolve(choice2) + } + }, + 3 : { + label : "Plate", + callback : () => { + resolve(choice3) + } + } + } + }).render(true) +}) + +let updateObj = this.actor.toObject(); +let items = [] +for (let c of choice) +{ + let existing + if (c.type == "skill") + { + existing = updateObj.items.find(i => i.name == c.name && i.type == c.type) + if (existing && c.diff?.system?.advances?.value) + { + existing.system.advances.value += c.diff.system.advances.value + } + } + + if (!existing) + { + let item = await game.wfrp4e.utility.find(c.name, c.type) + if (item) + { + item = item.toObject() + equip(item); + items.push(mergeObject(item, (c.diff || {}))) + } + else + ui.notifications.warn(`Could not find ${c.name}`, {permanent : true}) + } + +} +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/TwwKxFjK6TNGKbRB.js b/scripts/TwwKxFjK6TNGKbRB.js new file mode 100644 index 0000000..ca92445 --- /dev/null +++ b/scripts/TwwKxFjK6TNGKbRB.js @@ -0,0 +1,8 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(12, {damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true})) +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}}) +await test.roll(); +if (test.failed) +{ + this.actor.addSystemEffect("cold1") +} + diff --git a/scripts/TxfmxDGBj04AQQpt.js b/scripts/TxfmxDGBj04AQQpt.js new file mode 100644 index 0000000..8f6c8d2 --- /dev/null +++ b/scripts/TxfmxDGBj04AQQpt.js @@ -0,0 +1,11 @@ +let weapon = args.opposedTest.defenderTest.weapon +if ( + !args.opposedTest.result.swapped && + args.opposedTest.result.winner == "defender" && + args.opposedTest.attackerTest.result.damage && + weapon && + weapon?.system.properties.qualities.fast + ) +{ + args.opposedTest.swap(this.effect.label); +} \ No newline at end of file diff --git a/scripts/TzgmYRXFXRspIo1i.js b/scripts/TzgmYRXFXRspIo1i.js new file mode 100644 index 0000000..f91fa9d --- /dev/null +++ b/scripts/TzgmYRXFXRspIo1i.js @@ -0,0 +1 @@ +this.effect.delete(); \ No newline at end of file diff --git a/scripts/U1RUcgP8LD2qeGTm.js b/scripts/U1RUcgP8LD2qeGTm.js new file mode 100644 index 0000000..7c629a2 --- /dev/null +++ b/scripts/U1RUcgP8LD2qeGTm.js @@ -0,0 +1 @@ +return !args.options.reload \ No newline at end of file diff --git a/scripts/U1UpSRJOSjPpO4HS.js b/scripts/U1UpSRJOSjPpO4HS.js new file mode 100644 index 0000000..e0bdcd1 --- /dev/null +++ b/scripts/U1UpSRJOSjPpO4HS.js @@ -0,0 +1,4 @@ +let mutations = await game.wfrp4e.utility.findAll("mutation", "Loading Mutations") +let roll = Math.floor(CONFIG.Dice.randomUniform() * mutations.length); +this.actor.createEmbeddedDocuments("Item", [mutations[roll]]); +this.script.scriptNotification(`Added ${mutations[roll].name}`) \ No newline at end of file diff --git a/scripts/U26XMie3Kjoddisj.js b/scripts/U26XMie3Kjoddisj.js new file mode 100644 index 0000000..6b2b8bd --- /dev/null +++ b/scripts/U26XMie3Kjoddisj.js @@ -0,0 +1,10 @@ +let stunned = this.actor.hasCondition("stunned") +if (stunned) +{ + this.script.scriptNotification(`Cleared 1 Stunned Condition`) + this.actor.removeCondition("stunned"); +} +else +{ + this.script.scriptNotification(`No Stunned Conditions`) +} \ No newline at end of file diff --git a/scripts/U2xKn7R1gm8kiQm8.js b/scripts/U2xKn7R1gm8kiQm8.js new file mode 100644 index 0000000..798875a --- /dev/null +++ b/scripts/U2xKn7R1gm8kiQm8.js @@ -0,0 +1,4 @@ +this.actor.hasCondition("broken")?.delete(); + +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.8pVzgPkgWpTJvfhG") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/U4A8FDNmwBGTuQZO.js b/scripts/U4A8FDNmwBGTuQZO.js new file mode 100644 index 0000000..8e8a337 --- /dev/null +++ b/scripts/U4A8FDNmwBGTuQZO.js @@ -0,0 +1,5 @@ +if (args.attacker.has("Undead") && !args.attacker.has("Ethereal")) +{ + args.totalWoundLoss = Math.floor(args.totalWoundLoss / 2) + args.modifiers.other.push({label : this.effect.name, details : "Halved", value : "× 0.5"}) +} \ No newline at end of file diff --git a/scripts/U5ndCwcJ1s3Ns26w.js b/scripts/U5ndCwcJ1s3Ns26w.js new file mode 100644 index 0000000..481fde6 --- /dev/null +++ b/scripts/U5ndCwcJ1s3Ns26w.js @@ -0,0 +1,3 @@ +args.item.system.qualities.value.push({name : "magical"}); +args.item.system.damage.value += ` + ${parseInt(this.effect.sourceTest.result.SL)}`; +args.item.name += ` (${this.effect.name})` \ No newline at end of file diff --git a/scripts/U78c4oUjKwyUu6jT.js b/scripts/U78c4oUjKwyUu6jT.js new file mode 100644 index 0000000..cd17a48 --- /dev/null +++ b/scripts/U78c4oUjKwyUu6jT.js @@ -0,0 +1 @@ +return (args.skill?.name != game.i18n.localize("NAME.Perception") && args.characteristic != "fel") \ No newline at end of file diff --git a/scripts/U9xh2wriSqCosugW.js b/scripts/U9xh2wriSqCosugW.js new file mode 100644 index 0000000..5770437 --- /dev/null +++ b/scripts/U9xh2wriSqCosugW.js @@ -0,0 +1,13 @@ +if (args.test.options.stag) +{ + if (parseInt(args.test.result.SL) < 0 || args.test.failed) + { + if (parseInt(args.test.result.SL) < 0) + { + args.test.result.SL = "+0"; + args.test.result.description = game.i18n.localize("ROLL.MarginalSuccess"); + } + args.test.result.outcome = "success" + args.test.result.other.push(`${this.effect.name}: Minimum +0 SL`) + } +} \ No newline at end of file diff --git a/scripts/UC6G3pFQwzUhrw6F.js b/scripts/UC6G3pFQwzUhrw6F.js new file mode 100644 index 0000000..5ca75a2 --- /dev/null +++ b/scripts/UC6G3pFQwzUhrw6F.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.CharmAnimal"); \ No newline at end of file diff --git a/scripts/UH5MIzqi2MvEqTwj.js b/scripts/UH5MIzqi2MvEqTwj.js new file mode 100644 index 0000000..0b5562d --- /dev/null +++ b/scripts/UH5MIzqi2MvEqTwj.js @@ -0,0 +1,7 @@ +if (args.totalWoundLoss > 0) +{ + let roll = await new Roll("1d10").roll(); + roll.toMessage(this.script.getChatData()); + args.totalWoundLoss += roll.total; + args.modifiers.other.push({label : this.effect.name, value : roll.total}) +} \ No newline at end of file diff --git a/scripts/ULmZMLezDamerN04.js b/scripts/ULmZMLezDamerN04.js new file mode 100644 index 0000000..a8fefdb --- /dev/null +++ b/scripts/ULmZMLezDamerN04.js @@ -0,0 +1,32 @@ +let spells = await game.wfrp4e.utility.findAll("spell", "Loading Spells") + +let lore = (await game.wfrp4e.tables.rollTable("random-caster", {hideDSN: true})).text +this.script.scriptNotification(lore) +if (lore == "GM's Choice") { + return +} + +else if (lore == "Arcane Magic") { + lore = "Arcane" +} + +else if (lore == "Petty Magic") { + lore = "petty" +} + +else { + lore = lore.toLowerCase(); +} + +let spellsWithLore = [] +if (lore == "Arcane") { + spellsWithLore = spells.filter(i => !i.system.lore.value) +} +else { + spellsWithLore = spells.filter(i => i.system.lore.value == lore) +} + +let selectedSpell = spellsWithLore[Math.floor(CONFIG.Dice.randomUniform() * spellsWithLore.length)] +Item.implementation.create(selectedSpell.toObject(), { parent: this.actor}).then(item => { + this.actor.setupCast(item).then(test => test.roll()); +}) \ No newline at end of file diff --git a/scripts/UTlgF4azrGQZsoDv.js b/scripts/UTlgF4azrGQZsoDv.js new file mode 100644 index 0000000..052e2d2 --- /dev/null +++ b/scripts/UTlgF4azrGQZsoDv.js @@ -0,0 +1,2 @@ +const talents = await Promise.all(["Ambidextrous", "Distract"].map(game.wfrp4e.utility.findTalent)) +this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/UWrzokgabRKUpnkG.js b/scripts/UWrzokgabRKUpnkG.js new file mode 100644 index 0000000..954ba01 --- /dev/null +++ b/scripts/UWrzokgabRKUpnkG.js @@ -0,0 +1 @@ +return ["t", "wp", "ag", "i", "int"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/UYLXm2W6jVn21Age.js b/scripts/UYLXm2W6jVn21Age.js new file mode 100644 index 0000000..3202cf0 --- /dev/null +++ b/scripts/UYLXm2W6jVn21Age.js @@ -0,0 +1 @@ +args.fields.modifier += 40; \ No newline at end of file diff --git a/scripts/UaImulhbPURkLJg2.js b/scripts/UaImulhbPURkLJg2.js new file mode 100644 index 0000000..77d2ab5 --- /dev/null +++ b/scripts/UaImulhbPURkLJg2.js @@ -0,0 +1 @@ +return this.actor.attacker && (args.skill?.name.includes("Melee (Basic)") || (args.type == "weapon" && args.item?.system.weaponGroup.value == "basic")) \ No newline at end of file diff --git a/scripts/UgQW0UMPOZ0jwfVJ.js b/scripts/UgQW0UMPOZ0jwfVJ.js new file mode 100644 index 0000000..3dc1a6d --- /dev/null +++ b/scripts/UgQW0UMPOZ0jwfVJ.js @@ -0,0 +1,5 @@ +let current = this.actor.status.fortune.value + +this.actor.update({"system.status.fortune.value" : 1 + current}) + +this.script.scriptMessage(`${this.actor.prototypeToken.name} fortune points increased from ${current} to ${1 + current}`) \ No newline at end of file diff --git a/scripts/Um6xMMiUftLXJxEt.js b/scripts/Um6xMMiUftLXJxEt.js new file mode 100644 index 0000000..5365edb --- /dev/null +++ b/scripts/Um6xMMiUftLXJxEt.js @@ -0,0 +1 @@ +return ["fel", "dex"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/UnqnWi0dZYLf5fTT.js b/scripts/UnqnWi0dZYLf5fTT.js new file mode 100644 index 0000000..e5dd8a6 --- /dev/null +++ b/scripts/UnqnWi0dZYLf5fTT.js @@ -0,0 +1,133 @@ +let choice1 = [ + { + type : "armour", + name : "Mail Chausses" + }, + { + type : "armour", + name : "Mail Coat" + }, + { + type : "armour", + name : "Mail Coif" + }, +] +let choice2 = [ + { + type : "armour", + name : "Mail Chausses" + }, + { + type : "armour", + name : "Mail Coat" + }, + { + type : "armour", + name : "Mail Coif" + }, + { + type : "armour", + name : "Leather Leggings" + }, + { + type : "armour", + name : "Leather Skullcap" + }, + { + type : "armour", + name : "Leather Jack" + }, +] +let choice3 = [ + { + type : "armour", + name : "Plate Breastplate" + }, + { + type : "armour", + name : "Plate Bracers" + }, + { + type : "armour", + name : "Plate Helm" + }, + { + type : "armour", + name : "Plate Leggings" + }, +] + +let choice = await Dialog.wait({ + title : "Choice", + content : + `

+ Select your choice +

+
    +
  1. Mail
  2. +
  3. Mail & Leather
  4. +
  5. Plate
  6. +
+ `, + buttons : { + 1 : { + label : "Mail", + callback : () => { + return choice1 + } + }, + 2 : { + label : "Mail & Leather", + callback : () => { + return choice2 + } + }, + 3 : { + label : "Plate", + callback : () => { + return choice3 + } + } + } +}) + +let updateObj = this.actor.toObject(); +let items = [] +for (let c of choice) +{ + let existing + if (c.type == "skill") + { + existing = updateObj.items.find(i => i.name == c.name && i.type == c.type) + if (existing && c.diff?.system?.advances?.value) + { + existing.system.advances.value += c.diff.system.advances.value + } + } + + if (!existing) + { + let item = await game.wfrp4e.utility.find(c.name, c.type) + if (item) + { + item = item.toObject() + equip(item); + items.push(mergeObject(item, (c.diff || {}))) + } + else + ui.notifications.warn(`Could not find ${c.name}`, {permanent : true}) + } + +} +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/UsAHQecRlWL5PhP6.js b/scripts/UsAHQecRlWL5PhP6.js new file mode 100644 index 0000000..44806e5 --- /dev/null +++ b/scripts/UsAHQecRlWL5PhP6.js @@ -0,0 +1,8 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty : "average"}}).then(async test => +{ + await test.roll() + if (test.failed) + { + this.actor.corruptionDialog("moderate") + } +}) \ No newline at end of file diff --git a/scripts/UsuwsmU1TUQLQVM2.js b/scripts/UsuwsmU1TUQLQVM2.js new file mode 100644 index 0000000..47d19c6 --- /dev/null +++ b/scripts/UsuwsmU1TUQLQVM2.js @@ -0,0 +1,2 @@ +let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase(); +return !args.spell || (args.type == "cast" && ["petty", lore].includes(args.spell.system.lore.value)); \ No newline at end of file diff --git a/scripts/UvycHOjSPm5Zv9KJ.js b/scripts/UvycHOjSPm5Zv9KJ.js new file mode 100644 index 0000000..59b3eea --- /dev/null +++ b/scripts/UvycHOjSPm5Zv9KJ.js @@ -0,0 +1,10 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Dodge"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +let baseDamage = "4"; +if (test.succeeded) + baseDamage = "0"; + +let damage = this.effect.sourceItem.system.computeSpellDamage(baseDamage, true) + parseInt(this.effect.sourceTest.result.SL); + +this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {suppressMsg : true})) +this.actor.addCondition("ablaze") \ No newline at end of file diff --git a/scripts/UwjkHRAQHESdYXJs.js b/scripts/UwjkHRAQHESdYXJs.js new file mode 100644 index 0000000..9f8e905 --- /dev/null +++ b/scripts/UwjkHRAQHESdYXJs.js @@ -0,0 +1,11 @@ +this.actor.getActiveTokens().forEach(t => t.document.update({light : { + "dim": 2, + "bright": 1, + "alpha": 0.5, + "animation": { + "speed": 4, + "intensity": 4, + "type": "pulse", + }, + "color": "#949bff", +}})); \ No newline at end of file diff --git a/scripts/Ux4buMc7llF1Kg8p.js b/scripts/Ux4buMc7llF1Kg8p.js new file mode 100644 index 0000000..4390159 --- /dev/null +++ b/scripts/Ux4buMc7llF1Kg8p.js @@ -0,0 +1,4 @@ +if (!this.actor.hasCondition("stunned") && !this.actor.hasCondition("unconcscious")) +{ + this.effect.delete(); +} \ No newline at end of file diff --git a/scripts/V1D2Uo3WDKYQePU3.js b/scripts/V1D2Uo3WDKYQePU3.js new file mode 100644 index 0000000..cab27a0 --- /dev/null +++ b/scripts/V1D2Uo3WDKYQePU3.js @@ -0,0 +1,14 @@ +let damage = this.effect.sourceTest.result.damage; + +let loc = "head" +let APatLoc = this.actor.system.status.armour[loc]; + +let metalAP = APatLoc.layers.reduce((metal, layer) => metal += (layer.metal ? layer.value : 0), 0) + +let APused = Math.max(0, APatLoc.value - metalAP); // remove metal AP at location; + +damage -= (APused + this.actor.system.characteristics.t.bonus) + +let msg = await this.actor.applyBasicDamage(damage, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL}); +msg += ` (ignored ${metalAP} metal AP on ${game.wfrp4e.config.locations[loc]})` +this.script.scriptMessage(msg) diff --git a/scripts/V2lsVTi6q28eL5jl.js b/scripts/V2lsVTi6q28eL5jl.js new file mode 100644 index 0000000..6bde5ea --- /dev/null +++ b/scripts/V2lsVTi6q28eL5jl.js @@ -0,0 +1 @@ +args.fields.slBonus += parseInt(this.effect.sourceTest.result.SL) \ No newline at end of file diff --git a/scripts/V7qmFwUMCY2tfziH.js b/scripts/V7qmFwUMCY2tfziH.js new file mode 100644 index 0000000..1349ebf --- /dev/null +++ b/scripts/V7qmFwUMCY2tfziH.js @@ -0,0 +1 @@ +this.actor.addCondition("stunned") \ No newline at end of file diff --git a/scripts/V9wD9FWHWxZUOGSI.js b/scripts/V9wD9FWHWxZUOGSI.js new file mode 100644 index 0000000..c0e2cb8 --- /dev/null +++ b/scripts/V9wD9FWHWxZUOGSI.js @@ -0,0 +1,15 @@ +let roll = await (new Roll(`max(0, 1d10 - ${this.actor.characteristics.wp.bonus})`).roll()) +let fatigued = roll.total +roll.toMessage(this.script.getChatData()); +if (fatigued > this.actor.characteristics.wp.bonus) +{ + this.actor.addCondition("unconscious") + this.script.scriptNotification(`Fell Unconscious`) +} +else +{ + fatigued = Math.max(0, fatigued) + if (fatigued) + this.actor.addCondition("fatigued", fatigued) + this.script.scriptNotification(`Gained ${fatigued} conditions`) +} \ No newline at end of file diff --git a/scripts/V9xm4X1x3lPYTQaI.js b/scripts/V9xm4X1x3lPYTQaI.js new file mode 100644 index 0000000..200cae7 --- /dev/null +++ b/scripts/V9xm4X1x3lPYTQaI.js @@ -0,0 +1,6 @@ +if (args.extendedTest?.getFlag("wfrp4e", "fear")) +{ + this.script.scriptNotification("Immune to Fear"); + args.extendedTest.delete(); + args.abort = true; +} \ No newline at end of file diff --git a/scripts/V9zm2hKUVLVZtAcN.js b/scripts/V9zm2hKUVLVZtAcN.js new file mode 100644 index 0000000..f0c1db7 --- /dev/null +++ b/scripts/V9zm2hKUVLVZtAcN.js @@ -0,0 +1,133 @@ +let characteristics = { + "ws" : -10, + "bs" : -10, + "s" : 0, + "t" : 15, + "i" : 15, + "ag" : -20, + "dex" : 0, + "int" : 20, + "wp" : 10, + "fel" : 10 +} +let skills = ["Charm", "Channelling", "Entertain (Prophecy)", "Intuition"] +let skillAdvancements = [0, 0, 20, 10] +let talents = ["Detect Artefact", "Menacing", "Sixth Sense"] +let traits = ["Dooming", "Spellcaster (Lore of Life)", "Ward"] +let trappings = [] +let items = []; +let spells = ["Forest of Thorns"]; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +const traitRegex = /(?:,?(.+?)(\+?\d{1,2}\+?)?\s*?(?:\((.+?)\)\s*(\+?\d{1,2})?|,|$))/gm +for (let trait of traits) +{ + let traitMatches = trait.matchAll(traitRegex).next().value + let traitName = traitMatches[1] + let traitVal = traitMatches[2] || traitMatches[4] // could be match 2 or 4 depending on if there's a specialization + let traitSpec = traitMatches[3] + + let traitItem; + try { + traitItem = await WFRP_Utility.findItem(traitName, "trait") + } + catch { } + if (!traitItem) { + ui.notifications.warn(`Could not find ${trait}`, {permanent : true}) + } + traitItem = traitItem.toObject() + + if (Number.isNumeric(traitVal)) + { + traitItem.system.specification.value = traitName.includes('Weapon','Horns','Tail','Tentacles','Bite') ? traitVal - parseInt(characteristicValues[3]/10) : traitVal; + traitItem.name = (traitItem.name + ` ${traitSpec ? "("+ traitSpec + ")" : ""}`).trim() + } + else + traitItem.system.specification.value = traitSpec + + items.push(traitItem) + +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +for (let spell of spells) +{ + let spellItem = await game.wfrp4e.utility.findItem(spell) + if (spellItem) + { + spellItem = spellItem.toObject() + + items.push(spellItem); + } + else + { + ui.notifications.warn(`Could not find ${spell}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + + +function equip(item) +{ + if (item.type == "armour") + item.worn = true + else if (item.type == "weapon") + item.equipped = true + else if (item.type == "trapping" && item.trappingType?.value == "clothingAccessories") + item.worn = true +} \ No newline at end of file diff --git a/scripts/VAPsww9x3HAw1sKP.js b/scripts/VAPsww9x3HAw1sKP.js new file mode 100644 index 0000000..29c3c6e --- /dev/null +++ b/scripts/VAPsww9x3HAw1sKP.js @@ -0,0 +1 @@ +return !args.options.dodge \ No newline at end of file diff --git a/scripts/VAs1nXvicdQK18Do.js b/scripts/VAs1nXvicdQK18Do.js new file mode 100644 index 0000000..88f8ad9 --- /dev/null +++ b/scripts/VAs1nXvicdQK18Do.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Language")); \ No newline at end of file diff --git a/scripts/VKpKq4RSbI1KkUQK.js b/scripts/VKpKq4RSbI1KkUQK.js new file mode 100644 index 0000000..fe2cb4a --- /dev/null +++ b/scripts/VKpKq4RSbI1KkUQK.js @@ -0,0 +1 @@ +this.actor.flags.useless[this.effect.getFlag("wfrp4e", "location")] = true; \ No newline at end of file diff --git a/scripts/VNOKTzCrFbZ6PJUj.js b/scripts/VNOKTzCrFbZ6PJUj.js new file mode 100644 index 0000000..ab82da5 --- /dev/null +++ b/scripts/VNOKTzCrFbZ6PJUj.js @@ -0,0 +1 @@ +return !["Charm Animal", "Endurance", "Outdoor Survival"].includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/VQaC6ynouW5EQCbC.js b/scripts/VQaC6ynouW5EQCbC.js new file mode 100644 index 0000000..011cb84 --- /dev/null +++ b/scripts/VQaC6ynouW5EQCbC.js @@ -0,0 +1,13 @@ +let roll = await new Roll("1d10").roll(); + +await roll.toMessage(this.script.getChatData()); + +this.script.scriptMessage(await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true})); + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : " - " + this.effect.name}); +await test.roll(); + +if (test.succeeded) +{ + return false; +} \ No newline at end of file diff --git a/scripts/Vb7rgl8T4VRswbnZ.js b/scripts/Vb7rgl8T4VRswbnZ.js new file mode 100644 index 0000000..d728bad --- /dev/null +++ b/scripts/Vb7rgl8T4VRswbnZ.js @@ -0,0 +1 @@ +this.actor.status.addArmour(parseInt(this.item.system.specification.value) || 0, {source: this.effect, damage : this.item.getFlag("wfrp4e", "APdamage")}) \ No newline at end of file diff --git a/scripts/VbL0TgaBAmYjrezZ.js b/scripts/VbL0TgaBAmYjrezZ.js new file mode 100644 index 0000000..eb99900 --- /dev/null +++ b/scripts/VbL0TgaBAmYjrezZ.js @@ -0,0 +1,2 @@ +const talents = await Promise.all(["Hardy"].map(game.wfrp4e.utility.findTalent)) +this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/Vkuu70BZV4DPYO2Q.js b/scripts/Vkuu70BZV4DPYO2Q.js new file mode 100644 index 0000000..daabdec --- /dev/null +++ b/scripts/Vkuu70BZV4DPYO2Q.js @@ -0,0 +1 @@ +return args.item?.system?.attackType != "ranged" \ No newline at end of file diff --git a/scripts/VlFUDaKUYoBYKYn0.js b/scripts/VlFUDaKUYoBYKYn0.js new file mode 100644 index 0000000..9c3af2a --- /dev/null +++ b/scripts/VlFUDaKUYoBYKYn0.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure: "1 Corruption Point Gained"}}) +await test.roll(); +if (test.failed && this.actor.type == "character") +{ + this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + 1}) + this.script.scriptMessage("Gained a Corruption point", {whisper : ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/VqTrKPtxv9hpn0Hr.js b/scripts/VqTrKPtxv9hpn0Hr.js new file mode 100644 index 0000000..f63598a --- /dev/null +++ b/scripts/VqTrKPtxv9hpn0Hr.js @@ -0,0 +1 @@ +return args.skill?.name != "Language (Magick)" \ No newline at end of file diff --git a/scripts/VuE1mhrB6X6MYTzg.js b/scripts/VuE1mhrB6X6MYTzg.js new file mode 100644 index 0000000..eb176b0 --- /dev/null +++ b/scripts/VuE1mhrB6X6MYTzg.js @@ -0,0 +1 @@ +return args.characteristic == "fel" \ No newline at end of file diff --git a/scripts/VurA2XNqC0d9U49C.js b/scripts/VurA2XNqC0d9U49C.js new file mode 100644 index 0000000..9853d7f --- /dev/null +++ b/scripts/VurA2XNqC0d9U49C.js @@ -0,0 +1,8 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => +{ + await test.roll() + if (test.failed) + { + this.actor.addCondition("fatigued") + } +}) \ No newline at end of file diff --git a/scripts/VzO0ZDcTWvaBn4vm.js b/scripts/VzO0ZDcTWvaBn4vm.js new file mode 100644 index 0000000..ab2caf1 --- /dev/null +++ b/scripts/VzO0ZDcTWvaBn4vm.js @@ -0,0 +1,13 @@ +if (args.test.preData.skillName?.includes(game.i18n.localize("NAME.Language")) || args.test instanceof CastTest) +{ + if (parseInt(args.test.result.SL) > 0 || args.test.succeeded) + { + if (parseInt(args.test.result.SL) > 0) + { + args.test.result.SL = "-0"; + args.test.result.description = game.i18n.localize("ROLL.MarginalFailure"); + } + args.test.result.outcome = "failure" + args.test.result.other.push(`${this.effect.name}: Maximum -0 SL`) + } +} \ No newline at end of file diff --git a/scripts/VzgTGb5QXKoyPNh3.js b/scripts/VzgTGb5QXKoyPNh3.js new file mode 100644 index 0000000..0d934ee --- /dev/null +++ b/scripts/VzgTGb5QXKoyPNh3.js @@ -0,0 +1,14 @@ +if (args.attackerTest.weapon && args.defenderTest.weapon) +{ + let attackerReach = game.wfrp4e.config.reachNum[args.attackerTest.weapon.reach.value] + let defenderReach = game.wfrp4e.config.reachNum[args.defenderTest.weapon.reach.value] + + if (attackerReach == defenderReach) + defenderReach = defenderReach < 7 ? defenderReach + 1 : defenderReach + + attackerReach = game.wfrp4e.utility.findKey(attackerReach, game.wfrp4e.config.reachNum) + defenderReach = game.wfrp4e.utility.findKey(defenderReach, game.wfrp4e.config.reachNum) + + args.attackerTest.weapon.reach.value = attackerReach + args.defenderTest.weapon.reach.value = defenderReach +} \ No newline at end of file diff --git a/scripts/W9nyUNQStMr1pUHJ.js b/scripts/W9nyUNQStMr1pUHJ.js new file mode 100644 index 0000000..8a0c850 --- /dev/null +++ b/scripts/W9nyUNQStMr1pUHJ.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == this.item.system.location.key) +{ + args.actor.addCondition("bleeding", 1); + this.script.scriptNotification("Added Bleeding") +} \ No newline at end of file diff --git a/scripts/WB6sIpLEPC8YPX67.js b/scripts/WB6sIpLEPC8YPX67.js new file mode 100644 index 0000000..48584b2 --- /dev/null +++ b/scripts/WB6sIpLEPC8YPX67.js @@ -0,0 +1,6 @@ +if (args.options.dodge) +{ + args.abort = true; + this.script.scriptNotification("Cannot Dodge!") +} +return ["t", "int", "wp", "fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/WKXyVHQwQCNTfSKv.js b/scripts/WKXyVHQwQCNTfSKv.js new file mode 100644 index 0000000..6ef2a63 --- /dev/null +++ b/scripts/WKXyVHQwQCNTfSKv.js @@ -0,0 +1,4 @@ +if ((args.item.type == "weapon" || args.item.system.attackType) && !args.item.isMagical ) +{ + args.item.system.qualities.value.push({name : "magical"}) +} \ No newline at end of file diff --git a/scripts/WO5n7Vbx8AgoVrwC.js b/scripts/WO5n7Vbx8AgoVrwC.js new file mode 100644 index 0000000..18d9585 --- /dev/null +++ b/scripts/WO5n7Vbx8AgoVrwC.js @@ -0,0 +1,84 @@ + let characteristics = { + "ws" : 0, + "bs" : 0, + "s" : 0, + "t" : 0, + "i" : 10, + "ag" : 0, + "dex" : 0, + "int" : 10, + "wp" : 5, + "fel" : 5 + } + let skills = ["Intuition", "Lore (Local)", "Perception"] + let skillAdvancements = [10, 10, 10] + let talents = [] + let trappings = ["Mail Coat", "Mail Chausses", "Mail Coif", "Hand Weapon"] + let items = [] + + let updateObj = this.actor.toObject(); + + for (let ch in characteristics) + { + updateObj.system.characteristics[ch].modifier += characteristics[ch]; + } + + for (let index = 0; index < skills.length; index++) + { + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } + } + + for (let talent of talents) + { + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + } + + for (let trapping of trappings) + { + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } + } + + + await this.actor.update(updateObj) + this.actor.createEmbeddedDocuments("Item", items); + + function equip(item) + { + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true + } \ No newline at end of file diff --git a/scripts/WPQbVpD1uwSLAXq1.js b/scripts/WPQbVpD1uwSLAXq1.js new file mode 100644 index 0000000..3a7653d --- /dev/null +++ b/scripts/WPQbVpD1uwSLAXq1.js @@ -0,0 +1,4 @@ +if (this.actor.system.status.wounds.value == 0) +{ + this.actor.addCondition("dead"); +} \ No newline at end of file diff --git a/scripts/WRe1eGmGVGejPcS8.js b/scripts/WRe1eGmGVGejPcS8.js new file mode 100644 index 0000000..d47ed86 --- /dev/null +++ b/scripts/WRe1eGmGVGejPcS8.js @@ -0,0 +1,2 @@ +let wind = this.effect.name.split(" ")[2] +return args.type == "cast" && game.wfrp4e.config.magicWind[args.item.system.lore.value] == wind; \ No newline at end of file diff --git a/scripts/WTRYAEzwxRuGENyI.js b/scripts/WTRYAEzwxRuGENyI.js new file mode 100644 index 0000000..6614176 --- /dev/null +++ b/scripts/WTRYAEzwxRuGENyI.js @@ -0,0 +1,18 @@ + // Every living creature within 10 yards, other than the wielder of the hammer, + // must make a Challenging (+0) Endurance Test + + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), { + skipTargets: true, appendTitle : " - " + this.effect.name, + fields: {difficulty: "challenging"} + }) + + await test.roll(); + if (test.failed) + { + // or gain a Deafened Condition + this.actor.addCondition("deafened"); + // and suffer 1d10 Wounds which bypass armour but not Toughness Bonus. + let damage = (await new Roll("1d10").roll()); + await damage.toMessage(this.script.getChatData()); + this.script.scriptMessage(await this.actor.applyBasicDamage(damage.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg: true})) + } \ No newline at end of file diff --git a/scripts/WY3DajPRGcMNt158.js b/scripts/WY3DajPRGcMNt158.js new file mode 100644 index 0000000..37fa26b --- /dev/null +++ b/scripts/WY3DajPRGcMNt158.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.MVI0lXcg6vvtooAF") +this.actor.createEmbeddedDocuments("Item", [item.toObject()], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/WiYtNU2Y5BJfIpeM.js b/scripts/WiYtNU2Y5BJfIpeM.js new file mode 100644 index 0000000..837c65a --- /dev/null +++ b/scripts/WiYtNU2Y5BJfIpeM.js @@ -0,0 +1,15 @@ +let location = this.item.system.location.key; + +if (location) +{ + let dropped = this.item.system.weaponsAtLocation; + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} \ No newline at end of file diff --git a/scripts/WnWA0e0bgqBsZp2L.js b/scripts/WnWA0e0bgqBsZp2L.js new file mode 100644 index 0000000..3231f2e --- /dev/null +++ b/scripts/WnWA0e0bgqBsZp2L.js @@ -0,0 +1 @@ +this.item.update({"system.twohanded.value" : !this.item.system.twohanded.value}) \ No newline at end of file diff --git a/scripts/Wo4wQKUxSItAhRzZ.js b/scripts/Wo4wQKUxSItAhRzZ.js new file mode 100644 index 0000000..0923471 --- /dev/null +++ b/scripts/Wo4wQKUxSItAhRzZ.js @@ -0,0 +1,8 @@ +let lore = this.effect.name.split("(")[1].split(")")[0].toLowerCase(); + +// If channelling corresponding lore +if (args.type == "channelling" && args.spell.system.lore.value == lore) + args.prefillModifiers.slBonus += 3 +// If channelling or casting different lore +else if (args.spell.system.lore.value != lore && args.spell.system.lore.value != "petty") + args.prefillModifiers.slBonus -= 1 \ No newline at end of file diff --git a/scripts/WwxXgsNxlccmqTze.js b/scripts/WwxXgsNxlccmqTze.js new file mode 100644 index 0000000..c381b33 --- /dev/null +++ b/scripts/WwxXgsNxlccmqTze.js @@ -0,0 +1 @@ +this.actor.addCondition("dead") \ No newline at end of file diff --git a/scripts/WzMmwjZbhyCbHxyZ.js b/scripts/WzMmwjZbhyCbHxyZ.js new file mode 100644 index 0000000..9642316 --- /dev/null +++ b/scripts/WzMmwjZbhyCbHxyZ.js @@ -0,0 +1,2 @@ +this.actor.status.encumbrance.state += 2 +this.actor.status.encumbrance.pct = 100; \ No newline at end of file diff --git a/scripts/X3bLbOfcJAftOMa7.js b/scripts/X3bLbOfcJAftOMa7.js new file mode 100644 index 0000000..18e79ab --- /dev/null +++ b/scripts/X3bLbOfcJAftOMa7.js @@ -0,0 +1 @@ +return ["ws", "bs", "ag"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/X7ikFOGKYzTMr4d1.js b/scripts/X7ikFOGKYzTMr4d1.js new file mode 100644 index 0000000..729311c --- /dev/null +++ b/scripts/X7ikFOGKYzTMr4d1.js @@ -0,0 +1 @@ +args.fields.difficulty = "difficult" \ No newline at end of file diff --git a/scripts/XClTZOjuhcxWLF51.js b/scripts/XClTZOjuhcxWLF51.js new file mode 100644 index 0000000..9765515 --- /dev/null +++ b/scripts/XClTZOjuhcxWLF51.js @@ -0,0 +1,13 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "difficult"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + +if (test.failed) +{ + this.actor.addCondition("stunned") +} + + +let item = await fromUuid("Compendium.wfrp4e-core.items.4lj1ik958mbgAlaF") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) diff --git a/scripts/XO9m2AvFRAAeEuty.js b/scripts/XO9m2AvFRAAeEuty.js new file mode 100644 index 0000000..67412d0 --- /dev/null +++ b/scripts/XO9m2AvFRAAeEuty.js @@ -0,0 +1,5 @@ +if (args.test.options.fieldDressing && args.test.result.reversed) +{ + args.test.data.result.SL = "+" + Math.min(1, Number(args.test.data.result.SL)) + args.test.result.other.push(`${this.effect.name}: SL limited to 1`) +} \ No newline at end of file diff --git a/scripts/XPxAKqPpPYE4E6B5.js b/scripts/XPxAKqPpPYE4E6B5.js new file mode 100644 index 0000000..e8a65fe --- /dev/null +++ b/scripts/XPxAKqPpPYE4E6B5.js @@ -0,0 +1 @@ +args.fields.modifier -= 10 * this.effect.conditionValue \ No newline at end of file diff --git a/scripts/XRrGBbplNLZpXnCH.js b/scripts/XRrGBbplNLZpXnCH.js new file mode 100644 index 0000000..4e877c0 --- /dev/null +++ b/scripts/XRrGBbplNLZpXnCH.js @@ -0,0 +1,53 @@ +let item; +let items = [] +item = await fromUuid("Compendium.wfrp4e-core.items.rOV2s6PQBBrhpMOv") +{ + let data = item.toObject(); + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.VUJUZVN3VYhOaPjj") +{ + let data = item.toObject(); + data.system.specification.value = 2 + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.GbDyBCu8ZjDp6dkj") +{ + let data = item.toObject(); + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.a8MC97PLzl10WocT") +{ + let data = item.toObject(); + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +{ + let data = item.toObject(); + data.system.specification.value = 1; + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn") +{ + let data = item.toObject(); + data.system.specification.value = 1; + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.fjd1u9VAgiYzhBRp") +{ + let data = item.toObject(); + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.mDgEMOoJpi8DkRYb") +{ + let data = item.toObject(); + items.push(data) +} +item = await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM") +{ + let data = item.toObject(); + data.system.specification.value = 2; + items.push(data) +} + +this.actor.createEmbeddedDocuments("Item", items, {fromEffect : this.effect.id}) diff --git a/scripts/XXnzUdsIYQ9Wjyu0.js b/scripts/XXnzUdsIYQ9Wjyu0.js new file mode 100644 index 0000000..04f2e20 --- /dev/null +++ b/scripts/XXnzUdsIYQ9Wjyu0.js @@ -0,0 +1 @@ +return args.item?.system.attackType != "ranged" || args.flags.howlingWarpGale || this.actor.sameSideAs(this.effect.sourceActor) \ No newline at end of file diff --git a/scripts/XYaYeiVkc5GKYTjC.js b/scripts/XYaYeiVkc5GKYTjC.js new file mode 100644 index 0000000..8fe5ef9 --- /dev/null +++ b/scripts/XYaYeiVkc5GKYTjC.js @@ -0,0 +1 @@ +return args.spell?.system.lore.value != "fire" \ No newline at end of file diff --git a/scripts/XcvDYNZgJ2rpAdDV.js b/scripts/XcvDYNZgJ2rpAdDV.js new file mode 100644 index 0000000..ba3519f --- /dev/null +++ b/scripts/XcvDYNZgJ2rpAdDV.js @@ -0,0 +1,7 @@ + + let fatigued = this.actor.hasCondition("fatigued") + if (!fatigued) + { + this.actor.addCondition("fatigued") + ui.notifications.notify("Fatigued added to " + this.actor.name + " which cannot be removed until the Malaise symptom is gone.") + } \ No newline at end of file diff --git a/scripts/Xe8ijqWU3bbtq7ZY.js b/scripts/Xe8ijqWU3bbtq7ZY.js new file mode 100644 index 0000000..f232698 --- /dev/null +++ b/scripts/Xe8ijqWU3bbtq7ZY.js @@ -0,0 +1,5 @@ +if (args.opposedTest.defenderTest.actor.Species.toLowerCase().includes("skaven")) +{ + args.addImpact = true; + args.opposedTest.result.other.push("Impact against Skaven") +} \ No newline at end of file diff --git a/scripts/Xf4FcZ4ZLdWmOXBa.js b/scripts/Xf4FcZ4ZLdWmOXBa.js new file mode 100644 index 0000000..9aec486 --- /dev/null +++ b/scripts/Xf4FcZ4ZLdWmOXBa.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Perception") && !args.skill?.name.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/XfRvVBTVIuAm8RaZ.js b/scripts/XfRvVBTVIuAm8RaZ.js new file mode 100644 index 0000000..d338357 --- /dev/null +++ b/scripts/XfRvVBTVIuAm8RaZ.js @@ -0,0 +1 @@ +return args.item?.name != game.i18n.localize("NAME.CharmAnimal") \ No newline at end of file diff --git a/scripts/Xg4qHLsyXGuUZfT8.js b/scripts/Xg4qHLsyXGuUZfT8.js new file mode 100644 index 0000000..e83b38b --- /dev/null +++ b/scripts/Xg4qHLsyXGuUZfT8.js @@ -0,0 +1 @@ +this.actor.hasCondition("ablaze")?.delete(); \ No newline at end of file diff --git a/scripts/Xk9XPklxxTvFlwpI.js b/scripts/Xk9XPklxxTvFlwpI.js new file mode 100644 index 0000000..2c3a1c6 --- /dev/null +++ b/scripts/Xk9XPklxxTvFlwpI.js @@ -0,0 +1 @@ +args.options.useOnesArgumentative = true; \ No newline at end of file diff --git a/scripts/XthZ3GCC3WhsEI2g.js b/scripts/XthZ3GCC3WhsEI2g.js new file mode 100644 index 0000000..af499f4 --- /dev/null +++ b/scripts/XthZ3GCC3WhsEI2g.js @@ -0,0 +1,11 @@ +args.update({light : { + "dim": 10, + "bright": 5, + "alpha": 0.5, + "animation": { + "speed": 4, + "intensity": 4, + "type": "flame", + }, + "color": "#ac9e6c", +}}); \ No newline at end of file diff --git a/scripts/Xu5cED1MhT4ba7da.js b/scripts/Xu5cED1MhT4ba7da.js new file mode 100644 index 0000000..a33a76d --- /dev/null +++ b/scripts/Xu5cED1MhT4ba7da.js @@ -0,0 +1 @@ +args.fields.modifier += 10 diff --git a/scripts/XuFxKPYheYF4WMmQ.js b/scripts/XuFxKPYheYF4WMmQ.js new file mode 100644 index 0000000..ed63e68 --- /dev/null +++ b/scripts/XuFxKPYheYF4WMmQ.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Cool"); \ No newline at end of file diff --git a/scripts/Y6ppJBerpM3TtSic.js b/scripts/Y6ppJBerpM3TtSic.js new file mode 100644 index 0000000..807715e --- /dev/null +++ b/scripts/Y6ppJBerpM3TtSic.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.g4Q6AtzZuo5iIvD4"); +this.actor.createEmbeddedDocuments("Item", [item.toObject()], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/Y7McxsHFeGhwQx0J.js b/scripts/Y7McxsHFeGhwQx0J.js new file mode 100644 index 0000000..f2deebb --- /dev/null +++ b/scripts/Y7McxsHFeGhwQx0J.js @@ -0,0 +1,11 @@ +this.actor.createEmbeddedDocuments("Item", [expandObject({ + name : "Ghostly Flame", + type : "weapon", + img : this.effect.img, + system : { + "weaponGroup.value" : "throwing", + "damage.value" : "SB + WPB", + "qualities.value" : [{name : "magical"}], + "equipped" : true + } +})], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/Y8J66v8VTKUASGuK.js b/scripts/Y8J66v8VTKUASGuK.js new file mode 100644 index 0000000..956a94a --- /dev/null +++ b/scripts/Y8J66v8VTKUASGuK.js @@ -0,0 +1,16 @@ +if (!this.actor.effects.find(e => e.isCondition)) +{ + return this.script.scriptNotification("No Conditions on this Actor") +} + +let choice = await ItemDialog.create(this.actor.effects.filter(i => i.isCondition), 1, "Choose a Condition") + +if (choice[0]) +{ + await this.actor.removeCondition(choice[0].conditionId) +} + +if (this.actor.effects.find(e => e.isCondition)) +{ + return false; // Delete the effect if there are still conditions, otherwise, effect remains and provides the bonus +} \ No newline at end of file diff --git a/scripts/YDqpKJVy8ijEKdLX.js b/scripts/YDqpKJVy8ijEKdLX.js new file mode 100644 index 0000000..3cc93cf --- /dev/null +++ b/scripts/YDqpKJVy8ijEKdLX.js @@ -0,0 +1 @@ +return !(this.actor.attacker && (args.skill?.name.includes("Melee (Basic)") || (args.type == "weapon" && args.item?.system.weaponGroup.value == "basic"))) \ No newline at end of file diff --git a/scripts/YEBw2CzHYxsTpTy5.js b/scripts/YEBw2CzHYxsTpTy5.js new file mode 100644 index 0000000..8b438ad --- /dev/null +++ b/scripts/YEBw2CzHYxsTpTy5.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Haggle"); \ No newline at end of file diff --git a/scripts/YFSgWRXel0bWE3EE.js b/scripts/YFSgWRXel0bWE3EE.js new file mode 100644 index 0000000..459f8b2 --- /dev/null +++ b/scripts/YFSgWRXel0bWE3EE.js @@ -0,0 +1 @@ +return ["ag", "ws", "bs"].includes(args.characteristic) || args.skill?.name == game.i18n.localize("NAME.Climb"); \ No newline at end of file diff --git a/scripts/YHEIkBKWXKNPqglh.js b/scripts/YHEIkBKWXKNPqglh.js new file mode 100644 index 0000000..ee2ebfb --- /dev/null +++ b/scripts/YHEIkBKWXKNPqglh.js @@ -0,0 +1,4 @@ +if (args.test.result.castOutcome == "success") +{ + game.wfrp4e.utility.postCorruptionTest("moderate", this.script.getChatData()) +} diff --git a/scripts/YMaxpXnml01bLGpO.js b/scripts/YMaxpXnml01bLGpO.js new file mode 100644 index 0000000..e1e5841 --- /dev/null +++ b/scripts/YMaxpXnml01bLGpO.js @@ -0,0 +1 @@ +return args.item?.name.includes(game.i18n.localize("NAME.Stealth")) \ No newline at end of file diff --git a/scripts/YOKoZFlBEpFavfOS.js b/scripts/YOKoZFlBEpFavfOS.js new file mode 100644 index 0000000..b690956 --- /dev/null +++ b/scripts/YOKoZFlBEpFavfOS.js @@ -0,0 +1 @@ +return args.type == "channelling" \ No newline at end of file diff --git a/scripts/YQ2LnLxp0xgy3meI.js b/scripts/YQ2LnLxp0xgy3meI.js new file mode 100644 index 0000000..8fe36d5 --- /dev/null +++ b/scripts/YQ2LnLxp0xgy3meI.js @@ -0,0 +1,3 @@ +if (args.test.preData.options?.corruption && args.test.failed) { + args.test?.result?.other.push("Gain additional +1 Corruption from " + this.effect.name) +} \ No newline at end of file diff --git a/scripts/YRUTliBzAQvncGNX.js b/scripts/YRUTliBzAQvncGNX.js new file mode 100644 index 0000000..c29c046 --- /dev/null +++ b/scripts/YRUTliBzAQvncGNX.js @@ -0,0 +1,2 @@ +this.actor.addCondition("fatigued"); +this.script.scriptNotification("Added Fatigued") \ No newline at end of file diff --git a/scripts/YaKnYEbmmZZtByJc.js b/scripts/YaKnYEbmmZZtByJc.js new file mode 100644 index 0000000..65dd7e3 --- /dev/null +++ b/scripts/YaKnYEbmmZZtByJc.js @@ -0,0 +1,5 @@ +if (args.opposedTest.attackerTest.options.ballockKnife) +{ + args.weaponProperties.impale = true; + args.extraMessages.push(`${this.item.name}: Impale Added`) +} \ No newline at end of file diff --git a/scripts/Yf2MmOzazzMdmoPU.js b/scripts/Yf2MmOzazzMdmoPU.js new file mode 100644 index 0000000..19b3449 --- /dev/null +++ b/scripts/Yf2MmOzazzMdmoPU.js @@ -0,0 +1,12 @@ +let armour = await fromUuid("Compendium.wfrp4e-core.items.VUJUZVN3VYhOaPjj") +let armourData = armour.toObject() +armourData.system.specification.value = 1 + +let fury = await fromUuid("Compendium.wfrp4e-core.items.fjd1u9VAgiYzhBRp"); +let furyData = fury.toObject(); + +let horns = await fromUuid("Compendium.wfrp4e-core.items.BqPZn6q3VHn9HUrW") +let hornsData = horns.toObject() +hornsData.system.specification.value = 6 + +this.actor.createEmbeddedDocuments("Item", [armourData, furyData, hornsData], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/YhhiWEQbox3WZA3Q.js b/scripts/YhhiWEQbox3WZA3Q.js new file mode 100644 index 0000000..4b25255 --- /dev/null +++ b/scripts/YhhiWEQbox3WZA3Q.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Heal") && game.combat?.active \ No newline at end of file diff --git a/scripts/YjAIsFlxKTJvYs60.js b/scripts/YjAIsFlxKTJvYs60.js new file mode 100644 index 0000000..aae8c55 --- /dev/null +++ b/scripts/YjAIsFlxKTJvYs60.js @@ -0,0 +1 @@ +this.item.system.reduceQuantity(); \ No newline at end of file diff --git a/scripts/YjJcRdytVRm88qLn.js b/scripts/YjJcRdytVRm88qLn.js new file mode 100644 index 0000000..e34b448 --- /dev/null +++ b/scripts/YjJcRdytVRm88qLn.js @@ -0,0 +1 @@ +args.options.additionalDamage = 1 \ No newline at end of file diff --git a/scripts/YsS2RZsl2ZsqjhWV.js b/scripts/YsS2RZsl2ZsqjhWV.js new file mode 100644 index 0000000..247e5e0 --- /dev/null +++ b/scripts/YsS2RZsl2ZsqjhWV.js @@ -0,0 +1 @@ +return !args.fields.charging \ No newline at end of file diff --git a/scripts/YwLEw4BiKq4EMy57.js b/scripts/YwLEw4BiKq4EMy57.js new file mode 100644 index 0000000..277a43a --- /dev/null +++ b/scripts/YwLEw4BiKq4EMy57.js @@ -0,0 +1,19 @@ +let i_gain = (await new Roll("2d10").roll()).total +let fel_gain = 0 +if (args.actor.characteristics.fel.value <= 0) +{ + fel_gain += (await new Roll("2d10").roll()).total +} + +let msg = `${this.actor.prototypeToken.name} gains ${i_gain} Intelligence` + +if (fel_gain) + msg += ` and ${fel_gain} Fellowship` + + +let newInt = i_gain + args.actor.characteristics.int.modifier +let newFel = fel_gain + args.actor.characteristics.fel.modifier + +args.actor.update({"system.characteristics.int.modifier" : newInt, "system.characteristics.fel.modifier" : newFel}) + +this.script.scriptMessage(msg) \ No newline at end of file diff --git a/scripts/YyKU2rIRmFSCqSlW.js b/scripts/YyKU2rIRmFSCqSlW.js new file mode 100644 index 0000000..dc0a984 --- /dev/null +++ b/scripts/YyKU2rIRmFSCqSlW.js @@ -0,0 +1,6 @@ +let newEffect = this.effect.sourceItem.effects?.contents[1] + +if (newEffect) +{ + this.actor.createEmbeddedDocuments("ActiveEffect", [newEffect.convertToApplied()]); +} \ No newline at end of file diff --git a/scripts/Z1zriXibT0mAmdhb.js b/scripts/Z1zriXibT0mAmdhb.js new file mode 100644 index 0000000..a583e99 --- /dev/null +++ b/scripts/Z1zriXibT0mAmdhb.js @@ -0,0 +1,6 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.BqPZn6q3VHn9HUrW") +item = item.toObject() +item.name = this.effect.name +item.system.specification.value = this.actor.characteristics.s.bonus +item.system.description.value = "" +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/Z30zYayPryXOjT5N.js b/scripts/Z30zYayPryXOjT5N.js new file mode 100644 index 0000000..4cb014e --- /dev/null +++ b/scripts/Z30zYayPryXOjT5N.js @@ -0,0 +1 @@ +args.item.system.damage.value = "SB + 6"; \ No newline at end of file diff --git a/scripts/Z4WrrlVGpPY4iUbG.js b/scripts/Z4WrrlVGpPY4iUbG.js new file mode 100644 index 0000000..fcc4289 --- /dev/null +++ b/scripts/Z4WrrlVGpPY4iUbG.js @@ -0,0 +1 @@ +await this.actor.addCondition("ablaze") \ No newline at end of file diff --git a/scripts/Z52yZDm6lP6fOP3O.js b/scripts/Z52yZDm6lP6fOP3O.js new file mode 100644 index 0000000..07e9c66 --- /dev/null +++ b/scripts/Z52yZDm6lP6fOP3O.js @@ -0,0 +1,6 @@ +let ablaze = this.actor.hasCondition("ablaze") +if (ablaze) +{ + this.script.scriptNotification("Immune to Ablaze"); + ablaze.delete() +} \ No newline at end of file diff --git a/scripts/Z6OmmC0irJzxSnMH.js b/scripts/Z6OmmC0irJzxSnMH.js new file mode 100644 index 0000000..83bc8f3 --- /dev/null +++ b/scripts/Z6OmmC0irJzxSnMH.js @@ -0,0 +1,59 @@ +let chatData = { whisper: ChatMessage.getWhisperRecipients("GM") } +let message = "" + +let wounds = duplicate(this.actor.status.wounds) +let regenRoll = await new Roll("1d10").roll(); +let regen = regenRoll.total; + +if (wounds.value >= wounds.max) + return + +if (wounds.value > 0) +{ + wounds.value += regen + if (wounds.value > wounds.max) + { + wounds.value = wounds.max + } + message += `${this.actor.name} regains ${regen} Wounds.` + + if (regen == 10) + { + message += `
Additionally, they regenerate a Critical Wound.` + } +} +else if (regen >= 8) +{ + message += `${this.actor.name} rolled a ${regen} and regains 1 Wound.` + wounds.value += 1 + if (regen == 10) + { + message += `
Additionally, they regenerate a Critical Wound.` + } +} +else +{ + message += `${this.actor.name} Regenerate roll of ${regen} - No effect.` +} + +await this.actor.update({ "system.status.wounds": wounds }) +this.script.scriptMessage(message, { whisper: ChatMessage.getWhisperRecipients("GM") }) + +if (this.actor.Species?.toLowerCase() != "ogre") +{ + this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : " - " + this.effect.name, fields : {difficulty : "average"}}).then(test => { + test.roll() + }) +} + + + + + + + + + + + + diff --git a/scripts/Z6jNlyZMECkW4Hon.js b/scripts/Z6jNlyZMECkW4Hon.js new file mode 100644 index 0000000..e9b08d4 --- /dev/null +++ b/scripts/Z6jNlyZMECkW4Hon.js @@ -0,0 +1,13 @@ +let spells = await game.wfrp4e.utility.findAll("spell", "Loading Spells", true); + +let choice = await ItemDialog.create(spells, 1); + +if (choice[0]) +{ + this.script.scriptMessage(`Chose @UUID[${choice[0].uuid}]{${choice[0].name}}`) + let spell = (await fromUuid(choice[0].uuid)).toObject(); // Might be an index so retrieve item object for sure + setProperty(spell, "flags.wfrp4e.boonOfTzeentch", true); + spell.system.wind.value = "Channelling (Dhar)"; + spell.system.memorized.value = true; + this.actor.createEmbeddedDocuments("Item", [spell], {fromEffect: this.effect.id}) +} \ No newline at end of file diff --git a/scripts/ZCkYe5XMVY1RWMXG.js b/scripts/ZCkYe5XMVY1RWMXG.js new file mode 100644 index 0000000..34cd3e9 --- /dev/null +++ b/scripts/ZCkYe5XMVY1RWMXG.js @@ -0,0 +1 @@ +args.options.wallcrawler = true; \ No newline at end of file diff --git a/scripts/ZCrfdLPOxiNDCDSg.js b/scripts/ZCrfdLPOxiNDCDSg.js new file mode 100644 index 0000000..dfcbf82 --- /dev/null +++ b/scripts/ZCrfdLPOxiNDCDSg.js @@ -0,0 +1 @@ +this.actor.effects.get(this.effect.id).delete(); // can't use this.effect because it thinks it's parent is the item, but it actually is the actor \ No newline at end of file diff --git a/scripts/ZCuOjLAeENKN1Q4L.js b/scripts/ZCuOjLAeENKN1Q4L.js new file mode 100644 index 0000000..88928db --- /dev/null +++ b/scripts/ZCuOjLAeENKN1Q4L.js @@ -0,0 +1,15 @@ +let halve; +if (args.opposedTest.attackerTest.item?.type != "spell") +{ + halve = await Dialog.confirm({title : this.effect.name, content : "Halve Damage? (Halves Damage from all fire)"}) +} +else +{ + halve = args.opposedTest.attackerTest.item?.system.lore?.value == "fire"; +} + +if (halve) +{ + args.totalWoundLoss /= 2; + args.modifiers.other.push({label : this.effect.name, details : "Halved", value : "× 0.5"}) +} \ No newline at end of file diff --git a/scripts/ZEXhYJqqxF6QAixX.js b/scripts/ZEXhYJqqxF6QAixX.js new file mode 100644 index 0000000..9070cbc --- /dev/null +++ b/scripts/ZEXhYJqqxF6QAixX.js @@ -0,0 +1 @@ +return args.options.terror || args.extendedTest?.getFlag("wfrp4e", "fear"); \ No newline at end of file diff --git a/scripts/ZEdDcBka21rnMuz5.js b/scripts/ZEdDcBka21rnMuz5.js new file mode 100644 index 0000000..0b33c5e --- /dev/null +++ b/scripts/ZEdDcBka21rnMuz5.js @@ -0,0 +1,19 @@ +let initiativeSetting = game.settings.get("wfrp4e", "initiativeRule") + +switch (initiativeSetting) { + case "default": + args.initiative += "+10" + break; + + case "sl": + args.initiative += "+1" + break; + + case "d10Init": + args.initiative += "+10" + break; + + case "d10InitAgi": + args.initiative += "+1" + break; +} \ No newline at end of file diff --git a/scripts/ZGlJnrIemqul24j7.js b/scripts/ZGlJnrIemqul24j7.js new file mode 100644 index 0000000..4054270 --- /dev/null +++ b/scripts/ZGlJnrIemqul24j7.js @@ -0,0 +1,8 @@ +let infected = await fromUuid("Compendium.wfrp4e-core.items.V0c3qBU1CMm8bmsW") +let bite = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let biteData = bite.toObject(); +let infectedData = infected.toObject(); + +biteData.system.specification.value = 4 - this.actor.characteristics.s.bonus + +this.actor.createEmbeddedDocuments("Item", [biteData, infectedData], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/ZI2YnAAGoLpmVDIL.js b/scripts/ZI2YnAAGoLpmVDIL.js new file mode 100644 index 0000000..9f19b3e --- /dev/null +++ b/scripts/ZI2YnAAGoLpmVDIL.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.aE3pyW20Orvdjzj0") +let data = item.toObject(); +data.system.specification.value = "Religion" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/ZJy2rvpKmUHXGrAi.js b/scripts/ZJy2rvpKmUHXGrAi.js new file mode 100644 index 0000000..c8deacc --- /dev/null +++ b/scripts/ZJy2rvpKmUHXGrAi.js @@ -0,0 +1 @@ +args.actor.details.move.run *= 1.5 \ No newline at end of file diff --git a/scripts/ZMwJad6v4G13SgjR.js b/scripts/ZMwJad6v4G13SgjR.js new file mode 100644 index 0000000..09abcb6 --- /dev/null +++ b/scripts/ZMwJad6v4G13SgjR.js @@ -0,0 +1 @@ +return args.type == "cast" || args.type == "channelling" \ No newline at end of file diff --git a/scripts/ZNW3ubbKIYXAyE48.js b/scripts/ZNW3ubbKIYXAyE48.js new file mode 100644 index 0000000..8669753 --- /dev/null +++ b/scripts/ZNW3ubbKIYXAyE48.js @@ -0,0 +1,29 @@ +let wounds = this.actor.itemTypes.disease.filter(i => i.name == "Festering Wound" && i.system.duration.active); +let selected; +if (wounds.length == 0) +{ + return this.script.scriptNotification("No Festering Wounds!"); +} +else if (wounds.length == 1) +{ + selected = wounds[0]; +} +else if (wounds.length >= 2) +{ + selected = (await ItemDialog.create(wounds, 1))[0]; +} + +if (selected) +{ + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty : "average"}}) + await test.roll(); + if (test.succeeded) + { + let SL = parseInt(test.result.SL); + if (SL >= 0) + { + selected.update({"system.duration.value" : selected.system.duration.value - SL}) + this.script.scriptMessage(`${selected.name} duration reduced by ${SL}!`) + } + } +} \ No newline at end of file diff --git a/scripts/ZNu4B0OdjkM9lmtu.js b/scripts/ZNu4B0OdjkM9lmtu.js new file mode 100644 index 0000000..2177c29 --- /dev/null +++ b/scripts/ZNu4B0OdjkM9lmtu.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.9h82z72XGo9tfgQS") +let data = item.toObject(); +data.name = data.name += " (Vision)" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/ZTE8LdRblyG4yYoE.js b/scripts/ZTE8LdRblyG4yYoE.js new file mode 100644 index 0000000..16fcab5 --- /dev/null +++ b/scripts/ZTE8LdRblyG4yYoE.js @@ -0,0 +1,8 @@ +if (args.test.result.castOutcome == "success") +{ + // Wait till after chat card is posted + game.wfrp4e.utility.sleep(500).then(() => { + game.wfrp4e.utility.postTerror(1, this.effect.name) + game.wfrp4e.utility.postTerror(2, this.effect.name) + }) +} \ No newline at end of file diff --git a/scripts/ZYsMgB4BwXBJcpYf.js b/scripts/ZYsMgB4BwXBJcpYf.js new file mode 100644 index 0000000..e935d19 --- /dev/null +++ b/scripts/ZYsMgB4BwXBJcpYf.js @@ -0,0 +1,3 @@ +// The wearer of the cloak causes Fear 2 +// in Wolves, Lions, Goats, and Chimeras. +game.wfrp4e.utility.postFear(2, this.effect.name) diff --git a/scripts/ZbuW8y7t9Y8oUFWq.js b/scripts/ZbuW8y7t9Y8oUFWq.js new file mode 100644 index 0000000..16270cc --- /dev/null +++ b/scripts/ZbuW8y7t9Y8oUFWq.js @@ -0,0 +1 @@ +return !((args.type == "weapon" && (args.item.system.weaponGroup.value == "blackpowder" || args.item.system.weaponGroup.value == "engineering")) || (args.type == "cast" && args.item.system.lore.value == "fire")) \ No newline at end of file diff --git a/scripts/ZdHvGvSJBsIuPphF.js b/scripts/ZdHvGvSJBsIuPphF.js new file mode 100644 index 0000000..b20bae0 --- /dev/null +++ b/scripts/ZdHvGvSJBsIuPphF.js @@ -0,0 +1 @@ +return !args.fields.dualWielding && !args.options.dualWieldOffhand \ No newline at end of file diff --git a/scripts/Ze9E2zR1GFGWGMVH.js b/scripts/Ze9E2zR1GFGWGMVH.js new file mode 100644 index 0000000..1cc8e6f --- /dev/null +++ b/scripts/Ze9E2zR1GFGWGMVH.js @@ -0,0 +1 @@ +return ["Pick Lock", "Sleight of Hand", "Channelling (Ulgu)"].includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/ZhuitY1KOU1Xe7cP.js b/scripts/ZhuitY1KOU1Xe7cP.js new file mode 100644 index 0000000..70a94b6 --- /dev/null +++ b/scripts/ZhuitY1KOU1Xe7cP.js @@ -0,0 +1 @@ +return !args.weapon?.system.properties.qualities.pummel \ No newline at end of file diff --git a/scripts/ZqTW093qENOwGONP.js b/scripts/ZqTW093qENOwGONP.js new file mode 100644 index 0000000..9757bed --- /dev/null +++ b/scripts/ZqTW093qENOwGONP.js @@ -0,0 +1,10 @@ +let msg = "" + +let SL = parseInt(this.effect.sourceTest.result.SL); + +for(let i = 0; i < SL; i++) +{ + msg += `

${await this.actor.applyBasicDamage(3, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP})}

` +} + +this.script.scriptMessage(msg); \ No newline at end of file diff --git a/scripts/ZrePyV2spv3v65Tg.js b/scripts/ZrePyV2spv3v65Tg.js new file mode 100644 index 0000000..e7da169 --- /dev/null +++ b/scripts/ZrePyV2spv3v65Tg.js @@ -0,0 +1 @@ +return args.type != "weapon" && !this.actor.statuses.has("infighting") \ No newline at end of file diff --git a/scripts/ZsQR3AVKi0v5U593.js b/scripts/ZsQR3AVKi0v5U593.js new file mode 100644 index 0000000..9ecf140 --- /dev/null +++ b/scripts/ZsQR3AVKi0v5U593.js @@ -0,0 +1 @@ +args.actor.addCondition("ablaze", 2) \ No newline at end of file diff --git a/scripts/ZvbBM4gTJHPdU8jU.js b/scripts/ZvbBM4gTJHPdU8jU.js new file mode 100644 index 0000000..b8ce00a --- /dev/null +++ b/scripts/ZvbBM4gTJHPdU8jU.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}}) +await test.roll(); +return test.failed \ No newline at end of file diff --git a/scripts/Zxh4RAENoaAQAaNg.js b/scripts/Zxh4RAENoaAQAaNg.js new file mode 100644 index 0000000..a16ea6f --- /dev/null +++ b/scripts/Zxh4RAENoaAQAaNg.js @@ -0,0 +1 @@ +return !this.actor.flags.useless.rEye || !this.actor.flags.useless.lEye || ["wp", "t", "s"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/ZxtOdwsM2Sqj9Zam.js b/scripts/ZxtOdwsM2Sqj9Zam.js new file mode 100644 index 0000000..e58661f --- /dev/null +++ b/scripts/ZxtOdwsM2Sqj9Zam.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM") +let data = item.toObject(); +data.system.specification.value = 0 +data.name = this.effect.name; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/a02tlRCXpaoaDjSN.js b/scripts/a02tlRCXpaoaDjSN.js new file mode 100644 index 0000000..c70bd5f --- /dev/null +++ b/scripts/a02tlRCXpaoaDjSN.js @@ -0,0 +1,16 @@ +let careers = await game.wfrp4e.utility.findAll("career", "", true); +careers.forEach(c => { + if (!c.id) + { + c.id = c._id; + } +}); +let choice = await ItemDialog.create(careers, 1, "Choose Double Life Career"); +if (choice[0]) +{ + let career = await fromUuid(choice[0].uuid); + let data = career.toObject(); + setProperty(data, "flags.wfrp4e.doubleLife", true); + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + this.effect.updateSource({name : this.effect.name + ` (${data.name})`}) +} diff --git a/scripts/a0YU3whUm16wGBNu.js b/scripts/a0YU3whUm16wGBNu.js new file mode 100644 index 0000000..ed24c51 --- /dev/null +++ b/scripts/a0YU3whUm16wGBNu.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "average"}}) +await test.roll(); + +if (test.failed) +{ + this.actor.addCondition("fatigued"); +} \ No newline at end of file diff --git a/scripts/a4Aza4a9v8JMU8dC.js b/scripts/a4Aza4a9v8JMU8dC.js new file mode 100644 index 0000000..7ec136f --- /dev/null +++ b/scripts/a4Aza4a9v8JMU8dC.js @@ -0,0 +1,2 @@ +const talents = await Promise.all(["Frenzy", "Magic Resistance"].map(game.wfrp4e.utility.findTalent)) +this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/a6gacHsvgwtsIFSQ.js b/scripts/a6gacHsvgwtsIFSQ.js new file mode 100644 index 0000000..735565f --- /dev/null +++ b/scripts/a6gacHsvgwtsIFSQ.js @@ -0,0 +1,2 @@ +if (args.test.item && args.test.item.name == game.i18n.localize("NAME.Research")) + args.test.preData.canReverse = true \ No newline at end of file diff --git a/scripts/a7pEvCycVnFBXGAQ.js b/scripts/a7pEvCycVnFBXGAQ.js new file mode 100644 index 0000000..604c31c --- /dev/null +++ b/scripts/a7pEvCycVnFBXGAQ.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupCharacteristic("i", {skipTargets: true, appendTitle : " - Stunned", fields : {difficulty : "easy"}}) +await test.roll(); + +if (!test.succeeded) +{ + this.actor.addCondition("stunned"); +} \ No newline at end of file diff --git a/scripts/a8RabrnJ08O07rDX.js b/scripts/a8RabrnJ08O07rDX.js new file mode 100644 index 0000000..5ac0cfe --- /dev/null +++ b/scripts/a8RabrnJ08O07rDX.js @@ -0,0 +1,5 @@ +if (args.totalWoundLoss > 0) +{ + // I'm assuming the endurance test specified is for the end-round check + await args.actor.addCondition("poisoned", 2); +} \ No newline at end of file diff --git a/scripts/a8i0sA1RBnD8nHZt.js b/scripts/a8i0sA1RBnD8nHZt.js new file mode 100644 index 0000000..b78fb2c --- /dev/null +++ b/scripts/a8i0sA1RBnD8nHZt.js @@ -0,0 +1,42 @@ +let caster = this.effect.sourceActor +let targetedItem = this.actor.items.get(this.effect.flags.wfrp4e.itemTargets[0]) + +let qualities = foundry.utils.deepClone(game.wfrp4e.config.itemQualities); +let flaws = foundry.utils.deepClone(game.wfrp4e.config.itemFlaws); + +if (targetedItem.type == "weapon") +{ + mergeObject(qualities, game.wfrp4e.config.weaponQualities) + mergeObject(flaws, game.wfrp4e.config.weaponFlaws) +} +else if (targetedItem.type == "armour") +{ + mergeObject(qualities, game.wfrp4e.config.armorQualities) + mergeObject(flaws, game.wfrp4e.config.armorFlaws) +} + +for(let q in qualities) +{ + // If the weapon already has a flaw, don't put it in the dialog + if (targetedItem.system.properties.qualities[q]) + { + delete qualities[q] + } +} +for(let f in flaws) +{ + // If a weapon doesn't have a flaw, don't put it in the dialog + if (!targetedItem.system.properties.flaws[f]) + { + delete flaws[f] + } +} + +let added = await ItemDialog.create(ItemDialog.objectToArray(qualities), "unlimited", "Choose Qualities to add"); +let removed = [] +if (!foundry.utils.isEmpty(flaws)) +{ + removed = await ItemDialog.create(ItemDialog.objectToArray(flaws), "unlimited", "Choose Flaws to remove"); +} + +this.effect.updateSource({"flags.wfrp4e.propertiesChanged" : {added : added.map(i => i.id), removed : removed.map(i => i.id)}}) diff --git a/scripts/aAvJrAKLzXhS9qN6.js b/scripts/aAvJrAKLzXhS9qN6.js new file mode 100644 index 0000000..645c806 --- /dev/null +++ b/scripts/aAvJrAKLzXhS9qN6.js @@ -0,0 +1 @@ +return args.item?.name == game.i18n.localize("NAME.Climb") \ No newline at end of file diff --git a/scripts/aCVtaW8ag1WibcAr.js b/scripts/aCVtaW8ag1WibcAr.js new file mode 100644 index 0000000..bf9b92d --- /dev/null +++ b/scripts/aCVtaW8ag1WibcAr.js @@ -0,0 +1,2 @@ +args.attacker.modifyWounds(1) +this.script.scriptMessage(`${args.attacker.prototypeToken.name} recovers 1 Wound.`) \ No newline at end of file diff --git a/scripts/aIYUsBIDKWJ3CEtj.js b/scripts/aIYUsBIDKWJ3CEtj.js new file mode 100644 index 0000000..9779863 --- /dev/null +++ b/scripts/aIYUsBIDKWJ3CEtj.js @@ -0,0 +1 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(20, {suppressMsg: true})); \ No newline at end of file diff --git a/scripts/aMHGjWyn6BXCI4pw.js b/scripts/aMHGjWyn6BXCI4pw.js new file mode 100644 index 0000000..0f73350 --- /dev/null +++ b/scripts/aMHGjWyn6BXCI4pw.js @@ -0,0 +1,2 @@ +let frenzy = await fromUuid("Compendium.wfrp4e-core.items.Item.hXcfygzujgyMN1uI"); +this.actor.createEmbeddedDocuments("Item", [frenzy], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/abLWYtNTu1UVDQAs.js b/scripts/abLWYtNTu1UVDQAs.js new file mode 100644 index 0000000..547de25 --- /dev/null +++ b/scripts/abLWYtNTu1UVDQAs.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == this.effect.flags.wfrp4e.location) // e.g. 'head', rLeg, 'lArm' +{ + this.scriptMessage(`Gains a @Condition[Blinded] condition as their ${this.item.name} was hit`); + this.actor.addCondition("blinded"); +} \ No newline at end of file diff --git a/scripts/abVIvJBzuskNzCQv.js b/scripts/abVIvJBzuskNzCQv.js new file mode 100644 index 0000000..2fd5bf8 --- /dev/null +++ b/scripts/abVIvJBzuskNzCQv.js @@ -0,0 +1,8 @@ +let amount = this.effect.sourceTest.result.overcast.usage.other.current; + +let sss = await fromUuid("Compendium.wfrp4e-core.items.MGEPI4jNhymNIRVz"); +let strider = await fromUuid("Compendium.wfrp4e-core.items.1dUizIgLBgn4jICC"); + +let items = Array(amount).fill(sss).concat(Array(amount).fill(strider)) + +this.actor.createEmbeddedDocuments("Item", items, {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/afdmOvPGMpEdZvCb.js b/scripts/afdmOvPGMpEdZvCb.js new file mode 100644 index 0000000..20d9df6 --- /dev/null +++ b/scripts/afdmOvPGMpEdZvCb.js @@ -0,0 +1 @@ +return (args.skill?.name == game.i18n.localize("NAME.Perception") || args.characteristic == "fel") \ No newline at end of file diff --git a/scripts/agsm3NI1NDtHRG4y.js b/scripts/agsm3NI1NDtHRG4y.js new file mode 100644 index 0000000..3391c51 --- /dev/null +++ b/scripts/agsm3NI1NDtHRG4y.js @@ -0,0 +1 @@ +this.actor.getActiveTokens().forEach(t => t.document.update({texture : this.actor.prototypeToken.texture}, {animate : false})); \ No newline at end of file diff --git a/scripts/ahbA7o5G9dzMFl76.js b/scripts/ahbA7o5G9dzMFl76.js new file mode 100644 index 0000000..0937f98 --- /dev/null +++ b/scripts/ahbA7o5G9dzMFl76.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.SfUUdOGjdYpr3KSR") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/alJgj25l3239h2SW.js b/scripts/alJgj25l3239h2SW.js new file mode 100644 index 0000000..edd4d2f --- /dev/null +++ b/scripts/alJgj25l3239h2SW.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.hTgrGkWnmIR4xhVe") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/ayIbw2Vw2t9xg33P.js b/scripts/ayIbw2Vw2t9xg33P.js new file mode 100644 index 0000000..0af0e36 --- /dev/null +++ b/scripts/ayIbw2Vw2t9xg33P.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.EaqlLRQigwnsEAXX") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/b1zMefdoZYtzCm7i.js b/scripts/b1zMefdoZYtzCm7i.js new file mode 100644 index 0000000..d165c01 --- /dev/null +++ b/scripts/b1zMefdoZYtzCm7i.js @@ -0,0 +1 @@ +return ["roll", "none"].includes(args.fields.hitLocation) || args.item?.attackType != "ranged" \ No newline at end of file diff --git a/scripts/b2Kb4IuD22RhKhR0.js b/scripts/b2Kb4IuD22RhKhR0.js new file mode 100644 index 0000000..fcbecf9 --- /dev/null +++ b/scripts/b2Kb4IuD22RhKhR0.js @@ -0,0 +1,10 @@ +let actor = Array.from(game.user.targets)[0]?.actor; + +if (actor) +{ + actor.applyEffect({effectUuids : this.effect.sourceItem.effects.contents[0].uuid}) +} +else +{ + this.script.scriptNotification("No target!", "error") +} \ No newline at end of file diff --git a/scripts/b2WaqRna5CFXmbDG.js b/scripts/b2WaqRna5CFXmbDG.js new file mode 100644 index 0000000..8f874fd --- /dev/null +++ b/scripts/b2WaqRna5CFXmbDG.js @@ -0,0 +1 @@ +args.options.stag = true; \ No newline at end of file diff --git a/scripts/b5DfAWtpV1x2R8If.js b/scripts/b5DfAWtpV1x2R8If.js new file mode 100644 index 0000000..c9f120e --- /dev/null +++ b/scripts/b5DfAWtpV1x2R8If.js @@ -0,0 +1 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(this.effect.sourceTest.result.damage, {suppressMsg: true})) \ No newline at end of file diff --git a/scripts/b5prg1FLjCAvBjLy.js b/scripts/b5prg1FLjCAvBjLy.js new file mode 100644 index 0000000..705112f --- /dev/null +++ b/scripts/b5prg1FLjCAvBjLy.js @@ -0,0 +1,13 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.zyocWSzEZEC826NS") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data]) + + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty: "hard"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + await this.actor.addCondition("prone") + await this.actor.addCondition("stunned") +} \ No newline at end of file diff --git a/scripts/bBdXzBmxgFFBwMMS.js b/scripts/bBdXzBmxgFFBwMMS.js new file mode 100644 index 0000000..b0eea24 --- /dev/null +++ b/scripts/bBdXzBmxgFFBwMMS.js @@ -0,0 +1,9 @@ +if(args.opposedTest.attackerTest.item?.isRanged && args.applyAP && !args.sureShot) +{ + if (args.modifiers.ap.value) + { + args.sureShot = true; + args.modifiers.ap.details.push(`${this.effect.name} (Ignore ${this.item.Advances})`) + args.modifiers.ap.ignored += this.item.Advances; + } +} \ No newline at end of file diff --git a/scripts/bEVlJOOA1kLlzpWx.js b/scripts/bEVlJOOA1kLlzpWx.js new file mode 100644 index 0000000..4a07c15 --- /dev/null +++ b/scripts/bEVlJOOA1kLlzpWx.js @@ -0,0 +1,86 @@ +let characteristics = { + "ws" : 10, + "bs" : 0, + "s" : 5, + "t" : 15, + "i" : 20, + "ag" : 15, + "dex" : 20, + "int" : 35, + "wp" : 30, + "fel" : 10 +} +let skills = ["Channelling", "Cool", "Dodge", "Entertain (Storytelling)", "Intuition", "Language (Magick)", "Leadership", "Lore (Magic)", "Lore (Theology)", "Perception"] +let skillAdvancements = [20, 25, 20, 25, 30, 25, 15, 20, 10, 30] +let talents = ["Aethyric Attunement", "Arcane Magic", "Instinctive Diction", "Instinctive Diction", "Luck", "Magical Sense", "Menacing", "Petty Magic", "Second Sight", "Sixth Sense"] +let trappings = ["Hand Weapon", "Quarterstaff", "Ritual Dress incorporating many ingredients and fetishes"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + items.push({name : trapping, type : "trapping", "system.trappingType.value" : "clothingAccessories"}) + //ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/bLkt8VpTTPoTxW0W.js b/scripts/bLkt8VpTTPoTxW0W.js new file mode 100644 index 0000000..73567e8 --- /dev/null +++ b/scripts/bLkt8VpTTPoTxW0W.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == "body" && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 1); + this.script.scriptNotification("Added Bleeding") +} diff --git a/scripts/bMEFHPCei2evnZZw.js b/scripts/bMEFHPCei2evnZZw.js new file mode 100644 index 0000000..7eb94d5 --- /dev/null +++ b/scripts/bMEFHPCei2evnZZw.js @@ -0,0 +1,14 @@ +// Victims that take at least 1 Wound from a Fell Dagger +// immediately take a Poisoned Condition +// resisted with a Difficult (-10) Endurance Test. + +// TODO: Add Venom strength to message + +if (args.totalWoundLoss > 0) +{ + args.actor.addCondition("poisoned") + this.script.scriptMessage(` + ${this.effect.name}:
+ ${args.actor.name} has been given a @Condition[Poisoned] Condition, which can be resisted with a Difficult (-10) Endurance Test.`, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} diff --git a/scripts/bQyVajMN1ETwlzvM.js b/scripts/bQyVajMN1ETwlzvM.js new file mode 100644 index 0000000..757c282 --- /dev/null +++ b/scripts/bQyVajMN1ETwlzvM.js @@ -0,0 +1,9 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.aE3pyW20Orvdjzj0") +let data = item.toObject(); +let target = await game.wfrp4e.tables.rollTable("fixations") +if (target) +{ + data.system.specification.value = target.result + this.script.scriptNotification(target.result); +} +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/bRtZH0xRh8dgqMeW.js b/scripts/bRtZH0xRh8dgqMeW.js new file mode 100644 index 0000000..03b6b69 --- /dev/null +++ b/scripts/bRtZH0xRh8dgqMeW.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.BqPZn6q3VHn9HUrW") +let data = item.toObject(); +data.system.specification.value = 7 - this.actor.characteristics.s.bonus +data.name = item.name.replace("(Feature)", ""); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/bWr8leucbWslBCYG.js b/scripts/bWr8leucbWslBCYG.js new file mode 100644 index 0000000..b794c09 --- /dev/null +++ b/scripts/bWr8leucbWslBCYG.js @@ -0,0 +1 @@ +return args.characteristic != "s" \ No newline at end of file diff --git a/scripts/bhXUW7IJtEaUGAoV.js b/scripts/bhXUW7IJtEaUGAoV.js new file mode 100644 index 0000000..5be3c04 --- /dev/null +++ b/scripts/bhXUW7IJtEaUGAoV.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone"); +} + \ No newline at end of file diff --git a/scripts/brNRqfpPqD2Ki0cM.js b/scripts/brNRqfpPqD2Ki0cM.js new file mode 100644 index 0000000..e7cf66e --- /dev/null +++ b/scripts/brNRqfpPqD2Ki0cM.js @@ -0,0 +1 @@ +args.prefillModifiers.modifier -= 10 \ No newline at end of file diff --git a/scripts/btPrQkGRKUkhNe3N.js b/scripts/btPrQkGRKUkhNe3N.js new file mode 100644 index 0000000..8c320ab --- /dev/null +++ b/scripts/btPrQkGRKUkhNe3N.js @@ -0,0 +1 @@ +return args.skill?.name == "Trade (Apothecary)" \ No newline at end of file diff --git a/scripts/bwtQOSWn120NICkf.js b/scripts/bwtQOSWn120NICkf.js new file mode 100644 index 0000000..5b27c29 --- /dev/null +++ b/scripts/bwtQOSWn120NICkf.js @@ -0,0 +1,8 @@ +let test = await this.actor.setupCharacteristic("ag", {fields : {difficulty : "hard"}}); +await test.roll(); + +if (test.failed) +{ + await this.actor.addCondition("bleeding") + await this.actor.addCondition("entangled") +} \ No newline at end of file diff --git a/scripts/bwx9wuEOJPF7btD1.js b/scripts/bwx9wuEOJPF7btD1.js new file mode 100644 index 0000000..fd35010 --- /dev/null +++ b/scripts/bwx9wuEOJPF7btD1.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Navigation"); \ No newline at end of file diff --git a/scripts/bzaoWcieMFaU5B5l.js b/scripts/bzaoWcieMFaU5B5l.js new file mode 100644 index 0000000..1d94b8f --- /dev/null +++ b/scripts/bzaoWcieMFaU5B5l.js @@ -0,0 +1 @@ +return !this.actor.flags.useless[this.item.system.location.key] || ["fel", "wp", "int", "t"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/c31hjp7k0hlpdGBC.js b/scripts/c31hjp7k0hlpdGBC.js new file mode 100644 index 0000000..5908428 --- /dev/null +++ b/scripts/c31hjp7k0hlpdGBC.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.yRhhOlt18COq4e1q"); +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/c3KA1knL2NYNUEww.js b/scripts/c3KA1knL2NYNUEww.js new file mode 100644 index 0000000..b904c0c --- /dev/null +++ b/scripts/c3KA1knL2NYNUEww.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Evaluate"); \ No newline at end of file diff --git a/scripts/cAioHYtlxuOCwRLh.js b/scripts/cAioHYtlxuOCwRLh.js new file mode 100644 index 0000000..7ce39d7 --- /dev/null +++ b/scripts/cAioHYtlxuOCwRLh.js @@ -0,0 +1,2 @@ +let ablaze = Number(args.opposedTest.attackerTest.result.SL) + 1 +args.actor.addCondition("ablaze", ablaze) \ No newline at end of file diff --git a/scripts/cApfxL7Ic0NKdoSr.js b/scripts/cApfxL7Ic0NKdoSr.js new file mode 100644 index 0000000..f436daa --- /dev/null +++ b/scripts/cApfxL7Ic0NKdoSr.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.rOV2s6PQBBrhpMOv") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/cBSy9CR5NZvcLRg8.js b/scripts/cBSy9CR5NZvcLRg8.js new file mode 100644 index 0000000..0605d32 --- /dev/null +++ b/scripts/cBSy9CR5NZvcLRg8.js @@ -0,0 +1,5 @@ + + args.prefillModifiers.modifier += 0; + args.prefillModifiers.slBonus += 0; + args.prefillModifiers.successBonus += 0; + \ No newline at end of file diff --git a/scripts/cDBhmHn5kjgWBAlT.js b/scripts/cDBhmHn5kjgWBAlT.js new file mode 100644 index 0000000..e752dd2 --- /dev/null +++ b/scripts/cDBhmHn5kjgWBAlT.js @@ -0,0 +1,3 @@ +let num = (this.effect.sourceTest.result.overcast.usage.other.current || 1) + +this.actor.addCondition("entangled", num) \ No newline at end of file diff --git a/scripts/cEg09bnvZD6Ysnpc.js b/scripts/cEg09bnvZD6Ysnpc.js new file mode 100644 index 0000000..628bc35 --- /dev/null +++ b/scripts/cEg09bnvZD6Ysnpc.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-archives2.items.anIlqJXFOIEzIOo1") +let data = item.toObject(); +data.name = this.item.name; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/cJFDnq1HI4gXWcJo.js b/scripts/cJFDnq1HI4gXWcJo.js new file mode 100644 index 0000000..7371b34 --- /dev/null +++ b/scripts/cJFDnq1HI4gXWcJo.js @@ -0,0 +1,8 @@ +if (isNaN(parseInt(this.item.system.specification.value))) +{ + let value = await ValueDialog.create("Ward Value", "Enter the Ward value"); + if (value) + { + this.item.updateSource({"system.specification.value" : value}); + } +} \ No newline at end of file diff --git a/scripts/cK1Jysfu5IMUUH0C.js b/scripts/cK1Jysfu5IMUUH0C.js new file mode 100644 index 0000000..7c148b7 --- /dev/null +++ b/scripts/cK1Jysfu5IMUUH0C.js @@ -0,0 +1,11 @@ +if (!args.ward) +{ + args.ward = (this.effect.getFlag("wfrp4e", "ward") || 0); + if (args.wardRoll >= args.ward && args.ward > 3) + { + let newWard = Math.max(3, args.ward - 1) + this.script.scriptMessage("Ward improved to " + newWard) + this.effect.setFlag("wfrp4e", "ward", newWard) + } + +} \ No newline at end of file diff --git a/scripts/cOuukVo8WakDZIUj.js b/scripts/cOuukVo8WakDZIUj.js new file mode 100644 index 0000000..09d3397 --- /dev/null +++ b/scripts/cOuukVo8WakDZIUj.js @@ -0,0 +1 @@ +args.prefillModifiers.slBonus += 1 \ No newline at end of file diff --git a/scripts/cUFCL02JoaZObRcX.js b/scripts/cUFCL02JoaZObRcX.js new file mode 100644 index 0000000..581a493 --- /dev/null +++ b/scripts/cUFCL02JoaZObRcX.js @@ -0,0 +1,4 @@ +let sl = this.effect.sourceTest.result.slOver; + +this.actor.system.characteristics.s.modifier += sl * 10; +this.actor.system.characteristics.s.calculationBonusModifier -= sl; \ No newline at end of file diff --git a/scripts/cUnbADgOQ4fMKgrH.js b/scripts/cUnbADgOQ4fMKgrH.js new file mode 100644 index 0000000..75b0494 --- /dev/null +++ b/scripts/cUnbADgOQ4fMKgrH.js @@ -0,0 +1,20 @@ +let group +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.5hH73j2NgPdsLCZN"); +let data = item.toObject(); + +if (this.item.name.includes("(")) +{ + group = this.item.parenthesesText +} + +else +{ + group = await ValueDialog.create("Enter Hatred Group", "Hatred Group") + + this.item.updateSource({name : this.item.name + ` (${group})`, "system.tests.value" : this.item.system.tests.value.replace("Group", group)}) + this.effect.updateSource({name : this.effect.name + ` (${group})`}) +} + + +data.name = data.name.replace("Target", group); +await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}); \ No newline at end of file diff --git a/scripts/cV9JiAgUPOeUHKnS.js b/scripts/cV9JiAgUPOeUHKnS.js new file mode 100644 index 0000000..c65bef6 --- /dev/null +++ b/scripts/cV9JiAgUPOeUHKnS.js @@ -0,0 +1,5 @@ +args.fields.successBonus++; +if (args.skill?.name != game.i18n.localize("NAME.SleightOfHand")) +{ + args.fields.modifier += 10; +} \ No newline at end of file diff --git a/scripts/cYPIXzl86a3LFsTE.js b/scripts/cYPIXzl86a3LFsTE.js new file mode 100644 index 0000000..2764f55 --- /dev/null +++ b/scripts/cYPIXzl86a3LFsTE.js @@ -0,0 +1,6 @@ +if (args.item.type == "spell") +{ + args.item.cn.value -=2 + if (args.item.cn.value < 0) + args.item.cn.value = 0 +} \ No newline at end of file diff --git a/scripts/cgmA2N0MkjA7qIZy.js b/scripts/cgmA2N0MkjA7qIZy.js new file mode 100644 index 0000000..64041c2 --- /dev/null +++ b/scripts/cgmA2N0MkjA7qIZy.js @@ -0,0 +1 @@ +return args.type != "cast" || args.item?.system.lore?.value != "shadow" \ No newline at end of file diff --git a/scripts/ch5SD2XOQfcYo0X5.js b/scripts/ch5SD2XOQfcYo0X5.js new file mode 100644 index 0000000..bdb8570 --- /dev/null +++ b/scripts/ch5SD2XOQfcYo0X5.js @@ -0,0 +1,10 @@ +if (args.sizeDiff <= -2 && args.opposedTest.attackerTest.result.critical) + args.damageMultiplier = Math.abs(args.sizeDiff) + + let sBonusDiff = args.opposedTest.defenderTest.actor.characteristics.t.bonus - args.opposedTest.attackerTest.actor.characteristics.s.bonus + let weapon = args.opposedTest.attackerTest.item + if (sBonusDiff > 0 && weapon && weapon.damage.value.includes("SB")) + { + args.damage += sBonusDiff + args.breakdown.other.push({label : this.effect.name, value : sBonusDiff}); + } \ No newline at end of file diff --git a/scripts/chUpiI3el8IO8MSs.js b/scripts/chUpiI3el8IO8MSs.js new file mode 100644 index 0000000..714ea80 --- /dev/null +++ b/scripts/chUpiI3el8IO8MSs.js @@ -0,0 +1,6 @@ +if (args.opposedTest.attackerTest.item?.name.includes("Bite")) +{ + let woundsGained = args.totalWoundLoss; + this.script.scriptMessage(`Gains ${woundsGained} Wounds`, { whisper: ChatMessage.getWhisperRecipients("GM") }) + this.actor.modifyWounds(woundsGained) +} \ No newline at end of file diff --git a/scripts/csLKDJKZaUK9vwLT.js b/scripts/csLKDJKZaUK9vwLT.js new file mode 100644 index 0000000..7917870 --- /dev/null +++ b/scripts/csLKDJKZaUK9vwLT.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.7rBhIRo96Mydo0Cv") +let data = item.toObject(); +data.system.location.value = "Back" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) diff --git a/scripts/ct6WGaRMfrcnHhyv.js b/scripts/ct6WGaRMfrcnHhyv.js new file mode 100644 index 0000000..e272979 --- /dev/null +++ b/scripts/ct6WGaRMfrcnHhyv.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn") +let data = item.toObject(); +data.system.specification.value = 2; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/cuqCtQsfLBBAGjnu.js b/scripts/cuqCtQsfLBBAGjnu.js new file mode 100644 index 0000000..9fe454b --- /dev/null +++ b/scripts/cuqCtQsfLBBAGjnu.js @@ -0,0 +1 @@ +args.fields.slBonus -= (Number(this.item.specification.value) || 0) \ No newline at end of file diff --git a/scripts/cysQDjlDzT8HdNeo.js b/scripts/cysQDjlDzT8HdNeo.js new file mode 100644 index 0000000..05ab52f --- /dev/null +++ b/scripts/cysQDjlDzT8HdNeo.js @@ -0,0 +1 @@ + args.prefillModifiers.slBonus += 1 \ No newline at end of file diff --git a/scripts/d29mu8vRt9AQUm0L.js b/scripts/d29mu8vRt9AQUm0L.js new file mode 100644 index 0000000..bed9802 --- /dev/null +++ b/scripts/d29mu8vRt9AQUm0L.js @@ -0,0 +1,7 @@ +this.actor.characteristics.i.value = Math.min(this.actor.characteristics.i.value, 10); +this.actor.characteristics.i.bonus = 1; + +for(let skill of this.actor.itemTypes.skill.filter(i => i.system.characteristic.value == "i")) +{ + skill.system.total.value= Math.min(skill.system.total.value, 10) +} \ No newline at end of file diff --git a/scripts/d6mVm08o8SeklAcW.js b/scripts/d6mVm08o8SeklAcW.js new file mode 100644 index 0000000..9938b42 --- /dev/null +++ b/scripts/d6mVm08o8SeklAcW.js @@ -0,0 +1 @@ +this.actor.system.status.ward.value = 9; \ No newline at end of file diff --git a/scripts/d9iU08yvqcffF026.js b/scripts/d9iU08yvqcffF026.js new file mode 100644 index 0000000..6de36c3 --- /dev/null +++ b/scripts/d9iU08yvqcffF026.js @@ -0,0 +1 @@ +return args.weapon.system.usesHands.includes(this.effect.getFlag("wfrp4e", "location")) \ No newline at end of file diff --git a/scripts/dAMtbn3uQwF8KpKU.js b/scripts/dAMtbn3uQwF8KpKU.js new file mode 100644 index 0000000..75eba38 --- /dev/null +++ b/scripts/dAMtbn3uQwF8KpKU.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Charm") && args.skill?.name != game.i18n.localize("NAME.Gossip"); \ No newline at end of file diff --git a/scripts/dIxYt421K010eogY.js b/scripts/dIxYt421K010eogY.js new file mode 100644 index 0000000..b628745 --- /dev/null +++ b/scripts/dIxYt421K010eogY.js @@ -0,0 +1,8 @@ + + let modifier = 0 + if (this.effect.name.includes("Moderate")) + modifier = -20 + else + modifier = -10 + args.fields.modifier += modifier + \ No newline at end of file diff --git a/scripts/dM449AU0FQRnOc3l.js b/scripts/dM449AU0FQRnOc3l.js new file mode 100644 index 0000000..992c1e4 --- /dev/null +++ b/scripts/dM449AU0FQRnOc3l.js @@ -0,0 +1,4 @@ +if (args.opposedTest.result.hitloc.value == "head") +{ + args.abort = "Missed - Headless" +} \ No newline at end of file diff --git a/scripts/dM8FbRH2V8CpOkXw.js b/scripts/dM8FbRH2V8CpOkXw.js new file mode 100644 index 0000000..c174680 --- /dev/null +++ b/scripts/dM8FbRH2V8CpOkXw.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.QluSTTTq3viHJJUh") +let data = item.toObject(); +data.system.location.value = "Ribs"; +await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/dSmRhZ6o1bUcOSF9.js b/scripts/dSmRhZ6o1bUcOSF9.js new file mode 100644 index 0000000..bc3b6fd --- /dev/null +++ b/scripts/dSmRhZ6o1bUcOSF9.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Leadership"); \ No newline at end of file diff --git a/scripts/dXGosSxdoYbET2O8.js b/scripts/dXGosSxdoYbET2O8.js new file mode 100644 index 0000000..2554389 --- /dev/null +++ b/scripts/dXGosSxdoYbET2O8.js @@ -0,0 +1,11 @@ +await this.actor.addCondition("fatigued"); + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool")) + +await test.roll(); + +if (!test.succeeded) +{ + await this.actor.addCondition("fatigued"); + await this.actor.addCondition("broken"); +} \ No newline at end of file diff --git a/scripts/dZ4c5pKDqQV02aIK.js b/scripts/dZ4c5pKDqQV02aIK.js new file mode 100644 index 0000000..3a5ebde --- /dev/null +++ b/scripts/dZ4c5pKDqQV02aIK.js @@ -0,0 +1,4 @@ +if (args.effect.conditionId == "ablaze") +{ + args.data.formula += ` + parseInt(this.effect.sourceTest.result.SL)` +} \ No newline at end of file diff --git a/scripts/dbOSvpgcPjsc2uvq.js b/scripts/dbOSvpgcPjsc2uvq.js new file mode 100644 index 0000000..38e71e9 --- /dev/null +++ b/scripts/dbOSvpgcPjsc2uvq.js @@ -0,0 +1,7 @@ +let menacing = (await fromUuid("Compendium.wfrp4e-core.items.Item.0hn6UaKq8CoZP2zD")).toObject(); +let sense = (await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS")).toObject(); + +sense.name += " (Sight)"; +sense.system.tests.value = sense.system.tests.value.replace("Sense", "Sight") + +this.actor.createEmbeddedDocuments("Item", [menacing, sense], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/dbYjr4oG67Z880To.js b/scripts/dbYjr4oG67Z880To.js new file mode 100644 index 0000000..393ebd8 --- /dev/null +++ b/scripts/dbYjr4oG67Z880To.js @@ -0,0 +1,4 @@ +if (args.test.isFumble) +{ + args.test.result.other.push("@Table[warpfire-thrower-fumble]") +} \ No newline at end of file diff --git a/scripts/dcwY8dCd3PNCEzk6.js b/scripts/dcwY8dCd3PNCEzk6.js new file mode 100644 index 0000000..bba7d38 --- /dev/null +++ b/scripts/dcwY8dCd3PNCEzk6.js @@ -0,0 +1,5 @@ +let current = this.actor.status.fate.value + +this.actor.update({"system.status.fate.value" : current + 1}) + +this.script.scriptMessage(`${this.actor.prototypeToken.name} fate points increased from ${current} to ${current + 1}`) \ No newline at end of file diff --git a/scripts/dfEgat3jz4EtWszH.js b/scripts/dfEgat3jz4EtWszH.js new file mode 100644 index 0000000..91ff1ee --- /dev/null +++ b/scripts/dfEgat3jz4EtWszH.js @@ -0,0 +1 @@ +return args.skill?.name == "Stealth (Urban)" \ No newline at end of file diff --git a/scripts/dfnCK8jCPXNLM7Gh.js b/scripts/dfnCK8jCPXNLM7Gh.js new file mode 100644 index 0000000..a80cc5d --- /dev/null +++ b/scripts/dfnCK8jCPXNLM7Gh.js @@ -0,0 +1,12 @@ +let aoeDamage = this.effect.sourceTest.result.damage - 5 // Easily handle magic missile damage by just subtracting 5 from the item's (which has +10 base) + +this.script.scriptMessage(await this.actor.applyBasicDamage(aoeDamage, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true})) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Dodge"), {skipTargets: true, appendTitle : ` - Ablaze`}) + +await test.roll(); + +if (!test.succeeded) +{ + this.actor.addCondition("ablaze"); +} \ No newline at end of file diff --git a/scripts/dk02qSJfJaIo3Geh.js b/scripts/dk02qSJfJaIo3Geh.js new file mode 100644 index 0000000..dbcbd4a --- /dev/null +++ b/scripts/dk02qSJfJaIo3Geh.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.EO05HX7jql0g605A"); +let data = item.toObject(); +data.system.specification.value = this.actor.characteristics.ag.value +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/dkY7WRYjFVh8GB0m.js b/scripts/dkY7WRYjFVh8GB0m.js new file mode 100644 index 0000000..76258d5 --- /dev/null +++ b/scripts/dkY7WRYjFVh8GB0m.js @@ -0,0 +1 @@ +return ['ws', 'bs', 'ag'].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/dkiNmwFXztIVbuxg.js b/scripts/dkiNmwFXztIVbuxg.js new file mode 100644 index 0000000..cfeb34b --- /dev/null +++ b/scripts/dkiNmwFXztIVbuxg.js @@ -0,0 +1,8 @@ +let currentCareer = this.actor.system.currentCareer; + +if (!currentCareer || currentCareer.system.talents.includes(game.i18n.localize("NAME.Frenzy"))) +{ + return +} + +currentCareer.system.talents.push(game.i18n.localize("NAME.Frenzy")); \ No newline at end of file diff --git a/scripts/dqvHDMlcitLx1pUx.js b/scripts/dqvHDMlcitLx1pUx.js new file mode 100644 index 0000000..6f02b76 --- /dev/null +++ b/scripts/dqvHDMlcitLx1pUx.js @@ -0,0 +1 @@ +this.actor.system.details.move.value /= 2; \ No newline at end of file diff --git a/scripts/dt85W8pzZ09w1QLi.js b/scripts/dt85W8pzZ09w1QLi.js new file mode 100644 index 0000000..bd82bf8 --- /dev/null +++ b/scripts/dt85W8pzZ09w1QLi.js @@ -0,0 +1,4 @@ +if (this.actor.sameSideAs(this.effect.sourceActor)) + args.fields.slBonus += 2; +else + args.fields.slBonus -= 2; \ No newline at end of file diff --git a/scripts/dtFvpY96RPzNnphq.js b/scripts/dtFvpY96RPzNnphq.js new file mode 100644 index 0000000..6e1fb69 --- /dev/null +++ b/scripts/dtFvpY96RPzNnphq.js @@ -0,0 +1 @@ +return !(args.skill?.name.includes("Melee (Basic)") || (args.type == "weapon" && args.item?.system.weaponGroup.value == "basic")) \ No newline at end of file diff --git a/scripts/dwSgcFxKN3S0hLJL.js b/scripts/dwSgcFxKN3S0hLJL.js new file mode 100644 index 0000000..334b361 --- /dev/null +++ b/scripts/dwSgcFxKN3S0hLJL.js @@ -0,0 +1 @@ +return args.skill?.name != "Melee (Brawling)" && args.item?.weaponGroup?.value != "brawling" \ No newline at end of file diff --git a/scripts/e0TuMgYuI7ZtGoQr.js b/scripts/e0TuMgYuI7ZtGoQr.js new file mode 100644 index 0000000..ba81a9d --- /dev/null +++ b/scripts/e0TuMgYuI7ZtGoQr.js @@ -0,0 +1,4 @@ +args.applyAP = false; + +await args.actor.addCondition("ablaze", 2); +await args.actor.addCondition("prone"); \ No newline at end of file diff --git a/scripts/e34s1XxHckAWfwHt.js b/scripts/e34s1XxHckAWfwHt.js new file mode 100644 index 0000000..bfcbd7c --- /dev/null +++ b/scripts/e34s1XxHckAWfwHt.js @@ -0,0 +1,4 @@ +if (args.test.options.beatBlade && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target)) +{ + args.test.result.other.push(`${this.effect.name}: Opponent loses ${Number(args.test.result.SL) + 1} Advantage`) +} \ No newline at end of file diff --git a/scripts/e7IxnxePdXSy6L4E.js b/scripts/e7IxnxePdXSy6L4E.js new file mode 100644 index 0000000..59daaf1 --- /dev/null +++ b/scripts/e7IxnxePdXSy6L4E.js @@ -0,0 +1,4 @@ +if (args.opposedTest.result.hitloc.value == "head") +{ + this.script.scriptMessage(`${this.actor.prototypeToken.name} receives a @Table[crithead]{Critical Wound} if one was not caused already.`) +} \ No newline at end of file diff --git a/scripts/eAtqyBd1HsDWuBuI.js b/scripts/eAtqyBd1HsDWuBuI.js new file mode 100644 index 0000000..dbd260b --- /dev/null +++ b/scripts/eAtqyBd1HsDWuBuI.js @@ -0,0 +1 @@ +this.actor.system.characteristics.fel.modifier -= parseInt(this.item.system.location.value || 1) \ No newline at end of file diff --git a/scripts/eHRv7f2BTtle6Y1K.js b/scripts/eHRv7f2BTtle6Y1K.js new file mode 100644 index 0000000..280d921 --- /dev/null +++ b/scripts/eHRv7f2BTtle6Y1K.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.sJ3yX1kvzu2hgNq5") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/eHgk3HZ6eyLFTZ9o.js b/scripts/eHgk3HZ6eyLFTZ9o.js new file mode 100644 index 0000000..1e1c9d3 --- /dev/null +++ b/scripts/eHgk3HZ6eyLFTZ9o.js @@ -0,0 +1 @@ +return !args.item?.system.magicMissile?.value && !args.item?.system.attackType \ No newline at end of file diff --git a/scripts/ePPgxQOqL1Uhz2k9.js b/scripts/ePPgxQOqL1Uhz2k9.js new file mode 100644 index 0000000..e0e5035 --- /dev/null +++ b/scripts/ePPgxQOqL1Uhz2k9.js @@ -0,0 +1,90 @@ +let choice1 = [ + { + type : "skill", + name : "Ranged (Bow)", + diff : { + system : { + advances : { + value : 10 + } + } + } + }, + { + type : "weapon", + name : "Bow", + }, + { + type : "ammunition", + name : "Arrow", + } +] +let choice2 = [ +] + +let choice = await Dialog.wait({ + title : "Option", + content : + `

+ Add Option? +

+
    +
  1. Ranged (Bow) +10 and a Bow with 12 Arrows
  2. +
+ `, + buttons : { + 1 : { + label : "Yes", + callback : () => { + return choice1 + } + }, + 2 : { + label : "No", + callback : () => { + choice2 + } + } + } + }) + +let updateObj = this.actor.toObject(); +let items = [] +for (let c of choice) +{ + let existing + if (c.type == "skill") + { + existing = updateObj.items.find(i => i.name == c.name && i.type == c.type) + if (existing && c.diff?.system?.advances?.value) + { + existing.system.advances.value += c.diff.system.advances.value + } + } + + if (!existing) + { + let item = await game.wfrp4e.utility.find(c.name, c.type) + if (item) + { + item = item.toObject() + equip(item); + items.push(mergeObject(item, (c.diff || {}))) + } + else + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + +} +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/eWWLmA2xINR321aK.js b/scripts/eWWLmA2xINR321aK.js new file mode 100644 index 0000000..5d8bea6 --- /dev/null +++ b/scripts/eWWLmA2xINR321aK.js @@ -0,0 +1 @@ +args.item.system.qualities.value.push({name : "magical"}) \ No newline at end of file diff --git a/scripts/eb69QPmNQEJXtk4l.js b/scripts/eb69QPmNQEJXtk4l.js new file mode 100644 index 0000000..5e52e15 --- /dev/null +++ b/scripts/eb69QPmNQEJXtk4l.js @@ -0,0 +1 @@ + return args.characteristic != "bs" \ No newline at end of file diff --git a/scripts/ebDQH0MdGAG02CHl.js b/scripts/ebDQH0MdGAG02CHl.js new file mode 100644 index 0000000..94a3b0e --- /dev/null +++ b/scripts/ebDQH0MdGAG02CHl.js @@ -0,0 +1,14 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.SYjWiKDzMS6CtROJ") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +if (this.item.system.location.key == "rArm") +{ + data.system.location.value = "Right Hand" + data.system.location.key = "rHand" +} +else if (this.item.system.location.key == "lArm") +{ + data.system.location.value = "Left Hand" + data.system.location.key = "lHand" +} +this.actor.createEmbeddedDocuments("Item", [data]) \ No newline at end of file diff --git a/scripts/ed7Sud9HM3uB2j6b.js b/scripts/ed7Sud9HM3uB2j6b.js new file mode 100644 index 0000000..c2a8e1a --- /dev/null +++ b/scripts/ed7Sud9HM3uB2j6b.js @@ -0,0 +1,7 @@ +ChatMessage.create({content : "Yield or die!", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true}) +let item = await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn") +let data = item.toObject(); +data.system.specification.value = 2; +this.script.scriptNotification("Adding " + data.name); +await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}); +game.wfrp4e.utility.postFear(2, this.actor.prototypeToken.name) \ No newline at end of file diff --git a/scripts/egDtqMxe3iekc6hv.js b/scripts/egDtqMxe3iekc6hv.js new file mode 100644 index 0000000..d5db90a --- /dev/null +++ b/scripts/egDtqMxe3iekc6hv.js @@ -0,0 +1,6 @@ +let trait = args.opposedTest.attackerTest.item +let woundLossEffect = this.item.effects.get("7Amhi75wLv0PvGjd") +if (trait && trait.name.includes("Bite") && woundLossEffect) +{ + args.actor.applyEffect({effectUuids : woundLossEffect.uuid}) +} \ No newline at end of file diff --git a/scripts/eh1J3s0s4A2AxoFp.js b/scripts/eh1J3s0s4A2AxoFp.js new file mode 100644 index 0000000..1ff8cb1 --- /dev/null +++ b/scripts/eh1J3s0s4A2AxoFp.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.8pVzgPkgWpTJvfhG"); +let data = item.toObject(); +data.name += " (Enemy)"; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/ekjJQHyMbZT2vqdc.js b/scripts/ekjJQHyMbZT2vqdc.js new file mode 100644 index 0000000..064db13 --- /dev/null +++ b/scripts/ekjJQHyMbZT2vqdc.js @@ -0,0 +1,9 @@ +let uses = this.item.getFlag("wfrp4e", "uses") || 0; +uses++; +this.script.scriptNotification(`Used ${uses} times`) +this.item.setFlag("wfrp4e", "uses", uses); +if (uses >= 3) +{ + this.effect.update({"flags.wfrp4e.applicationData.type" : "other"}) + this.script.scriptNotification(`Used up`); +} diff --git a/scripts/eqxE7nBO13yJS7hc.js b/scripts/eqxE7nBO13yJS7hc.js new file mode 100644 index 0000000..f1c6ed6 --- /dev/null +++ b/scripts/eqxE7nBO13yJS7hc.js @@ -0,0 +1,6 @@ +let roll = (await new Roll("1d10").roll()) +roll.toMessage({flavor: "Wounds Healed", speaker : {alias : this.actor.name}}) + +this.actor.modifyWounds(roll.total) + +this.actor.hasCondition("bleeding")?.delete(); \ No newline at end of file diff --git a/scripts/esuLwq4g5T8k1kLT.js b/scripts/esuLwq4g5T8k1kLT.js new file mode 100644 index 0000000..c6ae85a --- /dev/null +++ b/scripts/esuLwq4g5T8k1kLT.js @@ -0,0 +1 @@ +await args.actor.addCondition("ablaze"); await args.actor.addCondition("prone"); \ No newline at end of file diff --git a/scripts/ezGqDoC9hNRBnFTB.js b/scripts/ezGqDoC9hNRBnFTB.js new file mode 100644 index 0000000..9538a95 --- /dev/null +++ b/scripts/ezGqDoC9hNRBnFTB.js @@ -0,0 +1,17 @@ + let choices = await Promise.all([game.wfrp4e.utility.findItemId("1zaqojk0Oq1m8vYv"), game.wfrp4e.utility.findItemId("zIuarD5mB0EF0ji0")]) + let items = await game.wfrp4e.apps.ItemDialog.create(choices, 1, "Choose a Weapon") + items = items.map(i => i.toObject()) + + items.forEach(i => equip(i)) + + this.actor.createEmbeddedDocuments("Item", items); + + function equip(item) + { + if (item.type == "armour") + item.data.worn.value = true + else if (item.type == "weapon") + item.data.equipped = true + else if (item.type == "trapping" && item.data.trappingType.value == "clothingAccessories") + item.data.worn = true + } \ No newline at end of file diff --git a/scripts/f062aa2BNClx08D6.js b/scripts/f062aa2BNClx08D6.js new file mode 100644 index 0000000..c3cc2c8 --- /dev/null +++ b/scripts/f062aa2BNClx08D6.js @@ -0,0 +1,16 @@ +let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) + await test.roll(); + if (test.failed) + { + let toughnessLost = parseInt(this.effect.sourceTest.result.SL) + + let currentModifier = this.actor.characteristics.t.modifier + + await this.actor.update({ "system.characteristics.t.modifier": currentModifier - toughnessLost }) + this.script.scriptMessage(`${this.actor.prototypeToken.name} lost ${toughnessLost} Toughness`) + if (this.actor.system.characteristics.t.value <= 0) + { + this.actor.addCondition("dead"); + } + + } \ No newline at end of file diff --git a/scripts/f3rXusHh6VIpVPUl.js b/scripts/f3rXusHh6VIpVPUl.js new file mode 100644 index 0000000..db182da --- /dev/null +++ b/scripts/f3rXusHh6VIpVPUl.js @@ -0,0 +1 @@ +return !args.skill?.name?.includes(game.i18n.localize("NAME.Language")) && args.type != "cast" \ No newline at end of file diff --git a/scripts/f4vvAGQ8OGoEbrgy.js b/scripts/f4vvAGQ8OGoEbrgy.js new file mode 100644 index 0000000..c81bb32 --- /dev/null +++ b/scripts/f4vvAGQ8OGoEbrgy.js @@ -0,0 +1,16 @@ +let SL = args.opposedTest.attackerTest.result.SL - args.opposedTest.attackerTest.item.cn.value +let difficulty = "challenging" +if (SL >= 1) + difficulty = "difficult" +if (SL >= 2) + difficulty = "hard" +if (SL >= 3) + difficulty = "vhard" + + +let test = await args.actor.setupCharacteristic("wp", {fields: {difficulty}, skipTargets: true, appendTitle : " - " + this.effect.name, context : {failure: "Gain a Stunned Condition"}}) +await test.roll(); +if (test.failed) +{ + args.actor.addCondition("stunned"); +} \ No newline at end of file diff --git a/scripts/f5Mp3kXwCFdPkW6N.js b/scripts/f5Mp3kXwCFdPkW6N.js new file mode 100644 index 0000000..bd4edee --- /dev/null +++ b/scripts/f5Mp3kXwCFdPkW6N.js @@ -0,0 +1 @@ +return args.skill?.name != "Entertain (Sing)" && args.skill?.name != "Entertain (Singing)" && !args.skill?.name.includes("Language"); \ No newline at end of file diff --git a/scripts/f6WnrJvoNkfoNN9Y.js b/scripts/f6WnrJvoNkfoNN9Y.js new file mode 100644 index 0000000..aa2860b --- /dev/null +++ b/scripts/f6WnrJvoNkfoNN9Y.js @@ -0,0 +1 @@ +return args.item?.attackType != 'melee' \ No newline at end of file diff --git a/scripts/f7WZvYle9iqefRsh.js b/scripts/f7WZvYle9iqefRsh.js new file mode 100644 index 0000000..f3f618f --- /dev/null +++ b/scripts/f7WZvYle9iqefRsh.js @@ -0,0 +1 @@ +return args.weapon?.system?.attackType != "melee" \ No newline at end of file diff --git a/scripts/f8cnfvGKJH3bYVGN.js b/scripts/f8cnfvGKJH3bYVGN.js new file mode 100644 index 0000000..399cbf0 --- /dev/null +++ b/scripts/f8cnfvGKJH3bYVGN.js @@ -0,0 +1 @@ +return ["s", "t"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/fEFfHFeJxkR0aIJK.js b/scripts/fEFfHFeJxkR0aIJK.js new file mode 100644 index 0000000..7d20696 --- /dev/null +++ b/scripts/fEFfHFeJxkR0aIJK.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.differenceSL >= 0 && args.opposedTest.result.differenceSL <= 3 && args.opposedTest.result.winner == "attacker") +{ + this.script.scriptMessage(`Everyone within 20 feet loses 1 Wound and makes a Difficult (-10) Endurance or gains @Condition[Deafened]`, {blind : true, whisper : ChatMessage.getWhisperRecipients("GM")}) +} + \ No newline at end of file diff --git a/scripts/fEyKQqCjDwml3DXO.js b/scripts/fEyKQqCjDwml3DXO.js new file mode 100644 index 0000000..e743110 --- /dev/null +++ b/scripts/fEyKQqCjDwml3DXO.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.M8XyRs9DN12XsFTQ") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/fFGuTi0HLjwneMcJ.js b/scripts/fFGuTi0HLjwneMcJ.js new file mode 100644 index 0000000..33216f3 --- /dev/null +++ b/scripts/fFGuTi0HLjwneMcJ.js @@ -0,0 +1 @@ +return args.item?.system.isRanged \ No newline at end of file diff --git a/scripts/fIUxKZMWJ8HMPmH9.js b/scripts/fIUxKZMWJ8HMPmH9.js new file mode 100644 index 0000000..743c625 --- /dev/null +++ b/scripts/fIUxKZMWJ8HMPmH9.js @@ -0,0 +1 @@ +return ["wp", "ag", "i", "int"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/fKzlu6fFE2th9uIJ.js b/scripts/fKzlu6fFE2th9uIJ.js new file mode 100644 index 0000000..20bdbe3 --- /dev/null +++ b/scripts/fKzlu6fFE2th9uIJ.js @@ -0,0 +1 @@ +return args.item?.name == game.i18n.localize("NAME.ConsumeAlcohol") \ No newline at end of file diff --git a/scripts/fP2edYbj6QjPPAjL.js b/scripts/fP2edYbj6QjPPAjL.js new file mode 100644 index 0000000..e1ac1b8 --- /dev/null +++ b/scripts/fP2edYbj6QjPPAjL.js @@ -0,0 +1 @@ +return ["Charm Animal", "Endurance", "Outdoor Survival"].includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/fPKYkBllp7Et62lX.js b/scripts/fPKYkBllp7Et62lX.js new file mode 100644 index 0000000..f1cdfaa --- /dev/null +++ b/scripts/fPKYkBllp7Et62lX.js @@ -0,0 +1,4 @@ +if (args.test.spell.name == "Warp Lightning") +{ + args.test.preData.canReverse = true; +} \ No newline at end of file diff --git a/scripts/fY0TsQwnU14fdPl2.js b/scripts/fY0TsQwnU14fdPl2.js new file mode 100644 index 0000000..cd27330 --- /dev/null +++ b/scripts/fY0TsQwnU14fdPl2.js @@ -0,0 +1 @@ +args.fields.modifier += 30; \ No newline at end of file diff --git a/scripts/fYLSe6CrYciap5y8.js b/scripts/fYLSe6CrYciap5y8.js new file mode 100644 index 0000000..14685bc --- /dev/null +++ b/scripts/fYLSe6CrYciap5y8.js @@ -0,0 +1,84 @@ + let characteristics = { + "ws" : 0, + "bs" : 0, + "s" : 10, + "t" : 10, + "i" : 0, + "ag" : 10, + "dex" : 0, + "int" : 0, + "wp" : 0, + "fel" : 0 + } + let skills = ["Consume Alcohol", "Row", "Sail", "Swim"] + let skillAdvancements = [10, 10, 10, 10] + let talents = [] + let trappings = [] + let items = [] + + let updateObj = this.actor.toObject(); + + for (let ch in characteristics) + { + updateObj.system.characteristics[ch].modifier += characteristics[ch]; + } + + for (let index = 0; index < skills.length; index++) + { + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } + } + + for (let talent of talents) + { + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + } + + for (let trapping of trappings) + { + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } + } + + + await this.actor.update(updateObj) + this.actor.createEmbeddedDocuments("Item", items); + + function equip(item) + { + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true + } \ No newline at end of file diff --git a/scripts/faRFSsrQylQRZFLk.js b/scripts/faRFSsrQylQRZFLk.js new file mode 100644 index 0000000..32b4920 --- /dev/null +++ b/scripts/faRFSsrQylQRZFLk.js @@ -0,0 +1 @@ +return args.bleedingHand || !args.weapon || !this.actor.hasCondition("bleeding") \ No newline at end of file diff --git a/scripts/fcY3pa72dELnOFXV.js b/scripts/fcY3pa72dELnOFXV.js new file mode 100644 index 0000000..1cd4cc1 --- /dev/null +++ b/scripts/fcY3pa72dELnOFXV.js @@ -0,0 +1 @@ +return !args.options.reload diff --git a/scripts/feMPZhhFeXRtKdKY.js b/scripts/feMPZhhFeXRtKdKY.js new file mode 100644 index 0000000..73f5d95 --- /dev/null +++ b/scripts/feMPZhhFeXRtKdKY.js @@ -0,0 +1,10 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectUuids : this.item.effects.contents[0]?.uuid}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/ffvcCEazZBinHlUX.js b/scripts/ffvcCEazZBinHlUX.js new file mode 100644 index 0000000..d60add8 --- /dev/null +++ b/scripts/ffvcCEazZBinHlUX.js @@ -0,0 +1 @@ +args.update({texture : {tint : "#FFD700"}}); diff --git a/scripts/fiF9sM5UpcHMYa33.js b/scripts/fiF9sM5UpcHMYa33.js new file mode 100644 index 0000000..554998a --- /dev/null +++ b/scripts/fiF9sM5UpcHMYa33.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.vMYEkrWj0ip6ZOdv"); +let data = item.toObject(); +data.name += " (Poison, Disease, Chaos)" +this.actor.createEmbeddedDocuments("Item", Array(this.effect.sourceTest.result.overcast.usage.other.current).fill(data), {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/fkFmNcesqqNTMhVn.js b/scripts/fkFmNcesqqNTMhVn.js new file mode 100644 index 0000000..65839e5 --- /dev/null +++ b/scripts/fkFmNcesqqNTMhVn.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.2iult41Jehz0F1O8") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key; +await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/fl762icfKrt9ear2.js b/scripts/fl762icfKrt9ear2.js new file mode 100644 index 0000000..8b3f7c5 --- /dev/null +++ b/scripts/fl762icfKrt9ear2.js @@ -0,0 +1 @@ +this.actor.removeCondition("broken", parseInt(this.effect.sourceTest.result.SL)+1) \ No newline at end of file diff --git a/scripts/ft0LaRWZT5WtnptP.js b/scripts/ft0LaRWZT5WtnptP.js new file mode 100644 index 0000000..36ac1c9 --- /dev/null +++ b/scripts/ft0LaRWZT5WtnptP.js @@ -0,0 +1,13 @@ +let advantage = this.actor.system.status.advantage.value; +if (advantage > 0) +{ + await this.actor.setAdvantage(0); + this.script.scriptNotification("Advantage Subtracted") +} +else +{ + return this.script.scriptNotification("Not enough Advantage!", "error") +} + +let test = await this.actor.setupTrait(this.item, {fields : {slBonus : advantage}}) +await test.roll(); \ No newline at end of file diff --git a/scripts/fve7tiyF5X9B7mHJ.js b/scripts/fve7tiyF5X9B7mHJ.js new file mode 100644 index 0000000..6fb52a2 --- /dev/null +++ b/scripts/fve7tiyF5X9B7mHJ.js @@ -0,0 +1 @@ +args.fields.slBonus -= 2; \ No newline at end of file diff --git a/scripts/fzTB7t3x4bLmAXji.js b/scripts/fzTB7t3x4bLmAXji.js new file mode 100644 index 0000000..e5d584e --- /dev/null +++ b/scripts/fzTB7t3x4bLmAXji.js @@ -0,0 +1,5 @@ +let roll = await new Roll("1d10 + 1").roll() +await roll.toMessage(this.script.getChatData()); +this.script.scriptNotification(`Healed ${roll.total} Wounds`) +this.actor.corruptionDialog("moderate") +await this.actor.modifyWounds(roll.total) \ No newline at end of file diff --git a/scripts/g07HI7vyqiFXPB0o.js b/scripts/g07HI7vyqiFXPB0o.js new file mode 100644 index 0000000..480115f --- /dev/null +++ b/scripts/g07HI7vyqiFXPB0o.js @@ -0,0 +1,29 @@ +// A Drinker must take a Difficult (-10) Endurance Test. +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "difficult"}}) +await test.roll() +// If they fail, they acquire 2 Poisoned Conditions. +if (test.failed) +{ + this.actor.addCondition("poisoned", 2) + this.script.scriptMessage(`

${this.actor.prototypeToken.name} has gained 2 @Condition[Poisoned] Conditions.

+

Any being with the Bestial Creature Trait that bites them and takes damage will not bite them again during a hostile encounter, though the creature may still attack them in other ways.

`, + { + whisper: ChatMessage.getWhisperRecipients("GM"), + blind: true + }) +} + // If they succeed, for a number of rounds equal to 3+ their SL, they have the Corrosive Blood Creature Trait. +else if (test.succeeded) +{ + // Don't attempt to add Corrosive Blood if actor already has it + const hasCorrosiveBlood = this.actor.has("Corrosive Blood") + if (hasCorrosiveBlood !== undefined) return + + let item = await fromUuid("Compendium.wfrp4e-core.items.M5QSWOYt2Rbv2yxW") + let data = item.toObject() + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + + const duration = 3 + parseInt(test.result.SL) + this.script.scriptMessage(`

${this.actor.prototypeToken.name} gains the Corrosive Blood Trait for ${duration} rounds.

`, + { whisper: ChatMessage.getWhisperRecipients("GM"), blind: true }) +} \ No newline at end of file diff --git a/scripts/g0SzfsLyW7aD2F19.js b/scripts/g0SzfsLyW7aD2F19.js new file mode 100644 index 0000000..e319818 --- /dev/null +++ b/scripts/g0SzfsLyW7aD2F19.js @@ -0,0 +1,13 @@ +if (this.item.name.includes("(") && this.item.system.tests.value.includes("(Social Group)")) +{ + let tests = this.item.system.tests.value + let name = this.item.name + + // If name already specifies, make sure tests value reflects that + if (name.includes("(")) + { + let group = name.split("(")[1].split(")")[0] + tests = `${tests.split("(")[0].trim()} (${group})` + } + this.item.updateSource({name, "system.tests.value" : tests}) +} \ No newline at end of file diff --git a/scripts/g1L8OYO9nCOhdKGL.js b/scripts/g1L8OYO9nCOhdKGL.js new file mode 100644 index 0000000..94085c1 --- /dev/null +++ b/scripts/g1L8OYO9nCOhdKGL.js @@ -0,0 +1,16 @@ +// Everything within Fellowship Bonus yards +// of the target point is splashed with mystic poison, +// suffering 1d10 + SL damage which ignores Armour Points + +let damage = (await new Roll(`1d10 + ${parseInt(this.effect.sourceTest.result.SL)}`).roll()) + +await damage.toMessage(this.script.getChatData()) + +this.script.scriptMessage(await args.actor.applyBasicDamage( + damage.total, + {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg: true} +)) + +// ... and gains the Poisoned Condition + +this.actor.addCondition("poisoned") \ No newline at end of file diff --git a/scripts/g4t56A09yrpZaJQ2.js b/scripts/g4t56A09yrpZaJQ2.js new file mode 100644 index 0000000..9d8a90b --- /dev/null +++ b/scripts/g4t56A09yrpZaJQ2.js @@ -0,0 +1,23 @@ + let amberTalons = foundry.utils.deepClone(game.wfrp4e.config.systemItems.unarmed); + amberTalons.name = "Amber Talons"; + amberTalons.img = this.effect.img; + amberTalons.system.damage.value = "SB + WPB" + amberTalons.system.equipped = true; + amberTalons.system.qualities.value.push({name : "magical"}) + amberTalons.effects.push({ + label : "Amber Talons", + transfer: false, + icon : "modules/wfrp4e-core/icons/spells/amber-talons.png" , + flags : { + wfrp4e : { + applicationData : { + documentType : "Item" + }, + scriptData : [{ + trigger : "applyDamage", + script : "if (args.totalWoundLoss >= 1)\n{ \n args.actor.addCondition(\"bleeding\")\n}" + }] + } + } + }) + this.actor.createEmbeddedDocuments("Item", [amberTalons], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/gFUXBbTskQBKjxqm.js b/scripts/gFUXBbTskQBKjxqm.js new file mode 100644 index 0000000..e8f675a --- /dev/null +++ b/scripts/gFUXBbTskQBKjxqm.js @@ -0,0 +1,8 @@ +if (this.actor.hasCondition("entangled")) +{ + this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields : {difficulty : "average"}}).then(async test => { + await test.roll(); + if (test.failed) + this.actor.addCondition("fatigued") + }) +} \ No newline at end of file diff --git a/scripts/gKIPujyuFSn0No9v.js b/scripts/gKIPujyuFSn0No9v.js new file mode 100644 index 0000000..9359298 --- /dev/null +++ b/scripts/gKIPujyuFSn0No9v.js @@ -0,0 +1,5 @@ +for(let e of this.item.effects.contents) +{ + e.update({disabled: false}) +} +this.script.scriptNotification("Reset Powers") \ No newline at end of file diff --git a/scripts/gKPL3t4vlZAsvtGr.js b/scripts/gKPL3t4vlZAsvtGr.js new file mode 100644 index 0000000..c2422ee --- /dev/null +++ b/scripts/gKPL3t4vlZAsvtGr.js @@ -0,0 +1 @@ +return args.skill?.name == "Stealth (Underground)" \ No newline at end of file diff --git a/scripts/gL0ftUnK5TNXBRRt.js b/scripts/gL0ftUnK5TNXBRRt.js new file mode 100644 index 0000000..ccd81ab --- /dev/null +++ b/scripts/gL0ftUnK5TNXBRRt.js @@ -0,0 +1 @@ +return this.effect.sourceActor.uuid == args.actor.uuid \ No newline at end of file diff --git a/scripts/gPQrszvIgGlW9yM4.js b/scripts/gPQrszvIgGlW9yM4.js new file mode 100644 index 0000000..61a3f69 --- /dev/null +++ b/scripts/gPQrszvIgGlW9yM4.js @@ -0,0 +1,2 @@ +if (args.test.characteristicKey == "wp") + args.test.preData.canReverse = true \ No newline at end of file diff --git a/scripts/gVpFUka7qfGiEC1v.js b/scripts/gVpFUka7qfGiEC1v.js new file mode 100644 index 0000000..0306f05 --- /dev/null +++ b/scripts/gVpFUka7qfGiEC1v.js @@ -0,0 +1 @@ + this.actor.getActiveTokens().forEach(t => t.document.update({texture : {tint : "#FFD700"}})); diff --git a/scripts/ga6bQzPuoIiQQrKg.js b/scripts/ga6bQzPuoIiQQrKg.js new file mode 100644 index 0000000..2d3c447 --- /dev/null +++ b/scripts/ga6bQzPuoIiQQrKg.js @@ -0,0 +1,11 @@ +if (args.totalWoundLoss > 0) +{ + + let test = await args.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}}) + await test.roll() + if (test.failed) + { + args.totalWoundLoss += this.effect.sourceActor.system.characteristics.wp.bonus + args.modifiers.other.push({label : this.effect.name, value : this.effect.sourceActor.system.characteristics.wp.bonus}) + } +} \ No newline at end of file diff --git a/scripts/gbhxWXboV9CytWNU.js b/scripts/gbhxWXboV9CytWNU.js new file mode 100644 index 0000000..e186282 --- /dev/null +++ b/scripts/gbhxWXboV9CytWNU.js @@ -0,0 +1 @@ +await this.actor.addCondition("blinded", 2) \ No newline at end of file diff --git a/scripts/gh2KS1prBKcsSK6M.js b/scripts/gh2KS1prBKcsSK6M.js new file mode 100644 index 0000000..9db9338 --- /dev/null +++ b/scripts/gh2KS1prBKcsSK6M.js @@ -0,0 +1,2 @@ +if (args.opposedTest.attackerTest.result.critical) + args.actor.addCondition("ablaze") \ No newline at end of file diff --git a/scripts/gnVpxOeBZpNF4HIF.js b/scripts/gnVpxOeBZpNF4HIF.js new file mode 100644 index 0000000..ea6a793 --- /dev/null +++ b/scripts/gnVpxOeBZpNF4HIF.js @@ -0,0 +1,4 @@ +if (args.test.result.roll.toString().includes("9") || args.test.result.roll.toString().includes("8")) +{ + args.test.result.fumble = game.i18n.localize("Fumble") +} \ No newline at end of file diff --git a/scripts/gpPaCe6yER79l4u8.js b/scripts/gpPaCe6yER79l4u8.js new file mode 100644 index 0000000..124a438 --- /dev/null +++ b/scripts/gpPaCe6yER79l4u8.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/gpuBg3y9rocJL7yT.js b/scripts/gpuBg3y9rocJL7yT.js new file mode 100644 index 0000000..908e09d --- /dev/null +++ b/scripts/gpuBg3y9rocJL7yT.js @@ -0,0 +1 @@ +this.actor.status.addArmour(1, {locations: ["head"], source: this.effect}) \ No newline at end of file diff --git a/scripts/gqZLfIr6svrtdwdC.js b/scripts/gqZLfIr6svrtdwdC.js new file mode 100644 index 0000000..191bf9e --- /dev/null +++ b/scripts/gqZLfIr6svrtdwdC.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.SleightOfHand") && args.skill?.name != game.i18n.localize("NAME.MeleeBrawling") && args.weapon?.system?.weaponGroup?.value != "brawling" \ No newline at end of file diff --git a/scripts/gsCnd3mf1vXFU2ei.js b/scripts/gsCnd3mf1vXFU2ei.js new file mode 100644 index 0000000..e3c7fe1 --- /dev/null +++ b/scripts/gsCnd3mf1vXFU2ei.js @@ -0,0 +1 @@ +this.actor.system.status.ward.value = 4; \ No newline at end of file diff --git a/scripts/gu72JaTs9GrSiVTd.js b/scripts/gu72JaTs9GrSiVTd.js new file mode 100644 index 0000000..8d0ad0f --- /dev/null +++ b/scripts/gu72JaTs9GrSiVTd.js @@ -0,0 +1 @@ +return !(args.skill?.name == game.i18n.localize("NAME.Haggle") || args.skill?.name == game.i18n.localize("NAME.Gossip")) \ No newline at end of file diff --git a/scripts/h0DfPwUUOBjyAHMZ.js b/scripts/h0DfPwUUOBjyAHMZ.js new file mode 100644 index 0000000..124ecc4 --- /dev/null +++ b/scripts/h0DfPwUUOBjyAHMZ.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Perception"); \ No newline at end of file diff --git a/scripts/h1XKoMuVnS0bagRO.js b/scripts/h1XKoMuVnS0bagRO.js new file mode 100644 index 0000000..6b18992 --- /dev/null +++ b/scripts/h1XKoMuVnS0bagRO.js @@ -0,0 +1 @@ +return args.item?.name != game.i18n.localize("NAME.Endurance"); \ No newline at end of file diff --git a/scripts/h766UvswLCsxcMow.js b/scripts/h766UvswLCsxcMow.js new file mode 100644 index 0000000..cc4d0c0 --- /dev/null +++ b/scripts/h766UvswLCsxcMow.js @@ -0,0 +1,133 @@ +let characteristics = { + "ws" : 5, + "bs" : 0, + "s" : -15, + "t" : 0, + "i" : 20, + "ag" : 0, + "dex" : 0, + "int" : 5, + "wp" : 10, + "fel" : 10 +} +let skills = ["Charm", "Intimidate", "Melee (Basic)"] +let skillAdvancements = [7, 60, 7] +let talents = ["Menacing", "Shadow"] +let traits = ["Distracting"] +let trappings = [] +let items = []; +let spells = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +const traitRegex = /(?:,?(.+?)(\+?\d{1,2}\+?)?\s*?(?:\((.+?)\)\s*(\+?\d{1,2})?|,|$))/gm +for (let trait of traits) +{ + let traitMatches = trait.matchAll(traitRegex).next().value + let traitName = traitMatches[1] + let traitVal = traitMatches[2] || traitMatches[4] // could be match 2 or 4 depending on if there's a specialization + let traitSpec = traitMatches[3] + + let traitItem; + try { + traitItem = await WFRP_Utility.findItem(traitName, "trait") + } + catch { } + if (!traitItem) { + ui.notifications.warn(`Could not find ${trait}`, {permanent : true}) + } + traitItem = traitItem.toObject() + + if (Number.isNumeric(traitVal)) + { + traitItem.system.specification.value = traitName.includes('Weapon','Horns','Tail','Tentacles','Bite') ? traitVal - parseInt(characteristicValues[3]/10) : traitVal; + traitItem.name = (traitItem.name + ` ${traitSpec ? "("+ traitSpec + ")" : ""}`).trim() + } + else + traitItem.system.specification.value = traitSpec + + items.push(traitItem) + +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +for (let spell of spells) +{ + let spellItem = await game.wfrp4e.utility.findItem(spell) + if (spellItem) + { + spellItem = spellItem.toObject() + + items.push(spellItem); + } + else + { + ui.notifications.warn(`Could not find ${spell}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + + +function equip(item) +{ + if (item.type == "armour") + item.worn = true + else if (item.type == "weapon") + item.equipped = true + else if (item.type == "trapping" && item.trappingType?.value == "clothingAccessories") + item.worn = true +} \ No newline at end of file diff --git a/scripts/hA8PzeiCsHqqlUZm.js b/scripts/hA8PzeiCsHqqlUZm.js new file mode 100644 index 0000000..c8e212a --- /dev/null +++ b/scripts/hA8PzeiCsHqqlUZm.js @@ -0,0 +1,2 @@ +this.actor.createEmbeddedDocuments("ActiveEffect", [game.wfrp4e.config.symptomEffects["nausea"]]) +this.script.scriptMessage(`Gains @Condition[Nausea] for [[1d10]] hours`, {whisper: ChatMessage.getWhisperRecipients("GM")}) \ No newline at end of file diff --git a/scripts/hCzxUyO6mjLNIpaM.js b/scripts/hCzxUyO6mjLNIpaM.js new file mode 100644 index 0000000..1555cce --- /dev/null +++ b/scripts/hCzxUyO6mjLNIpaM.js @@ -0,0 +1,7 @@ +let woundsGained = Math.min(args.totalWoundLoss, args.actor.status.wounds.value) + +woundsGained = Math.floor(woundsGained / 2) + +args.attacker.update({ "system.status.wounds.value": args.attacker.status.wounds.value + woundsGained }) + +this.script.scriptMessage(`Gains ${woundsGained} Wounds`) \ No newline at end of file diff --git a/scripts/hDC6lroDEPVBituR.js b/scripts/hDC6lroDEPVBituR.js new file mode 100644 index 0000000..02f66dc --- /dev/null +++ b/scripts/hDC6lroDEPVBituR.js @@ -0,0 +1,12 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + +if (test.failed) +{ + this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + 1}) + this.script.scriptMessage("Gained a Corruption point", {whisper : ChatMessage.getWhisperRecipients("GM")}) + if (test.result.roll % 11 == 0 || test.result.roll == 100) + { + this.script.scriptMessage(`Fumble: immediately gain 1 @Table[mutatemental]{Mental Mutation}, and may not take a Short-term Ambition for the next [[1d10]] weeks.`, {whisper : ChatMessage.getWhisperRecipients("GM")}) + } +} \ No newline at end of file diff --git a/scripts/hK0YMJfYbpbJZizO.js b/scripts/hK0YMJfYbpbJZizO.js new file mode 100644 index 0000000..45b97af --- /dev/null +++ b/scripts/hK0YMJfYbpbJZizO.js @@ -0,0 +1,12 @@ +this.actor.getActiveTokens().forEach(t => t.document.update({light : { + "dim": 0, + "bright": 0, + "angle": 360, + "alpha": 0.5, + "animation": { + "speed": 0, + "intensity": 0, + "type": "none", + }, + "color": "", + }})); \ No newline at end of file diff --git a/scripts/hObTbWi4ZdwXimIW.js b/scripts/hObTbWi4ZdwXimIW.js new file mode 100644 index 0000000..59c8d0c --- /dev/null +++ b/scripts/hObTbWi4ZdwXimIW.js @@ -0,0 +1,4 @@ +if (args.item.type == "spell") +{ + args.item.system.cn.value = Math.floor(args.item.system.cn.value / 2); +} \ No newline at end of file diff --git a/scripts/hR1qD2kpFHF8JT8h.js b/scripts/hR1qD2kpFHF8JT8h.js new file mode 100644 index 0000000..1ee0b50 --- /dev/null +++ b/scripts/hR1qD2kpFHF8JT8h.js @@ -0,0 +1 @@ +return args.skill?.name == "Language (Magick)" \ No newline at end of file diff --git a/scripts/hSlEY2oh8quVmdXR.js b/scripts/hSlEY2oh8quVmdXR.js new file mode 100644 index 0000000..f535336 --- /dev/null +++ b/scripts/hSlEY2oh8quVmdXR.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn") +let data = item.toObject(); +data.system.specification.value = 2 +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/hZAax4emLahEEqcZ.js b/scripts/hZAax4emLahEEqcZ.js new file mode 100644 index 0000000..4cf471f --- /dev/null +++ b/scripts/hZAax4emLahEEqcZ.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.BqPZn6q3VHn9HUrW") +let data = item.toObject(); +data.system.specification.value = 7 - this.actor.characteristics.s.bonus +data.name = item.name.replace("(Feature)", "(Tusks)") +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/hfO4INH3EeETDTFt.js b/scripts/hfO4INH3EeETDTFt.js new file mode 100644 index 0000000..5bb82c4 --- /dev/null +++ b/scripts/hfO4INH3EeETDTFt.js @@ -0,0 +1 @@ +this.actor.status.addArmour(1, {locations: this.effect.flags.wfrp4e.locations, source: this.effect}) \ No newline at end of file diff --git a/scripts/hhCs5VBKx50S5IsY.js b/scripts/hhCs5VBKx50S5IsY.js new file mode 100644 index 0000000..d3aa69e --- /dev/null +++ b/scripts/hhCs5VBKx50S5IsY.js @@ -0,0 +1 @@ +return !args.options.mutate \ No newline at end of file diff --git a/scripts/hhv7PrRdlf9sfC82.js b/scripts/hhv7PrRdlf9sfC82.js new file mode 100644 index 0000000..1941c02 --- /dev/null +++ b/scripts/hhv7PrRdlf9sfC82.js @@ -0,0 +1,84 @@ +let characteristics = { + "ws" : 5, + "bs" : 0, + "s" : 5, + "t" : 5, + "i" : 10, + "ag" : 0, + "dex" : 0, + "int" : 0, + "wp" : 0, + "fel" : 0 + } + let skills = ["Cool", "Dodge"] + let skillAdvancements = [10, 10] + let talents = ["Combat Reflexes"] + let trappings = ["Leather Jack", "Leather Skullcap", "Leather Leggings", "Shield"] + let items = [] + + let updateObj = this.actor.toObject(); + + for (let ch in characteristics) + { + updateObj.system.characteristics[ch].modifier += characteristics[ch]; + } + + for (let index = 0; index < skills.length; index++) + { + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } + } + + for (let talent of talents) + { + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + } + + for (let trapping of trappings) + { + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } + } + + + await this.actor.update(updateObj) + this.actor.createEmbeddedDocuments("Item", items); + + function equip(item) + { + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true + } \ No newline at end of file diff --git a/scripts/hlHKeFWrOA8CsLr9.js b/scripts/hlHKeFWrOA8CsLr9.js new file mode 100644 index 0000000..25e12e8 --- /dev/null +++ b/scripts/hlHKeFWrOA8CsLr9.js @@ -0,0 +1,2 @@ +args.data.canReverse = true; +args.options.pilot = true; \ No newline at end of file diff --git a/scripts/hluehsCuBZYc1Ejt.js b/scripts/hluehsCuBZYc1Ejt.js new file mode 100644 index 0000000..73d83dc --- /dev/null +++ b/scripts/hluehsCuBZYc1Ejt.js @@ -0,0 +1 @@ +return args.characterisic != "fel" \ No newline at end of file diff --git a/scripts/hmk8zV1LTElHUI8A.js b/scripts/hmk8zV1LTElHUI8A.js new file mode 100644 index 0000000..00780d6 --- /dev/null +++ b/scripts/hmk8zV1LTElHUI8A.js @@ -0,0 +1,8 @@ +let msg = `${this.actor.prototypeToken.name} loses 1 Wound.
` + if (this.actor.status.wounds.value <= 1) + { + msg += `${this.actor.prototypeToken.name} goes unconscious.
` + await this.actor.addCondition("unconscious") + } + this.script.scriptMessage(msg) + this.actor.modifyWounds(-1) \ No newline at end of file diff --git a/scripts/hnsmzvcuiUYB065I.js b/scripts/hnsmzvcuiUYB065I.js new file mode 100644 index 0000000..e0d3818 --- /dev/null +++ b/scripts/hnsmzvcuiUYB065I.js @@ -0,0 +1 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {appendTitle: ` - ${this.effect.name}`, context: { failure : "May not flee Combat"}}).then(test => test.roll()) \ No newline at end of file diff --git a/scripts/hpwJRAhCsXTp9bd9.js b/scripts/hpwJRAhCsXTp9bd9.js new file mode 100644 index 0000000..5a39770 --- /dev/null +++ b/scripts/hpwJRAhCsXTp9bd9.js @@ -0,0 +1,115 @@ +let choice1 = [ + { + type : "skill", + name : "Melee (Basic)", + diff : { + system : { + advances : { + value : 20 + } + } + } + } +] +let choice2 = [ + { + type : "skill", + name : "Melee (Polearm)", + diff : { + system : { + advances : { + value : 20 + } + } + } + } +] + +let choice3 = [ + { + type : "skill", + name : "Melee (Two-Handed)", + diff : { + system : { + advances : { + value : 20 + } + } + } + } +] + +let choice = await Dialog.wait({ + title : "Choice", + content : + `

+ Select your choice +

+
    +
  1. Melee (Basic)
  2. +
  3. Melee (Polearm)
  4. +
  5. Melee (Two-Handed)
  6. +
+ `, + buttons : { + 1 : { + label : "Basic", + callback : () => { + return choice1 + } + }, + 2 : { + label : "Polearm", + callback : () => { + return choice2 + } + }, + 3 : { + label : "Two-Handed", + callback : () => { + return choice3 + } + } + } +}) + +let updateObj = this.actor.toObject(); +let items = [] +for (let c of choice) +{ + let existing + if (c.type == "skill") + { + existing = updateObj.items.find(i => i.name == c.name && i.type == c.type) + if (existing && c.diff?.system?.advances?.value) + { + existing.system.advances.value += c.diff.system.advances.value + } + } + + if (!existing) + { + let item = await game.wfrp4e.utility.find(c.name, c.type) + if (item) + { + item = item.toObject() + equip(item); + items.push(mergeObject(item, (c.diff || {}))) + } + else + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + +} +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/hwHpIunCq3ifk2QU.js b/scripts/hwHpIunCq3ifk2QU.js new file mode 100644 index 0000000..d2073d7 --- /dev/null +++ b/scripts/hwHpIunCq3ifk2QU.js @@ -0,0 +1,8 @@ +if (args.item.type == "spell") +{ + let range = parseInt(args.item.Duration) + if (Number.isNumeric(range)) + { + args.item.system.duration.value = "2 * " + args.item.system.duration.value + } +} \ No newline at end of file diff --git a/scripts/hwOZxgt7e65iWvYz.js b/scripts/hwOZxgt7e65iWvYz.js new file mode 100644 index 0000000..b127c0e --- /dev/null +++ b/scripts/hwOZxgt7e65iWvYz.js @@ -0,0 +1,8 @@ +let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + let damage = this.effect.sourceTest.result.damage + + this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true})) +} \ No newline at end of file diff --git a/scripts/hxmwtw5zAHyS2upG.js b/scripts/hxmwtw5zAHyS2upG.js new file mode 100644 index 0000000..49a56fd --- /dev/null +++ b/scripts/hxmwtw5zAHyS2upG.js @@ -0,0 +1 @@ +this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("giftofthebeast")) \ No newline at end of file diff --git a/scripts/i59IpmZNLJEPWZ3L.js b/scripts/i59IpmZNLJEPWZ3L.js new file mode 100644 index 0000000..60db120 --- /dev/null +++ b/scripts/i59IpmZNLJEPWZ3L.js @@ -0,0 +1 @@ +return args.spell \ No newline at end of file diff --git a/scripts/i5AN97A7IOeygEFA.js b/scripts/i5AN97A7IOeygEFA.js new file mode 100644 index 0000000..e128fbe --- /dev/null +++ b/scripts/i5AN97A7IOeygEFA.js @@ -0,0 +1,7 @@ +if (args.applyAP && args.modifiers.ap.metal) +{ + args.modifiers.ap.ignored += args.modifiers.ap.metal + args.modifiers.other.push({value : args.modifiers.ap.metal, label : this.effect.name, details : "Add Metal AP to Damage" }) + args.modifiers.ap.details.push("" + this.effect.name + ": Ignore Metal (" + args.modifiers.ap.metal + ")"); + args.modifiers.ap.metal = 0 +} \ No newline at end of file diff --git a/scripts/i7xl0jNpLnBT2h2l.js b/scripts/i7xl0jNpLnBT2h2l.js new file mode 100644 index 0000000..183f84b --- /dev/null +++ b/scripts/i7xl0jNpLnBT2h2l.js @@ -0,0 +1 @@ +args.actor.characteristics.dex.value = 0 \ No newline at end of file diff --git a/scripts/iAo3wxMLA64rsKjj.js b/scripts/iAo3wxMLA64rsKjj.js new file mode 100644 index 0000000..1388122 --- /dev/null +++ b/scripts/iAo3wxMLA64rsKjj.js @@ -0,0 +1 @@ +this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("skavenbrew")) \ No newline at end of file diff --git a/scripts/iBEPQ3NwtI9DfkEy.js b/scripts/iBEPQ3NwtI9DfkEy.js new file mode 100644 index 0000000..6863a6b --- /dev/null +++ b/scripts/iBEPQ3NwtI9DfkEy.js @@ -0,0 +1,14 @@ +let locations = []; + +while (locations.length < 2) +{ + let loc = await game.wfrp4e.tables.rollTable("hitloc", {hideDSN : true}) + if (!locations.includes(loc.result)) + { + locations.push(loc.result); + } +} + +locationText = locations.map(i => game.wfrp4e.config.locations[i]).join(", ") + +this.item.updateSource({name : this.item.name += ` (${locationText})`}) \ No newline at end of file diff --git a/scripts/iHn3YzvqNfbwzjZz.js b/scripts/iHn3YzvqNfbwzjZz.js new file mode 100644 index 0000000..bd9a8eb --- /dev/null +++ b/scripts/iHn3YzvqNfbwzjZz.js @@ -0,0 +1,6 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM") +let data = item.toObject(); +data.system.specification.value = this.actor.characteristics.s.bonus +data.system.description.value = "" +data.name = this.effect.name; +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/iLpq4yCFN6YACrYA.js b/scripts/iLpq4yCFN6YACrYA.js new file mode 100644 index 0000000..2410b6e --- /dev/null +++ b/scripts/iLpq4yCFN6YACrYA.js @@ -0,0 +1,4 @@ +if (args.test.result.castOutcome == "success") +{ + this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("demonic-mien")) +} \ No newline at end of file diff --git a/scripts/iM4B3IZ4VtpZsl09.js b/scripts/iM4B3IZ4VtpZsl09.js new file mode 100644 index 0000000..497e8eb --- /dev/null +++ b/scripts/iM4B3IZ4VtpZsl09.js @@ -0,0 +1 @@ +args.size = "sml" \ No newline at end of file diff --git a/scripts/iM6JLF8jDXMViReZ.js b/scripts/iM6JLF8jDXMViReZ.js new file mode 100644 index 0000000..34e9ba4 --- /dev/null +++ b/scripts/iM6JLF8jDXMViReZ.js @@ -0,0 +1 @@ +return !["Pick Lock", "Sleight of Hand", "Channelling (Ulgu)"].includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/iMDZLr7ueJWBnilj.js b/scripts/iMDZLr7ueJWBnilj.js new file mode 100644 index 0000000..d950702 --- /dev/null +++ b/scripts/iMDZLr7ueJWBnilj.js @@ -0,0 +1 @@ +args.actor.flags.rangedDamageIncrease += 1 \ No newline at end of file diff --git a/scripts/iMu8BZ7eHMAbPEO1.js b/scripts/iMu8BZ7eHMAbPEO1.js new file mode 100644 index 0000000..46b2e56 --- /dev/null +++ b/scripts/iMu8BZ7eHMAbPEO1.js @@ -0,0 +1,5 @@ +let healed = args.totalWoundLoss + +this.script.scriptMessage(`this.actor.prototypeToken.name healed ${healed} Wounds`); + +this.actor.modifyWounds(healed) \ No newline at end of file diff --git a/scripts/iNAQJa5HyaEckknX.js b/scripts/iNAQJa5HyaEckknX.js new file mode 100644 index 0000000..517797d --- /dev/null +++ b/scripts/iNAQJa5HyaEckknX.js @@ -0,0 +1,18 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + + +let opposedResult = test.opposedMessages[0]?.getOppose()?.resultMessage?.getOpposedTest()?.result + +if (opposedResult?.winner == "attacker") +{ + let spells = this.actor.itemTypes.spell; + if (spells.length) + { + let chosen = spells[Math.floor(CONFIG.Dice.randomUniform() * spells.length)] + this.script.scriptMessage(`Loses access to ${chosen.name}`) + chosen.update({name : chosen.name += " (LOST)"}) + } +} + + diff --git a/scripts/iT0h3VZLEBQnn5Bx.js b/scripts/iT0h3VZLEBQnn5Bx.js new file mode 100644 index 0000000..eda68c1 --- /dev/null +++ b/scripts/iT0h3VZLEBQnn5Bx.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Charm") && args.skill?.name != game.i18n.localize("NAME.Gossip") && args.skill?.name != game.i18n.localize("NAME.ConsumeAlcohol"); \ No newline at end of file diff --git a/scripts/iT3C15fMyQrj1RmG.js b/scripts/iT3C15fMyQrj1RmG.js new file mode 100644 index 0000000..5264fd2 --- /dev/null +++ b/scripts/iT3C15fMyQrj1RmG.js @@ -0,0 +1,8 @@ +if (this.actor.has("Undead") && this.actor.has("Ethereal")) +{ + this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name}).then(async test => { + await test.roll(); + if(test.failed) + this.actor.addCondition("stunned") + }) +} \ No newline at end of file diff --git a/scripts/iVhi3Z6zPaf1bf8g.js b/scripts/iVhi3Z6zPaf1bf8g.js new file mode 100644 index 0000000..3fce244 --- /dev/null +++ b/scripts/iVhi3Z6zPaf1bf8g.js @@ -0,0 +1 @@ +return ["t", "i", "ag", "dex", "int", "wp"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/iX0ctHYHg12pjaCU.js b/scripts/iX0ctHYHg12pjaCU.js new file mode 100644 index 0000000..6e71555 --- /dev/null +++ b/scripts/iX0ctHYHg12pjaCU.js @@ -0,0 +1,15 @@ +let result = await game.wfrp4e.tables.rollTable("gift-of-slaanesh") + +if (result.object.documentId && result.object.documentCollection) +{ + let item = await fromUuid(`Compendium.${result.object.documentCollection}.${result.object.documentId}`); + if (item) + { + let data = item.toObject(); + // Some items need sourceTest for their effects + setProperty(data, "flags.wfrp4e.sourceTest", this.effect.sourceTest); + await this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}); + } +} + +this.script.scriptMessage(game.wfrp4e.tables.formatChatRoll("gift-of-slaanesh", {lookup : result.roll, hideDSN: true})); \ No newline at end of file diff --git a/scripts/id9ZdkERMZnZTWXt.js b/scripts/id9ZdkERMZnZTWXt.js new file mode 100644 index 0000000..633bb00 --- /dev/null +++ b/scripts/id9ZdkERMZnZTWXt.js @@ -0,0 +1,7 @@ +if (args.extendedTest?.getFlag("wfrp4e", "fear")) +{ + this.script.scriptNotification("Immune to Fear"); + args.extendedTest.delete(); + args.abort = true; +} +return args.options.terror || args.extendedTest?.getFlag("wfrp4e", "fear") \ No newline at end of file diff --git a/scripts/igVAVU7DOuzhNG14.js b/scripts/igVAVU7DOuzhNG14.js new file mode 100644 index 0000000..ca781a1 --- /dev/null +++ b/scripts/igVAVU7DOuzhNG14.js @@ -0,0 +1 @@ +return args.item?.system.isMelee \ No newline at end of file diff --git a/scripts/imKVsCy8rya2gkwO.js b/scripts/imKVsCy8rya2gkwO.js new file mode 100644 index 0000000..cfdc4ba --- /dev/null +++ b/scripts/imKVsCy8rya2gkwO.js @@ -0,0 +1,18 @@ +// Any Characteristic penalties due to failed Consume Alcohol Tests +// or the state of being Stinking Drunk are eliminated. +await this.actor.removeSystemEffect("consumealcohol1") +await this.actor.removeSystemEffect("consumealcohol2") +await this.actor.removeSystemEffect("consumealcohol3") +await this.actor.removeSystemEffect("stinkingdrunk1") + +// The drinker is thereafter Fatigued +// for a number of hours equal to 10 minus their Toughness Bonus — +// nothing but time and rest can eliminate this penalty. +await this.actor.addCondition("fatigued") +const duration = 10 - parseInt(this.actor.system.characteristics.t.bonus) +this.effect.updateSource({"duration.rounds" : duration}); +this.script.scriptMessage(`

${this.actor.prototypeToken.name} has lost all alcohol related penalties and gains the Fatigued Condition for ${duration} hours.

`, +{ + whisper: ChatMessage.getWhisperRecipients("GM"), + blind: true +}) \ No newline at end of file diff --git a/scripts/inPxRSx0CDj1nwAm.js b/scripts/inPxRSx0CDj1nwAm.js new file mode 100644 index 0000000..6fda683 --- /dev/null +++ b/scripts/inPxRSx0CDj1nwAm.js @@ -0,0 +1,4 @@ +if (args.test.result.fumble && !this.actor.itemTypes.talent.find(i => i.name == "Arcane Magic (Fire)")) +{ + this.actor.addCondition("ablaze"); +} \ No newline at end of file diff --git a/scripts/ioeTj5mx8jlA5EX5.js b/scripts/ioeTj5mx8jlA5EX5.js new file mode 100644 index 0000000..9605807 --- /dev/null +++ b/scripts/ioeTj5mx8jlA5EX5.js @@ -0,0 +1 @@ +args.actor.addCondition("stunned") \ No newline at end of file diff --git a/scripts/ipkkRffJh61WE7zR.js b/scripts/ipkkRffJh61WE7zR.js new file mode 100644 index 0000000..fe706ac --- /dev/null +++ b/scripts/ipkkRffJh61WE7zR.js @@ -0,0 +1,5 @@ +if (!args.flags.amputatedFootOrLeg) +{ + args.flags.amputatedFootOrLeg= true; + args.fields.modifier -= 20; +} \ No newline at end of file diff --git a/scripts/iuSoKntfJ4eAPafQ.js b/scripts/iuSoKntfJ4eAPafQ.js new file mode 100644 index 0000000..6f1b6d7 --- /dev/null +++ b/scripts/iuSoKntfJ4eAPafQ.js @@ -0,0 +1,8 @@ +let spells = await game.wfrp4e.utility.findAll("spell", "Loading Spells"); +spells = spells.filter(s => ["fire", "heavens", "beasts", "shadow", "light", "life", "death", "metal"].includes(s.system.lore.value)).sort((a, b) => a.system.lore.value > b.system.lore.value ? 1 : -1) + +let choice = await ItemDialog.create(spells, 1, "Choose Spell"); +if (choice[0]) +{ + this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id}) +} diff --git a/scripts/iuYuf05BNuZ5fllI.js b/scripts/iuYuf05BNuZ5fllI.js new file mode 100644 index 0000000..2e17e76 --- /dev/null +++ b/scripts/iuYuf05BNuZ5fllI.js @@ -0,0 +1,4 @@ +if (args.test.isFumble) +{ + args.test.result.other.push("@Table[poisoned-wind-globe]") +} \ No newline at end of file diff --git a/scripts/j1AmrY1SxFJQyapo.js b/scripts/j1AmrY1SxFJQyapo.js new file mode 100644 index 0000000..843d5b1 --- /dev/null +++ b/scripts/j1AmrY1SxFJQyapo.js @@ -0,0 +1,4 @@ +if (this.actor.status.advantage.value > 0 && args.item.system.attackType) +{ + args.item.system.qualities.value.push({name : "penetrating"}) +} \ No newline at end of file diff --git a/scripts/j3zDMWkns32Yrxn3.js b/scripts/j3zDMWkns32Yrxn3.js new file mode 100644 index 0000000..2e60b32 --- /dev/null +++ b/scripts/j3zDMWkns32Yrxn3.js @@ -0,0 +1 @@ +this.effect.updateSource({"flags.wfrp4e.ward" : 9}) \ No newline at end of file diff --git a/scripts/j6Bf1iivH8cqSnnK.js b/scripts/j6Bf1iivH8cqSnnK.js new file mode 100644 index 0000000..f972bb4 --- /dev/null +++ b/scripts/j6Bf1iivH8cqSnnK.js @@ -0,0 +1,2 @@ +let target = args.data.targets[0] +return target?.actor.hasCondition("prone") || target.hasCondition("surprised") \ No newline at end of file diff --git a/scripts/j98hvy6r9G2Vjmid.js b/scripts/j98hvy6r9G2Vjmid.js new file mode 100644 index 0000000..e02fdd6 --- /dev/null +++ b/scripts/j98hvy6r9G2Vjmid.js @@ -0,0 +1,12 @@ +if (args.totalWoundLoss > 0) +{ + args.opposedTest.result.other.push( + `@Corruption[minor]{Minor Exposure to Corruption}` + ) + this.script.scriptMessage( + `${this.effect.name}: + @Corruption[minor]{Minor Exposure to Corruption}
+ ${args.actor.prototypeToken.name} must take an + Average (+20%) Corruption (Minor) Test`, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/jC8o5PbnqEvOoZ9N.js b/scripts/jC8o5PbnqEvOoZ9N.js new file mode 100644 index 0000000..2f4b579 --- /dev/null +++ b/scripts/jC8o5PbnqEvOoZ9N.js @@ -0,0 +1 @@ +this.actor.addCondition("poisoned", 2) \ No newline at end of file diff --git a/scripts/jFwema0iwzBphxie.js b/scripts/jFwema0iwzBphxie.js new file mode 100644 index 0000000..adb34c2 --- /dev/null +++ b/scripts/jFwema0iwzBphxie.js @@ -0,0 +1,9 @@ +let woundsGained = Math.min(args.actor.status.wounds.value, args.totalWoundLoss) +woundsGained = Math.ceil(woundsGained / 2) + +args.attacker.update({"system.status.wounds.value" : args.attacker.system.status.wounds.value + woundsGained}) + +args.actor.addCondition("fatigued") +args.attacker.hasCondition("fatigued")?.delete(); + +this.script.scriptMessage(`${args.attacker.prototypeToken.name} gains ${woundsGained} Wounds`); \ No newline at end of file diff --git a/scripts/jGDk7avWFSnyFoql.js b/scripts/jGDk7avWFSnyFoql.js new file mode 100644 index 0000000..a76c522 --- /dev/null +++ b/scripts/jGDk7avWFSnyFoql.js @@ -0,0 +1,9 @@ +let broken = this.actor.hasCondition("broken"); +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.IAWyzDfC286a9MPz"); + +if (broken && !broken.getFlag("wfrp4e", "blasted-mind") && !this.actor.has(item.name)) +{ + await broken.delete(); + this.actor.createEmbeddedDocuments("Item", [item], {fromEffect: this.effect.id}) + this.script.scriptNotification(`Removed ${broken.name}, added ${item.name} (${Math.ceil(CONFIG.Dice.randomUniform() * 10)} Rounds)`) +} \ No newline at end of file diff --git a/scripts/jHgxpe6TJDlP3oTn.js b/scripts/jHgxpe6TJDlP3oTn.js new file mode 100644 index 0000000..0a1b29a --- /dev/null +++ b/scripts/jHgxpe6TJDlP3oTn.js @@ -0,0 +1,9 @@ +let spells = await game.wfrp4e.utility.findAll("spell", "Loading Spells"); +spells = spells.filter(s => ["slaanesh"].includes(s.system.lore.value)) + +let choice = await ItemDialog.create(spells, 1, "Choose Spell"); +if (choice[0]) +{ + this.item.updateSource({name : this.item.name + ` (${choice[0].name})`}) + this.actor.createEmbeddedDocuments("Item", choice, {fromEffect: this.effect.id}) +} diff --git a/scripts/jLsL4KRI6LEG9Ii2.js b/scripts/jLsL4KRI6LEG9Ii2.js new file mode 100644 index 0000000..315d608 --- /dev/null +++ b/scripts/jLsL4KRI6LEG9Ii2.js @@ -0,0 +1,5 @@ +if (args.test.result.critical && ['rLeg', 'lLeg'].includes(args.test.result.hitloc.result)) +{ + args.test.result.critModifier = args.test.result.critModifier ? args.test.result.critModifier + 20 : 20 + args.test.result.critical += ` (+${args.test.result.critModifier})` +} \ No newline at end of file diff --git a/scripts/jObJanFoev4N6ZRv.js b/scripts/jObJanFoev4N6ZRv.js new file mode 100644 index 0000000..4580414 --- /dev/null +++ b/scripts/jObJanFoev4N6ZRv.js @@ -0,0 +1,2 @@ +if (!args.opposedTest.attackerTest.item?.system?.isMagical) + args.abort = `${this.effect.name}: Ignored` \ No newline at end of file diff --git a/scripts/jRSgPhpfN7MH7TTp.js b/scripts/jRSgPhpfN7MH7TTp.js new file mode 100644 index 0000000..8614c9c --- /dev/null +++ b/scripts/jRSgPhpfN7MH7TTp.js @@ -0,0 +1,16 @@ +if (args.totalWoundLoss > 0) +{ + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context: { failure: "1 Poisoned Condition Gained", success: "Resisted Poisoned Condition" } }) + await test.roll(); + if (test.failed) + { + args.actor.addCondition("poisoned"); + if (args.actor.system.status.wounds.value - args.totalWoundLoss <= 0) + { + args.actor.addCondition("unconscious") + } + } +} + + // else + // this.actor.setupCharacteristic("t", { context: { failure: "1 @Condition[Poisoned] Condition Gained", success: "Resisted @Condition[Poisoned] Condition" } }).then(testCallback) diff --git a/scripts/jW87rmQLtROdVEhW.js b/scripts/jW87rmQLtROdVEhW.js new file mode 100644 index 0000000..6c5e3ca --- /dev/null +++ b/scripts/jW87rmQLtROdVEhW.js @@ -0,0 +1,5 @@ + if (["orc", "ork", "goblin", "hobgoblin", "snotling", "greenskin"].includes(args.opposedTest.defender.details.species.value.toLowerCase())) + { + args.addImpact = true + args.opposedTest.result.other.push("Rune of Goblin Bane: Impact Added") + } \ No newline at end of file diff --git a/scripts/jWkfoVpHLiRaHTza.js b/scripts/jWkfoVpHLiRaHTza.js new file mode 100644 index 0000000..eb8a1cf --- /dev/null +++ b/scripts/jWkfoVpHLiRaHTza.js @@ -0,0 +1,4 @@ +if (args.test.succeeded) +{ + args.test.result.other.push(`${this.effect.name}: @Terror[1,${this.actor.prototypeToken.name}]`) +} \ No newline at end of file diff --git a/scripts/jYJRO5XPyG7y6fih.js b/scripts/jYJRO5XPyG7y6fih.js new file mode 100644 index 0000000..6473155 --- /dev/null +++ b/scripts/jYJRO5XPyG7y6fih.js @@ -0,0 +1,3 @@ +await this.actor.addCondition("blinded") +await this.actor.addCondition("deafened") +await this.actor.addCondition("fatigued") \ No newline at end of file diff --git a/scripts/jbZPLb4wuqJpHLUx.js b/scripts/jbZPLb4wuqJpHLUx.js new file mode 100644 index 0000000..0aa879a --- /dev/null +++ b/scripts/jbZPLb4wuqJpHLUx.js @@ -0,0 +1 @@ +this.item.system.flaws.value.push({name : "dangerous"}) \ No newline at end of file diff --git a/scripts/jdS2u1tQPYeO55WI.js b/scripts/jdS2u1tQPYeO55WI.js new file mode 100644 index 0000000..a274d28 --- /dev/null +++ b/scripts/jdS2u1tQPYeO55WI.js @@ -0,0 +1,61 @@ +let type = this.item.getFlag("wfrp4e", "breath"); + +if (type == "cold") +{ + let stunned = Math.max(1, Math.trunc(args.totalWoundLoss / 5)) + await args.actor.addCondition("stunned", stunned); +} + +if (type == "corrosion") +{ + let damageItems = await Dialog.confirm({title : this.item.name, content : `

Damage all Items carried?

`}) + if (damageItems) + { + let msg = `` + let weapons = args.actor.itemTypes.weapon.filter(i => i.isEquipped); + let armour = args.actor.itemTypes.armour.filter(i => i.isEquipped); + let trappings = args.actor.itemTypes.trapping.filter(i => i.isEquipped); + for(let item of weapons) + { + if (item.system.properties.qualities.shield) + { + await item.system.damageItem(1, "shield"); + } + else + { + await item.system.damageItem(1); + } + msg += `

${item.name} damage by 1

` + } + for(let item of armour) + { + await item.system.damageItem(1); + msg += `

${item.name} damage by 1

` + } + for(let item of trappings) + { + await item.system.damageItem(1); + msg += `

${item.name} damage by 1

` + } + if (msg) + { + this.script.scriptMessage(msg, {speaker : {alias : args.actor.name}}); + } + } +} + +if (type == "fire") +{ + await args.actor.addCondition("ablaze"); +} + +if (type == "electricity") +{ + await args.actor.addCondition("stunned"); +} + +if (type == "poison") +{ + await args.actor.addCondition("poisoned"); +} + diff --git a/scripts/jfk5VDKMTIf4ee0v.js b/scripts/jfk5VDKMTIf4ee0v.js new file mode 100644 index 0000000..bf86bc6 --- /dev/null +++ b/scripts/jfk5VDKMTIf4ee0v.js @@ -0,0 +1,2 @@ +if (args.totalWoundLoss > 0) + args.actor.addCondition("poisoned") \ No newline at end of file diff --git a/scripts/jgO1Kf60Ctt6R0qO.js b/scripts/jgO1Kf60Ctt6R0qO.js new file mode 100644 index 0000000..5fb4283 --- /dev/null +++ b/scripts/jgO1Kf60Ctt6R0qO.js @@ -0,0 +1 @@ +return args.item?.name != game.i18n.localize("NAME.Leadership") \ No newline at end of file diff --git a/scripts/jmxlpyLrIuoxQtvU.js b/scripts/jmxlpyLrIuoxQtvU.js new file mode 100644 index 0000000..097d4e0 --- /dev/null +++ b/scripts/jmxlpyLrIuoxQtvU.js @@ -0,0 +1 @@ + this.actor.getActiveTokens().forEach(t => t.document.update({texture : {scaleX : 2, scaleY: 2, src: "modules/wfrp4e-core/tokens/popout/gor.webp"}})); diff --git a/scripts/jpcU8FFWSlQ3gD0L.js b/scripts/jpcU8FFWSlQ3gD0L.js new file mode 100644 index 0000000..dfb5b37 --- /dev/null +++ b/scripts/jpcU8FFWSlQ3gD0L.js @@ -0,0 +1 @@ +return !args.skill?.name?.includes(game.i18n.localize("NAME.Trade")) \ No newline at end of file diff --git a/scripts/jrvj7bRyMBB9LixP.js b/scripts/jrvj7bRyMBB9LixP.js new file mode 100644 index 0000000..8c8d940 --- /dev/null +++ b/scripts/jrvj7bRyMBB9LixP.js @@ -0,0 +1 @@ +this.actor.addCondition("fatigued", 3) \ No newline at end of file diff --git a/scripts/jsgLEVYvMieyYT6L.js b/scripts/jsgLEVYvMieyYT6L.js new file mode 100644 index 0000000..bfcf625 --- /dev/null +++ b/scripts/jsgLEVYvMieyYT6L.js @@ -0,0 +1,18 @@ +let tokenImg = ""; // Put path to token image here, inbetween the quotation marks +if (tokenImg) +{ + if (this.effect.getFlag("wfrp4e", "transformed")) + { + await this.effect.setFlag("wfrp4e", "transformed", false); + this.actor.getActiveTokens().forEach(t => t.document.update({texture : {src: this.actor.prototypeToken.texture.src}})); + } + else + { + await this.effect.setFlag("wfrp4e", "transformed", true); + this.actor.getActiveTokens().forEach(t => t.document.update({texture : {src: tokenImg}})); + } +} +else +{ + this.script.scriptNotification("No Token Image path configured. The image path should be set in the first line of this script.", "error"); +} \ No newline at end of file diff --git a/scripts/k3FqFgsF6a3TkxAD.js b/scripts/k3FqFgsF6a3TkxAD.js new file mode 100644 index 0000000..b78e571 --- /dev/null +++ b/scripts/k3FqFgsF6a3TkxAD.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +test.roll(); +return true; \ No newline at end of file diff --git a/scripts/k8TC0yzp4xfOXD2n.js b/scripts/k8TC0yzp4xfOXD2n.js new file mode 100644 index 0000000..26e00ae --- /dev/null +++ b/scripts/k8TC0yzp4xfOXD2n.js @@ -0,0 +1,10 @@ +if (args.totalWoundLoss > 0) +{ + let test = await args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); + await test.roll(); + if (test.failed) + { + args.actor.addCondition("stunned"); + } + args.actor.hasCondition("bleeding")?.delete() +} \ No newline at end of file diff --git a/scripts/k9SvH4Lm3ZuI8S1N.js b/scripts/k9SvH4Lm3ZuI8S1N.js new file mode 100644 index 0000000..8315c45 --- /dev/null +++ b/scripts/k9SvH4Lm3ZuI8S1N.js @@ -0,0 +1 @@ +return !["wp", "ag", "i", "int"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/kBXVEnSWzaQZLkJH.js b/scripts/kBXVEnSWzaQZLkJH.js new file mode 100644 index 0000000..f8484c9 --- /dev/null +++ b/scripts/kBXVEnSWzaQZLkJH.js @@ -0,0 +1,5 @@ +if(args.test.result.critical) +{ + args.test.result.damage +=1 + args.test.result.additionalDamage += 1 +} \ No newline at end of file diff --git a/scripts/kIM4Fs1lFVV7TSnj.js b/scripts/kIM4Fs1lFVV7TSnj.js new file mode 100644 index 0000000..176adc4 --- /dev/null +++ b/scripts/kIM4Fs1lFVV7TSnj.js @@ -0,0 +1 @@ +this.actor.modifyAdvantage(1); \ No newline at end of file diff --git a/scripts/kMSdRskYDI2J1gnp.js b/scripts/kMSdRskYDI2J1gnp.js new file mode 100644 index 0000000..c06e3bc --- /dev/null +++ b/scripts/kMSdRskYDI2J1gnp.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone"); +} + \ No newline at end of file diff --git a/scripts/kWynO1lQzjiSs8RK.js b/scripts/kWynO1lQzjiSs8RK.js new file mode 100644 index 0000000..0b3b7e8 --- /dev/null +++ b/scripts/kWynO1lQzjiSs8RK.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Haggle"); \ No newline at end of file diff --git a/scripts/kYiDBPRKIokFkr4Z.js b/scripts/kYiDBPRKIokFkr4Z.js new file mode 100644 index 0000000..10222a8 --- /dev/null +++ b/scripts/kYiDBPRKIokFkr4Z.js @@ -0,0 +1,4 @@ +if (args.item.type == "skill" && args.item.name == "Ranged (Bow)") +{ + args.item.system.modifier.value += 20; +} \ No newline at end of file diff --git a/scripts/kYmscP2HuXjDovBD.js b/scripts/kYmscP2HuXjDovBD.js new file mode 100644 index 0000000..2e53be1 --- /dev/null +++ b/scripts/kYmscP2HuXjDovBD.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Stealth")) diff --git a/scripts/kiJ6AiaYVUjt6aV6.js b/scripts/kiJ6AiaYVUjt6aV6.js new file mode 100644 index 0000000..2998e2c --- /dev/null +++ b/scripts/kiJ6AiaYVUjt6aV6.js @@ -0,0 +1,7 @@ +teeth = await fromUuid("Compendium.wfrp4e-core.items.fBcZhOBn8IpoVqQ1") +teeth = teeth.toObject(); + +let roll = await new Roll("1d10").roll(); +roll.toMessage(this.script.getChatData({flavor : "Teeth Lost"})) +teeth.system.location.value = `${roll.total} ${teeth.system.location.value}` +this.actor.createEmbeddedDocuments("Item", [teeth]) \ No newline at end of file diff --git a/scripts/kkC5EhqA05U6U0gU.js b/scripts/kkC5EhqA05U6U0gU.js new file mode 100644 index 0000000..4116109 --- /dev/null +++ b/scripts/kkC5EhqA05U6U0gU.js @@ -0,0 +1,17 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + +// Kind of insane but whatever +let opposedResult = test.opposedMessages[0]?.getOppose()?.resultMessage?.getOpposedTest()?.result + +if (opposedResult?.winner == "attacker") +{ + if (opposedResult.differenceSL < 6) + { + this.actor.addCondition("fatigued", Math.floor(opposedResult.differenceSL / 2)) + } + else if (opposedResult.differenceSL >= 6) + { + this.actor.addCondition("broken"); + } +} \ No newline at end of file diff --git a/scripts/kmsGLWGxCY8Z8jVG.js b/scripts/kmsGLWGxCY8Z8jVG.js new file mode 100644 index 0000000..3077f61 --- /dev/null +++ b/scripts/kmsGLWGxCY8Z8jVG.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Intuition"); \ No newline at end of file diff --git a/scripts/kvaN100w0nBUlLbj.js b/scripts/kvaN100w0nBUlLbj.js new file mode 100644 index 0000000..cc524fa --- /dev/null +++ b/scripts/kvaN100w0nBUlLbj.js @@ -0,0 +1,6 @@ +let poisoned = this.actor.hasCondition("poisoned") +if (poisoned) +{ + this.script.scriptMessage("Immune to Poisoned") + poisoned.delete() +} \ No newline at end of file diff --git a/scripts/l8qFKSnMpy4P7XQR.js b/scripts/l8qFKSnMpy4P7XQR.js new file mode 100644 index 0000000..523491c --- /dev/null +++ b/scripts/l8qFKSnMpy4P7XQR.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Stealth")); \ No newline at end of file diff --git a/scripts/lCOdnKz8XpnkDs6Q.js b/scripts/lCOdnKz8XpnkDs6Q.js new file mode 100644 index 0000000..51d5386 --- /dev/null +++ b/scripts/lCOdnKz8XpnkDs6Q.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); \ No newline at end of file diff --git a/scripts/lFO6XdfUODmFArqx.js b/scripts/lFO6XdfUODmFArqx.js new file mode 100644 index 0000000..083ec87 --- /dev/null +++ b/scripts/lFO6XdfUODmFArqx.js @@ -0,0 +1 @@ +args.actor.addCondition("bleeding") \ No newline at end of file diff --git a/scripts/lII4KMRblqwFBlsV.js b/scripts/lII4KMRblqwFBlsV.js new file mode 100644 index 0000000..49bd3a7 --- /dev/null +++ b/scripts/lII4KMRblqwFBlsV.js @@ -0,0 +1,133 @@ +let characteristics = { + "ws" : 10, + "bs" : 0, + "s" : 0, + "t" : 0, + "i" : 10, + "ag" : 0, + "dex" : 0, + "int" : 20, + "wp" : 10, + "fel" : 15 +} +let skills = ["Channelling", "Charm", "Perform (Dancing)"] +let skillAdvancements = [0, 6, 3] +let talents = ["Attractive", "Distract", "Mimic"] +let traits = ["Distracting", "Flight (6)", "Spellcaster (Petty)"] +let trappings = [] +let items = []; +let spells = ["Marsh Lights", "Sleep"]; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +const traitRegex = /(?:,?(.+?)(\+?\d{1,2}\+?)?\s*?(?:\((.+?)\)\s*(\+?\d{1,2})?|,|$))/gm +for (let trait of traits) +{ + let traitMatches = trait.matchAll(traitRegex).next().value + let traitName = traitMatches[1] + let traitVal = traitMatches[2] || traitMatches[4] // could be match 2 or 4 depending on if there's a specialization + let traitSpec = traitMatches[3] + + let traitItem; + try { + traitItem = await WFRP_Utility.findItem(traitName, "trait") + } + catch { } + if (!traitItem) { + ui.notifications.warn(`Could not find ${trait}`, {permanent : true}) + } + traitItem = traitItem.toObject() + + if (Number.isNumeric(traitVal)) + { + traitItem.system.specification.value = traitName.includes('Weapon','Horns','Tail','Tentacles','Bite') ? traitVal - parseInt(characteristicValues[3]/10) : traitVal; + traitItem.name = (traitItem.name + ` ${traitSpec ? "("+ traitSpec + ")" : ""}`).trim() + } + else + traitItem.system.specification.value = traitSpec + + items.push(traitItem) + +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +for (let spell of spells) +{ + let spellItem = await game.wfrp4e.utility.findItem(spell) + if (spellItem) + { + spellItem = spellItem.toObject() + + items.push(spellItem); + } + else + { + ui.notifications.warn(`Could not find ${spell}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + + +function equip(item) +{ + if (item.type == "armour") + item.worn = true + else if (item.type == "weapon") + item.equipped = true + else if (item.type == "trapping" && item.trappingType?.value == "clothingAccessories") + item.worn = true +} \ No newline at end of file diff --git a/scripts/lOzkngzye4RmvALp.js b/scripts/lOzkngzye4RmvALp.js new file mode 100644 index 0000000..4f261d3 --- /dev/null +++ b/scripts/lOzkngzye4RmvALp.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.DrNUTPeodEgpWTnT") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}); +this.script.scriptNotification("Added " + item.name) \ No newline at end of file diff --git a/scripts/lPudo1grrVp05i7a.js b/scripts/lPudo1grrVp05i7a.js new file mode 100644 index 0000000..b96114f --- /dev/null +++ b/scripts/lPudo1grrVp05i7a.js @@ -0,0 +1,11 @@ +let loc = Math.floor(CONFIG.Dice.randomUniform() * 2) == 0 ? "head" : "body" +let damage = this.actor.system.characteristics.s.bonus + 6 + + this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name}).then(async test => { + await test.roll(); + if(test.failed) + { + await this.actor.addCondition("stunned") + this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg: true})) + } + }) \ No newline at end of file diff --git a/scripts/lQJ68n3y1xDyNicE.js b/scripts/lQJ68n3y1xDyNicE.js new file mode 100644 index 0000000..0d61d6e --- /dev/null +++ b/scripts/lQJ68n3y1xDyNicE.js @@ -0,0 +1 @@ +return !args.options.sizeModifier && args.item?.system?.attackType != "ranged" \ No newline at end of file diff --git a/scripts/lSOAZ4FG44bT4jh1.js b/scripts/lSOAZ4FG44bT4jh1.js new file mode 100644 index 0000000..fd544d6 --- /dev/null +++ b/scripts/lSOAZ4FG44bT4jh1.js @@ -0,0 +1,7 @@ +let infected = await fromUuid("Compendium.wfrp4e-core.items.V0c3qBU1CMm8bmsW") +let fear = await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn") + +let infectedData = infected.toObject(); +let fearData = fear.toObject(); +fearData.system.specification.value = 2; +this.actor.createEmbeddedDocuments("Item", [fearData, infectedData], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/lU4s3UTtBkU38djI.js b/scripts/lU4s3UTtBkU38djI.js new file mode 100644 index 0000000..ba1cf91 --- /dev/null +++ b/scripts/lU4s3UTtBkU38djI.js @@ -0,0 +1,4 @@ +this.actor.addCondition("entangled") +let msg = `${this.actor.prototypeToken.name} loses 1 Wound and gains 1 Entangled Condition.` +this.script.scriptMessage(msg) +this.actor.modifyWounds(-1) \ No newline at end of file diff --git a/scripts/lYYkGzqNshiYc7WI.js b/scripts/lYYkGzqNshiYc7WI.js new file mode 100644 index 0000000..d17b4c6 --- /dev/null +++ b/scripts/lYYkGzqNshiYc7WI.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("poisoned") +} \ No newline at end of file diff --git a/scripts/laptAldsT0Fm1rDt.js b/scripts/laptAldsT0Fm1rDt.js new file mode 100644 index 0000000..861ea5e --- /dev/null +++ b/scripts/laptAldsT0Fm1rDt.js @@ -0,0 +1,6 @@ +let blunt = await Dialog.confirm({label : "test", content :`

Apply blunt damage reduction? (-3)

`}) + +if (blunt) +{ + args.modifiers.other.push({label : this.effect.name, details : "Blunt Damage Reduction", value : -3}) +} \ No newline at end of file diff --git a/scripts/lhemR8EP5tGNKout.js b/scripts/lhemR8EP5tGNKout.js new file mode 100644 index 0000000..a9d9356 --- /dev/null +++ b/scripts/lhemR8EP5tGNKout.js @@ -0,0 +1,14 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields: {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure : "Suffer Creeping Irrationality"}}) +await test.roll(); +if (test.failed) +{ + msg = `

@UUID[${this.effect.sourceItem.uuid}]{Creeping Irratitonality} Roll: ${Math.ceil(CONFIG.Dice.randomUniform() * 10)}

` + if (test.result.roll % 11 == 0 || test.result.roll == 100) + { + msg += `

${this.actor.prototypeToken.name} also gained 1 Corruption Point. If mutating, this results in a @Table[mutatemental]{Mental Corruption}

` + let newCorruption = Number(this.actor.status.corruption.value) + 1 + this.actor.update({"system.status.corruption.value" : newCorruption}) + } + + this.script.scriptMessage(msg); +} diff --git a/scripts/ljpM7muMyxGD04EX.js b/scripts/ljpM7muMyxGD04EX.js new file mode 100644 index 0000000..50ba967 --- /dev/null +++ b/scripts/ljpM7muMyxGD04EX.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.MVI0lXcg6vvtooAF") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/lol5J6h0pErzM71s.js b/scripts/lol5J6h0pErzM71s.js new file mode 100644 index 0000000..cc986ba --- /dev/null +++ b/scripts/lol5J6h0pErzM71s.js @@ -0,0 +1 @@ +return args.weapon?.system.properties.flaws.crewed \ No newline at end of file diff --git a/scripts/lvjcddwRiN9iGruy.js b/scripts/lvjcddwRiN9iGruy.js new file mode 100644 index 0000000..1f4ca7b --- /dev/null +++ b/scripts/lvjcddwRiN9iGruy.js @@ -0,0 +1,38 @@ +let test = await this.actor.setupCharacteristic("t", { appendTitle: ` - ${this.effect.name}`, fields: { difficulty: "challenging" } }) +await test.roll(); + +if (test.failed) +{ + let ageAdded = Math.ceil(CONFIG.Dice.randomUniform() * 10) + Math.ceil(CONFIG.Dice.randomUniform() * 10) + let ws = Math.ceil(CONFIG.Dice.randomUniform() * 10) + let bs = Math.ceil(CONFIG.Dice.randomUniform() * 10) + let s = Math.ceil(CONFIG.Dice.randomUniform() * 10) + let t = Math.ceil(CONFIG.Dice.randomUniform() * 10) + let ag = Math.ceil(CONFIG.Dice.randomUniform() * 10) + let dex = Math.ceil(CONFIG.Dice.randomUniform() * 10) + + let currentAge = parseInt(this.actor.system.details.age.value) + + let inline = `@ROLL` + let msg = + `

${this.actor.prototypeToken.name} ages by ${inline.replace("@ROLL", ageAdded).replace("@TT", "2d10")} and loses

+

${inline.replace("@ROLL", ws).replace("@TT", "1d10")} Weapon Skill

+

${inline.replace("@ROLL", bs).replace("@TT", "1d10")} Ballistic Skill

+

${inline.replace("@ROLL", s).replace("@TT", "1d10")} Strength

+

${inline.replace("@ROLL", t).replace("@TT", "1d10")} Toughness

+

${inline.replace("@ROLL", ag).replace("@TT", "1d10")} Agility

+

${inline.replace("@ROLL", dex).replace("@TT", "1d10")} Dexterity

+ ` + this.script.scriptMessage(msg); + + let characteristics = duplicate(this.actor.system.characteristics) + + characteristics.ws.initial -= ws + characteristics.bs.initial -= bs + characteristics.s.initial -= s + characteristics.t.initial -= t + characteristics.ag.initial -= ag + characteristics.dex.initial -= dex + + this.actor.update({ "system.characteristics": characteristics, "data.details.age.value": ageAdded + currentAge }) +} \ No newline at end of file diff --git a/scripts/lwVhn4bSXJ3eoT9q.js b/scripts/lwVhn4bSXJ3eoT9q.js new file mode 100644 index 0000000..3a19740 --- /dev/null +++ b/scripts/lwVhn4bSXJ3eoT9q.js @@ -0,0 +1,8 @@ +if (this.item.system.weaponGroup.value == "basic") +{ + let slash = this.item.system.qualities.value.find(i => i.name == "slash") + if (slash) + { + slash.value = "2A" + } +} \ No newline at end of file diff --git a/scripts/m3qEVO5fseV6KHXa.js b/scripts/m3qEVO5fseV6KHXa.js new file mode 100644 index 0000000..ebc6391 --- /dev/null +++ b/scripts/m3qEVO5fseV6KHXa.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.qn4ZpvTQIX4rcJDl") +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/m58MpMZBblpq5LJu.js b/scripts/m58MpMZBblpq5LJu.js new file mode 100644 index 0000000..6f85774 --- /dev/null +++ b/scripts/m58MpMZBblpq5LJu.js @@ -0,0 +1,2 @@ +args.prefillModifiers.slBonus++; +args.prefillModifiers.successBonus++; diff --git a/scripts/m8qBlbH7ROoqa22o.js b/scripts/m8qBlbH7ROoqa22o.js new file mode 100644 index 0000000..17577b3 --- /dev/null +++ b/scripts/m8qBlbH7ROoqa22o.js @@ -0,0 +1 @@ +return args.options.reload \ No newline at end of file diff --git a/scripts/mBcLf11upaHS8AQq.js b/scripts/mBcLf11upaHS8AQq.js new file mode 100644 index 0000000..4234181 --- /dev/null +++ b/scripts/mBcLf11upaHS8AQq.js @@ -0,0 +1 @@ +this.actor.status.addArmour(1, {source: this.effect}) \ No newline at end of file diff --git a/scripts/mJ9eMPub4epJSf00.js b/scripts/mJ9eMPub4epJSf00.js new file mode 100644 index 0000000..4144fbb --- /dev/null +++ b/scripts/mJ9eMPub4epJSf00.js @@ -0,0 +1 @@ +return args.weapon?.system.qualities.value.find(i => i.name == "shield") && this.actor.attacker \ No newline at end of file diff --git a/scripts/mPxmCsXYirAIT913.js b/scripts/mPxmCsXYirAIT913.js new file mode 100644 index 0000000..84284a1 --- /dev/null +++ b/scripts/mPxmCsXYirAIT913.js @@ -0,0 +1,3 @@ +let key = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.characteristics, this.effect.img), 1, "Choose Characteristic"); + +this.effect.updateSource({changes : [{key : `system.characteristics.${key[0].id}.modifier`, mode : 2, value : 10}]}) \ No newline at end of file diff --git a/scripts/mRvLsSVxNyt8LVZb.js b/scripts/mRvLsSVxNyt8LVZb.js new file mode 100644 index 0000000..f68402d --- /dev/null +++ b/scripts/mRvLsSVxNyt8LVZb.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.GRRN3XAKIpEVCY7z") +let data = item.toObject(); +data.name += " (To Be Determined)" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/mTnmPcjWmvScIBWY.js b/scripts/mTnmPcjWmvScIBWY.js new file mode 100644 index 0000000..14c7aaf --- /dev/null +++ b/scripts/mTnmPcjWmvScIBWY.js @@ -0,0 +1 @@ +return args.skill?.name.includes("Channelling") || args.type == "channelling" \ No newline at end of file diff --git a/scripts/mV4Tmc0yfpL09KV7.js b/scripts/mV4Tmc0yfpL09KV7.js new file mode 100644 index 0000000..3b9f40b --- /dev/null +++ b/scripts/mV4Tmc0yfpL09KV7.js @@ -0,0 +1 @@ +args.actor.addCondition("entangled") \ No newline at end of file diff --git a/scripts/mYL4i1vNlMl4vFYy.js b/scripts/mYL4i1vNlMl4vFYy.js new file mode 100644 index 0000000..a5211a8 --- /dev/null +++ b/scripts/mYL4i1vNlMl4vFYy.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Perception") && args.skill?.name != game.i18n.localize("NAME.Track"); \ No newline at end of file diff --git a/scripts/ma0sWhebqwdRHWvY.js b/scripts/ma0sWhebqwdRHWvY.js new file mode 100644 index 0000000..c1779e5 --- /dev/null +++ b/scripts/ma0sWhebqwdRHWvY.js @@ -0,0 +1,5 @@ +if (!args.flags.trained) +{ + args.flags.trained = true; + args.fields.modifier += 10; +} \ No newline at end of file diff --git a/scripts/maKr58mvvyKxFyC3.js b/scripts/maKr58mvvyKxFyC3.js new file mode 100644 index 0000000..f941ab6 --- /dev/null +++ b/scripts/maKr58mvvyKxFyC3.js @@ -0,0 +1,2 @@ +if (args.item.type == "prayer" && (args.item.damage.value || args.item.damage.dice)) + args.item.damage.value += "+1" \ No newline at end of file diff --git a/scripts/masOBNgSi5HYkf3m.js b/scripts/masOBNgSi5HYkf3m.js new file mode 100644 index 0000000..ed60b79 --- /dev/null +++ b/scripts/masOBNgSi5HYkf3m.js @@ -0,0 +1 @@ +return args.type != "cast" && args.type != "channelling" \ No newline at end of file diff --git a/scripts/mgLGN1XPzPE4dReN.js b/scripts/mgLGN1XPzPE4dReN.js new file mode 100644 index 0000000..0433903 --- /dev/null +++ b/scripts/mgLGN1XPzPE4dReN.js @@ -0,0 +1 @@ +args.fields.slBonus--; \ No newline at end of file diff --git a/scripts/mr8qm5Bg6k1idZ6Q.js b/scripts/mr8qm5Bg6k1idZ6Q.js new file mode 100644 index 0000000..c28b926 --- /dev/null +++ b/scripts/mr8qm5Bg6k1idZ6Q.js @@ -0,0 +1 @@ +return args.item?.name == "Play (Lute)" \ No newline at end of file diff --git a/scripts/mziJBUYcsrhkdcCJ.js b/scripts/mziJBUYcsrhkdcCJ.js new file mode 100644 index 0000000..0308dbf --- /dev/null +++ b/scripts/mziJBUYcsrhkdcCJ.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/n5RJqJL9fdRIxkuN.js b/scripts/n5RJqJL9fdRIxkuN.js new file mode 100644 index 0000000..5fa0e06 --- /dev/null +++ b/scripts/n5RJqJL9fdRIxkuN.js @@ -0,0 +1,12 @@ +if (this.actor.system.status.advantage.value > 0) +{ + await this.actor.modifyAdvantage(-1); + this.script.scriptNotification("Advantage Subtracted") +} +else +{ + return this.script.scriptNotification("Not enough Advantage!", "error") +} + +let test = await this.actor.setupTrait(this.item) +await test.roll(); \ No newline at end of file diff --git a/scripts/nCWAflBj7Si2BI1Q.js b/scripts/nCWAflBj7Si2BI1Q.js new file mode 100644 index 0000000..af67a69 --- /dev/null +++ b/scripts/nCWAflBj7Si2BI1Q.js @@ -0,0 +1,4 @@ +if (args.item.type == "spell" && args.item.system.lore.value != "petty") +{ + args.item.cn.value = Math.max(4, args.item.cn.value * 2) +} \ No newline at end of file diff --git a/scripts/nD2QVg3DrPK3foMf.js b/scripts/nD2QVg3DrPK3foMf.js new file mode 100644 index 0000000..0101c82 --- /dev/null +++ b/scripts/nD2QVg3DrPK3foMf.js @@ -0,0 +1,7 @@ +args.actor.setupSkill("Dodge", { fields: { difficulty: "average" } }).then(async test => { + await test.roll(); + if (test.failed) { + await args.actor.addCondition("bleeding") + await args.actor.addCondition("entangled") + } + }) \ No newline at end of file diff --git a/scripts/nEaF3jbCiVYD8jia.js b/scripts/nEaF3jbCiVYD8jia.js new file mode 100644 index 0000000..c39fb2f --- /dev/null +++ b/scripts/nEaF3jbCiVYD8jia.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Charm") && !args.skill?.name.includes(game.i18n.localize("NAME.Lore")); \ No newline at end of file diff --git a/scripts/nGTxNWBUBgTr87wU.js b/scripts/nGTxNWBUBgTr87wU.js new file mode 100644 index 0000000..c078cd8 --- /dev/null +++ b/scripts/nGTxNWBUBgTr87wU.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.differenceSL >= 0 && args.opposedTest.result.differenceSL <= 2 && args.opposedTest.result.winner == "attacker") +{ + this.script.scriptMessage(`Becomes lodged in the armour or flesh of the opponent. See @UUID[${this.item.uuid}]{${this.item.name}}.`, speaker : {alias : this.item.name}, {blind: true, whisper : ChatMessage.getWhisperRecipients("GM")}) +} + \ No newline at end of file diff --git a/scripts/nHJdlqbOP0ECgywb.js b/scripts/nHJdlqbOP0ECgywb.js new file mode 100644 index 0000000..6bf5cf6 --- /dev/null +++ b/scripts/nHJdlqbOP0ECgywb.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.CnydL8p3PVAuF98w") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/nSXzktHyNjGUXjaw.js b/scripts/nSXzktHyNjGUXjaw.js new file mode 100644 index 0000000..33216f3 --- /dev/null +++ b/scripts/nSXzktHyNjGUXjaw.js @@ -0,0 +1 @@ +return args.item?.system.isRanged \ No newline at end of file diff --git a/scripts/nYtAjSArsNbrU2ob.js b/scripts/nYtAjSArsNbrU2ob.js new file mode 100644 index 0000000..f092926 --- /dev/null +++ b/scripts/nYtAjSArsNbrU2ob.js @@ -0,0 +1,8 @@ +if (["ag", "i", "int"].includes(args.characteristic)) +{ + args.fields.modifier -= 10; +} +else if (["wp"].includes(args.characteristic)) +{ + args.fields.modifier += 10; +} \ No newline at end of file diff --git a/scripts/naF5EWr1CBkYRZTK.js b/scripts/naF5EWr1CBkYRZTK.js new file mode 100644 index 0000000..ecdafaa --- /dev/null +++ b/scripts/naF5EWr1CBkYRZTK.js @@ -0,0 +1,26 @@ +if (args.opposedTest?.attackerTest?.item?.system?.isRanged) +{ + let choice = await Dialog.wait({ + title: this.effect.name, + content: `

Abort damage with ${this.effect.name}?`, + buttons: { + yes: { + label: "Yes", + callback: () => { + return true; + } + }, + no: { + label: "No", + callback: () => { + return false; + } + } + } + }) + + if (choice) + { + args.abort = `${this.effect.name}: Damage cancelled` + } +} \ No newline at end of file diff --git a/scripts/ncIjDE6TFx88IQA1.js b/scripts/ncIjDE6TFx88IQA1.js new file mode 100644 index 0000000..223a1a3 --- /dev/null +++ b/scripts/ncIjDE6TFx88IQA1.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Climb") || args.skill?.name == game.i18n.localize("NAME.Athletics"); \ No newline at end of file diff --git a/scripts/neaaVy6D6tfcst5P.js b/scripts/neaaVy6D6tfcst5P.js new file mode 100644 index 0000000..123137f --- /dev/null +++ b/scripts/neaaVy6D6tfcst5P.js @@ -0,0 +1 @@ +args.fields.slBonus += this.actor.characteristics.i.bonus; diff --git a/scripts/ngMm7SgtVqVovFJG.js b/scripts/ngMm7SgtVqVovFJG.js new file mode 100644 index 0000000..8d5af65 --- /dev/null +++ b/scripts/ngMm7SgtVqVovFJG.js @@ -0,0 +1,4 @@ +if (args.test.result.critical && args.test.result.critical != "Total Power") +{ + args.test.result.other.push(` Bonecrusher Critical (+20) (only if Critical Cast selected)`) +} \ No newline at end of file diff --git a/scripts/njPP9wDAsdh4WHIj.js b/scripts/njPP9wDAsdh4WHIj.js new file mode 100644 index 0000000..be455e6 --- /dev/null +++ b/scripts/njPP9wDAsdh4WHIj.js @@ -0,0 +1,4 @@ +if (args.totalWoundLoss > 0 && ["trait", "weapon"].includes(args.opposedTest.attackerTest.item?.type)) +{ + this.script.scriptMessage(`Infected: ${args.actor.name} must pass an Easy (+40) Endurance Test or gain a @UUID[Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb]{Festering Wound}`, {whisper: ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/nkbTnaeBpthyhw4J.js b/scripts/nkbTnaeBpthyhw4J.js new file mode 100644 index 0000000..da73508 --- /dev/null +++ b/scripts/nkbTnaeBpthyhw4J.js @@ -0,0 +1,6 @@ +let fortunePoints = this.effect.sourceTest.result.overcast.usage.other.current +let current = this.actor.status.fortune.value + +this.actor.update({"system.status.fortune.value" : fortunePoints + current}) + +this.script.scriptMessage(`${this.actor.prototypeToken.name} fortune points increased from ${current} to ${fortunePoints + current}`) \ No newline at end of file diff --git a/scripts/nkdKBJ8ItqWiRAWL.js b/scripts/nkdKBJ8ItqWiRAWL.js new file mode 100644 index 0000000..da8ed4c --- /dev/null +++ b/scripts/nkdKBJ8ItqWiRAWL.js @@ -0,0 +1,21 @@ +// Apply changes when the mask is worn + +if (args.equipped) { + this.actor.createEmbeddedDocuments("ActiveEffect", [this.item.effects.contents[1]?.convertToApplied()]) + this.script.scriptMessage(`${this.actor.name} dons the ${this.item.name}.
+ They gain +50 to Swim Tests and can breathe underwater.
+ If they wear the mask for more than an hour or benefit from any of its effects, they are exposed to @Corruption[moderate]{Moderate Corruption}. + `, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} + +// Notify of lingering effects when mask is removed +else if (!args.equipped) +{ + await this.item.effects.contents[0].delete(); + await this.item.update({name : this.item.name += " (Used)"}) + this.script.scriptMessage(`${this.item.name} on ${this.actor.name} has been taken off and loses its properties. However, the effects last for [[1d10+4]] days, after which they should be manually removed.`, + {whisper: ChatMessage.getWhisperRecipients("GM")} + ) + +} diff --git a/scripts/nuIpPD4uaZRuJni8.js b/scripts/nuIpPD4uaZRuJni8.js new file mode 100644 index 0000000..43c5bf3 --- /dev/null +++ b/scripts/nuIpPD4uaZRuJni8.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.qdMbxW09FUoYBzmB") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/nvrFhHHVq3KzirlR.js b/scripts/nvrFhHHVq3KzirlR.js new file mode 100644 index 0000000..ba0fdde --- /dev/null +++ b/scripts/nvrFhHHVq3KzirlR.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Stealth")) diff --git a/scripts/nxNqWmmF6mJTnrLo.js b/scripts/nxNqWmmF6mJTnrLo.js new file mode 100644 index 0000000..142e606 --- /dev/null +++ b/scripts/nxNqWmmF6mJTnrLo.js @@ -0,0 +1 @@ +return args.weapon?.system.usesHands.includes(this.item.system.location.key); \ No newline at end of file diff --git a/scripts/nzh8d46l1ikhkz8Q.js b/scripts/nzh8d46l1ikhkz8Q.js new file mode 100644 index 0000000..a11f1bf --- /dev/null +++ b/scripts/nzh8d46l1ikhkz8Q.js @@ -0,0 +1 @@ +return (args.type == "weapon" && (args.item.system.weaponGroup.value == "blackpowder" || args.item.system.weaponGroup.value == "engineering")) || (args.type == "cast" && args.item.system.lore.value == "fire") \ No newline at end of file diff --git a/scripts/o1zD8mej9TWKNxUq.js b/scripts/o1zD8mej9TWKNxUq.js new file mode 100644 index 0000000..9cc92e5 --- /dev/null +++ b/scripts/o1zD8mej9TWKNxUq.js @@ -0,0 +1 @@ +args.fields.slBonus -= 1; \ No newline at end of file diff --git a/scripts/o3JUBKLvE6bBxK2n.js b/scripts/o3JUBKLvE6bBxK2n.js new file mode 100644 index 0000000..9ccae0a --- /dev/null +++ b/scripts/o3JUBKLvE6bBxK2n.js @@ -0,0 +1,20 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), { fields: { difficulty: "average" } }) +await test.roll(); +if (test.failed) +{ + await this.actor.addCondition("prone") + let injury = await fromUuid("Compendium.wfrp4e-core.items.ZhMADOqoo0y8Q9bx"); + injury = injury.toObject() + let toes = Math.clamped(Math.abs(test.result.SL) + 1, 1, 5) + injury.system.location.key = this.item.system.location.key[0] + injury.system.location.value + if (injury.system.location.key[0] == "r") + { + injury.system.location.value = `${toes} Right ${injury.system.location.value}s` + } + else if (injury.system.location.key[0] == "l") + { + injury.system.location.value = `${toes} Left ${injury.system.location.value}s` + } + setProperty(injury, "system.wfrp4e.count", toes) + this.actor.createEmbeddedDocuments("Item", [injury]) +} \ No newline at end of file diff --git a/scripts/o88xuUConwt0vFLw.js b/scripts/o88xuUConwt0vFLw.js new file mode 100644 index 0000000..ae9e06f --- /dev/null +++ b/scripts/o88xuUConwt0vFLw.js @@ -0,0 +1,5 @@ +let points = this.effect.sourceTest.result.overcast.usage.other.current; + +this.actor.update({"system.status.fortune.value" : this.actor.system.status.fortune.value + points}); + +this.script.scriptMessage(`Gained ${points} Fortune Points`) \ No newline at end of file diff --git a/scripts/oDNfCNyt5KaUYmg2.js b/scripts/oDNfCNyt5KaUYmg2.js new file mode 100644 index 0000000..7efcdf8 --- /dev/null +++ b/scripts/oDNfCNyt5KaUYmg2.js @@ -0,0 +1,10 @@ +if(args.opposedTest.result.winner == "defender") +{ + let roll = Math.ceil(CONFIG.Dice.randomUniform() * 10) + let msg = `Rolled ${roll}.` + if (roll >= 7) + { + msg = `Attack hits with an SL of ${roll - 6}.` + } + this.script.scriptMessage(msg, {blind: true, whisper : ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/oEsUsI74yGTZ9CwU.js b/scripts/oEsUsI74yGTZ9CwU.js new file mode 100644 index 0000000..c57ed37 --- /dev/null +++ b/scripts/oEsUsI74yGTZ9CwU.js @@ -0,0 +1 @@ +return args.item?.name == game.i18n.localize("NAME.CharmAnimal") \ No newline at end of file diff --git a/scripts/oGdsGPgJWcyWkiWl.js b/scripts/oGdsGPgJWcyWkiWl.js new file mode 100644 index 0000000..b6511a1 --- /dev/null +++ b/scripts/oGdsGPgJWcyWkiWl.js @@ -0,0 +1,6 @@ +this.actor.addCondition("broken") + +if (this.actor.has(game.i18n.localize("NAME.Undead"))) +{ + this.script.scriptMessage(await this.actor.applyBasicDamage(this.effect.sourceTest.result.damage, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg: true})) +} \ No newline at end of file diff --git a/scripts/oHenUKtaS3jT5xQn.js b/scripts/oHenUKtaS3jT5xQn.js new file mode 100644 index 0000000..c399b90 --- /dev/null +++ b/scripts/oHenUKtaS3jT5xQn.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.4xF7M6ylIiGntekh") +item = item.toObject() +item.name = this.effect.name +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) diff --git a/scripts/oPg4se8iQRD14kmB.js b/scripts/oPg4se8iQRD14kmB.js new file mode 100644 index 0000000..a61008d --- /dev/null +++ b/scripts/oPg4se8iQRD14kmB.js @@ -0,0 +1,27 @@ +let filters = [ + { + property : "type", + value : "weapon" + }, + { + property : "system.weaponGroup.value", + value : ["twohanded", "polearm"] + } +] + +let items = await game.wfrp4e.apps.ItemDialog.createFromFilters(filters, 1, "Choose an appropriate Polearm or Two-Handed Weapon") +items = items.map(i => i.toObject()) + +items.forEach(i => equip(i)) + +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/oV81zgbZsuTFG6L2.js b/scripts/oV81zgbZsuTFG6L2.js new file mode 100644 index 0000000..c49d598 --- /dev/null +++ b/scripts/oV81zgbZsuTFG6L2.js @@ -0,0 +1,5 @@ +let caster = this.effect.sourceActor; + +this.actor.modifyWounds(caster.system.characteristics.fel.bonus); + +this.script.scriptMessage(`Healed ${caster.system.characteristics.fel.bonus} Wounds`); \ No newline at end of file diff --git a/scripts/oW1gtYVT5nrxDjM7.js b/scripts/oW1gtYVT5nrxDjM7.js new file mode 100644 index 0000000..0f97f92 --- /dev/null +++ b/scripts/oW1gtYVT5nrxDjM7.js @@ -0,0 +1 @@ +return args.characteristic != "ag" \ No newline at end of file diff --git a/scripts/oWM43EdUiyHgUlfW.js b/scripts/oWM43EdUiyHgUlfW.js new file mode 100644 index 0000000..2c1af1d --- /dev/null +++ b/scripts/oWM43EdUiyHgUlfW.js @@ -0,0 +1,2 @@ +if (args.test.item && args.test.item.name == game.i18n.localize("NAME.ConsumeAlcohol")) + args.test.preData.canReverse = true \ No newline at end of file diff --git a/scripts/oWa7RkScnl6lR5vd.js b/scripts/oWa7RkScnl6lR5vd.js new file mode 100644 index 0000000..cba5818 --- /dev/null +++ b/scripts/oWa7RkScnl6lR5vd.js @@ -0,0 +1,11 @@ +if (args.test.characteristicKey == "wp") +{ + if (args.test.failed) + { + let item = await fromUuid("Compendium.wfrp4e-core.items.AGcJl5rHjkyIQBPP") + let data = item.toObject(); + this.actor.createEmbeddedDocuments("Item", [data]) + + this.script.scriptMessage(`Willpower Test failed, ${this.actor.prototypeToken.name} gains @UUID[Compendium.wfrp4e-core.items.AGcJl5rHjkyIQBPP] for [[1d10]] hours`) + } +} \ No newline at end of file diff --git a/scripts/obIXhQXKFyyQoNNV.js b/scripts/obIXhQXKFyyQoNNV.js new file mode 100644 index 0000000..2df4ad3 --- /dev/null +++ b/scripts/obIXhQXKFyyQoNNV.js @@ -0,0 +1,7 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {appendTitle: ` - ${this.effect.name}`, fields: { difficulty: "average" } }).then(async test => { + await test.roll() + if (test.failed) { + this.actor.modifyWounds(-1); + this.script.scriptMessage("Takes 1 Damage") + } +}) \ No newline at end of file diff --git a/scripts/ocBW3osTFnb5JCfe.js b/scripts/ocBW3osTFnb5JCfe.js new file mode 100644 index 0000000..59d46c5 --- /dev/null +++ b/scripts/ocBW3osTFnb5JCfe.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.MVI0lXcg6vvtooAF") +let data = item.toObject() +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) diff --git a/scripts/ofddAHvzn1xUueSG.js b/scripts/ofddAHvzn1xUueSG.js new file mode 100644 index 0000000..1b43518 --- /dev/null +++ b/scripts/ofddAHvzn1xUueSG.js @@ -0,0 +1,15 @@ +args.AP.head.value -= tinDifference(args.AP.head.layers) +args.AP.body.value -= tinDifference(args.AP.body.layers) +args.AP.lArm.value -= tinDifference(args.AP.lArm.layers) +args.AP.rArm.value -= tinDifference(args.AP.rArm.layers) +args.AP.rLeg.value -= tinDifference(args.AP.rLeg.layers) +args.AP.lLeg.value -= tinDifference(args.AP.lLeg.layers) + +function tinDifference(layers) +{ + let metalAP = layers.filter(i => i.metal).reduce((prev, current) => prev + current.value, 0) + + let tinAP = layers.filter(i => i.metal).reduce((prev, current) => prev + Math.max(0, current.value - 2), 0) + + return metalAP - tinAP; +} \ No newline at end of file diff --git a/scripts/ogJBAXTXyhTqACPO.js b/scripts/ogJBAXTXyhTqACPO.js new file mode 100644 index 0000000..2b4b34e --- /dev/null +++ b/scripts/ogJBAXTXyhTqACPO.js @@ -0,0 +1 @@ +return args.item?.system.attackType != "melee" \ No newline at end of file diff --git a/scripts/ohl803m0tUwNfKAk.js b/scripts/ohl803m0tUwNfKAk.js new file mode 100644 index 0000000..c503b57 --- /dev/null +++ b/scripts/ohl803m0tUwNfKAk.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let data = item.toObject(); +data.system.specification.value = 5 - this.actor.characteristics.s.bonus +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/okW06V9UiPC4Vcrn.js b/scripts/okW06V9UiPC4Vcrn.js new file mode 100644 index 0000000..f8d4264 --- /dev/null +++ b/scripts/okW06V9UiPC4Vcrn.js @@ -0,0 +1,86 @@ +let characteristics = { + "ws" : 5, + "bs" : 0, + "s" : 5, + "t" : 5, + "i" : 10, + "ag" : 0, + "dex" : 0, + "int" : 0, + "wp" : 5, + "fel" : 5 +} +let skills = ["Cool", "Dodge"] +let skillAdvancements = [10, 10] +let talents = ["Combat Reflexes", "Resolute"] +let trappings = ["Leather Jack", "Leather Leggings", "Leather Skullcap", "Hand Weapon", "Spear", "Shield"] +let items = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/okr3TtzpFoefUuJS.js b/scripts/okr3TtzpFoefUuJS.js new file mode 100644 index 0000000..ef551e2 --- /dev/null +++ b/scripts/okr3TtzpFoefUuJS.js @@ -0,0 +1,4 @@ +let item = await fromUuid('Compendium.wfrp4e-core.items.EaqlLRQigwnsEAXX') +let data = item.toObject(); +data.system.location.value = "Collar Bone" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/oqgd9G6oI1ncPYLw.js b/scripts/oqgd9G6oI1ncPYLw.js new file mode 100644 index 0000000..067d1ec --- /dev/null +++ b/scripts/oqgd9G6oI1ncPYLw.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.CV9btQn09S9Fn8Jk"); +this.actor.createEmbeddedDocuments("Item", [item.toObject()], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/p222EiR8RRtlPm31.js b/scripts/p222EiR8RRtlPm31.js new file mode 100644 index 0000000..f757919 --- /dev/null +++ b/scripts/p222EiR8RRtlPm31.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}}) +await test.roll(); +return test.failed; \ No newline at end of file diff --git a/scripts/pAgiAGyaLJY10894.js b/scripts/pAgiAGyaLJY10894.js new file mode 100644 index 0000000..13da9da --- /dev/null +++ b/scripts/pAgiAGyaLJY10894.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Charm"); \ No newline at end of file diff --git a/scripts/pBMioPUtDn1mk9f5.js b/scripts/pBMioPUtDn1mk9f5.js new file mode 100644 index 0000000..a13d279 --- /dev/null +++ b/scripts/pBMioPUtDn1mk9f5.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.5KP9sOoLSGvj9EXp") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/pG5OVokZzCRHIrwz.js b/scripts/pG5OVokZzCRHIrwz.js new file mode 100644 index 0000000..cf36c5e --- /dev/null +++ b/scripts/pG5OVokZzCRHIrwz.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.mgeiaDZXei7JBEgo") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/pHyXdPnWwoFrUA5n.js b/scripts/pHyXdPnWwoFrUA5n.js new file mode 100644 index 0000000..954e03e --- /dev/null +++ b/scripts/pHyXdPnWwoFrUA5n.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Entertain")); \ No newline at end of file diff --git a/scripts/pLKv4moua6XhNdmA.js b/scripts/pLKv4moua6XhNdmA.js new file mode 100644 index 0000000..edd666b --- /dev/null +++ b/scripts/pLKv4moua6XhNdmA.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.1dUizIgLBgn4jICC"); +let data = item.toObject(); +data.name += " (Woodlands)"; +this.actor.createEmbeddedDocuments("Item", Array(this.effect.sourceTest.result.overcast.usage.other.current).fill(data), {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/pNPjXEoQGHLKzq0r.js b/scripts/pNPjXEoQGHLKzq0r.js new file mode 100644 index 0000000..26641f9 --- /dev/null +++ b/scripts/pNPjXEoQGHLKzq0r.js @@ -0,0 +1,12 @@ +let talent = this.actor.has("Arcane Magic (Light)", "talent") +let demon = this.actor.has(game.i18n.localize("NAME.Daemonic")) + +if (!talent) +{ + await this.actor.addCondition("blinded") +} + +if (demon) +{ + await this.actor.addCondition("stunned") +} \ No newline at end of file diff --git a/scripts/pPV9oEydXb7oi6jX.js b/scripts/pPV9oEydXb7oi6jX.js new file mode 100644 index 0000000..fe3715e --- /dev/null +++ b/scripts/pPV9oEydXb7oi6jX.js @@ -0,0 +1,4 @@ + if (args.totalWoundLoss > 0) + { + args.actor.addCondition('ablaze') + } \ No newline at end of file diff --git a/scripts/pR4Q2OnPxXtwRVli.js b/scripts/pR4Q2OnPxXtwRVli.js new file mode 100644 index 0000000..31251d6 --- /dev/null +++ b/scripts/pR4Q2OnPxXtwRVli.js @@ -0,0 +1,12 @@ +let criticals = this.actor.itemTypes.critical; + +if (criticals.length) +{ + this.script.scriptNotification("Cannot suffer Critical Wounds"); + this.actor.deleteEmbeddedDocuments("Item", criticals.map(i => i.id)) +} + +if (getProperty(args.data, "system.status.wounds.value") == 0) +{ + this.script.scriptNotification(`Dormant for ${Math.ceil(CONFIG.Dice.randomUniform() * 10)} Rounds`) +} \ No newline at end of file diff --git a/scripts/pnB9TzSEytkxk3Rb.js b/scripts/pnB9TzSEytkxk3Rb.js new file mode 100644 index 0000000..33f3dcc --- /dev/null +++ b/scripts/pnB9TzSEytkxk3Rb.js @@ -0,0 +1 @@ +return this.actor.hasSystemEffect("infighting") \ No newline at end of file diff --git a/scripts/pq1YQffxtOcqCRTn.js b/scripts/pq1YQffxtOcqCRTn.js new file mode 100644 index 0000000..b6f09a8 --- /dev/null +++ b/scripts/pq1YQffxtOcqCRTn.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {appendTitle: ` - ${this.effect.name}`}) +await test.roll(); +if (!test.succeeded) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/px7eEdhOEt7zOTrq.js b/scripts/px7eEdhOEt7zOTrq.js new file mode 100644 index 0000000..0e4b4f9 --- /dev/null +++ b/scripts/px7eEdhOEt7zOTrq.js @@ -0,0 +1 @@ +return ["int", "t", "wp", "i"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/pzimrxrqpv282Oqb.js b/scripts/pzimrxrqpv282Oqb.js new file mode 100644 index 0000000..6c30f0d --- /dev/null +++ b/scripts/pzimrxrqpv282Oqb.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.TaYriYcJkFuIdBKp") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}); diff --git a/scripts/pzknBcJtZWeliE27.js b/scripts/pzknBcJtZWeliE27.js new file mode 100644 index 0000000..1fcf80e --- /dev/null +++ b/scripts/pzknBcJtZWeliE27.js @@ -0,0 +1 @@ +return args.item?.name == game.i18n.localize("NAME.Leadership") || args.item?.name == game.i18n.localize("NAME.Cool") \ No newline at end of file diff --git a/scripts/q0LvphC8RDSyR0oY.js b/scripts/q0LvphC8RDSyR0oY.js new file mode 100644 index 0000000..3e6ac9e --- /dev/null +++ b/scripts/q0LvphC8RDSyR0oY.js @@ -0,0 +1,8 @@ +let choice = await ItemDialog.create(ItemDialog.objectToArray({ + ws : game.wfrp4e.config.characteristics.ws, + t : game.wfrp4e.config.characteristics.t, + ag : game.wfrp4e.config.characteristics.ag, + wp : game.wfrp4e.config.characteristics.wp +}, this.effect.img), 1, "Choose Characteristic"); + +this.effect.updateSource({"flags.wfrp4e.characteristic" : choice[0].id}) \ No newline at end of file diff --git a/scripts/q3nRyXaxksdCiLFM.js b/scripts/q3nRyXaxksdCiLFM.js new file mode 100644 index 0000000..49cee4f --- /dev/null +++ b/scripts/q3nRyXaxksdCiLFM.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.j6v78dnOOdCB6c3d") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/qAEZgtu5CrfUkxhx.js b/scripts/qAEZgtu5CrfUkxhx.js new file mode 100644 index 0000000..c5c12b1 --- /dev/null +++ b/scripts/qAEZgtu5CrfUkxhx.js @@ -0,0 +1,16 @@ +if (args.test.options.staunchBleeding) +{ + if (args.test.succeeded) + { + let staunch = Number(args.test.result.SL) + 1 + if (args.test.options.fieldDressing && args.test.result.reversed) + { + staunch = Math.min(1, Number(args.test.result.SL)) + 1 + } + args.test.result.other.push(`${this.actor.name} removed ${staunch} Bleeding conditions from the patient.`) + } + else if (this.actor.characteristics.int.bonus + Number(args.test.result.SL) < 0) + { + args.test.result.other.push(`The patient contracts a @UUID[Compendium.wfrp4e-core.items.Item.1hQuVFZt9QnnbWzg]{Minor Infection}.`) + } +} \ No newline at end of file diff --git a/scripts/qK4q4o6cQhcGzFX3.js b/scripts/qK4q4o6cQhcGzFX3.js new file mode 100644 index 0000000..e7c6e3b --- /dev/null +++ b/scripts/qK4q4o6cQhcGzFX3.js @@ -0,0 +1,7 @@ +let fear = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn") +let leader = await fromUuid("Compendium.wfrp4e-core.items.Item.vCgEAetBMngR53aT") +let fearData = fear.toObject(); +let leaderData = leader.toObject(); +fearData.system.specification.value = this.effect.sourceTest.result.overcast.usage.other.current; +talents = new Array(1 + this.effect.sourceTest.result.overcast.available).fill(leaderData); // Assume any unused overcast is for war leader +this.actor.createEmbeddedDocuments("Item", [fearData].concat(talents), {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/qSwCYMMiIHmSV1X5.js b/scripts/qSwCYMMiIHmSV1X5.js new file mode 100644 index 0000000..1379278 --- /dev/null +++ b/scripts/qSwCYMMiIHmSV1X5.js @@ -0,0 +1,13 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + let effectData = this.item.effects.contents[0].convertToApplied(); + effectData.flags.wfrp4e.sourceItem = this.item.uuid + effectData.duration.seconds = 10800 + actor.applyEffect({effectData : [effectData]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/qT0WBPxLMMO9gvCd.js b/scripts/qT0WBPxLMMO9gvCd.js new file mode 100644 index 0000000..fd89c3b --- /dev/null +++ b/scripts/qT0WBPxLMMO9gvCd.js @@ -0,0 +1,4 @@ +if (!this.actor.has("Night Vision") && !this.actor.has("Night Vision", "talent") && !this.actor.hasCondition("blinded")) +{ + this.actor.addCondition("blinded", 1, {"flags.wfrp4e.nightshroud" : true}) +} \ No newline at end of file diff --git a/scripts/qUwnVlWpsmDom3RK.js b/scripts/qUwnVlWpsmDom3RK.js new file mode 100644 index 0000000..e82109e --- /dev/null +++ b/scripts/qUwnVlWpsmDom3RK.js @@ -0,0 +1 @@ +args.fields.modifier -= 5; \ No newline at end of file diff --git a/scripts/qZschZU0nee0kJlk.js b/scripts/qZschZU0nee0kJlk.js new file mode 100644 index 0000000..0064f3f --- /dev/null +++ b/scripts/qZschZU0nee0kJlk.js @@ -0,0 +1 @@ +args.fields.modifier -= 30; \ No newline at end of file diff --git a/scripts/qaVde0sTuMBRi2nl.js b/scripts/qaVde0sTuMBRi2nl.js new file mode 100644 index 0000000..2bd32fd --- /dev/null +++ b/scripts/qaVde0sTuMBRi2nl.js @@ -0,0 +1 @@ +return ["NAME.Evaluate", "NAME.Gamble"].map(i => game.i18n.localize(i)).includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/qcyl98GYD55BkJsD.js b/scripts/qcyl98GYD55BkJsD.js new file mode 100644 index 0000000..510b62f --- /dev/null +++ b/scripts/qcyl98GYD55BkJsD.js @@ -0,0 +1,2 @@ +this.actor.status.encumbrance.state = 0; +this.actor.status.encumbrance.pct = 0; \ No newline at end of file diff --git a/scripts/qijgjcOBCDmhglRX.js b/scripts/qijgjcOBCDmhglRX.js new file mode 100644 index 0000000..49dfaeb --- /dev/null +++ b/scripts/qijgjcOBCDmhglRX.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.SleightOfHand"); \ No newline at end of file diff --git a/scripts/qjli5evn8UA9uTeZ.js b/scripts/qjli5evn8UA9uTeZ.js new file mode 100644 index 0000000..4f6fabe --- /dev/null +++ b/scripts/qjli5evn8UA9uTeZ.js @@ -0,0 +1 @@ +return args.actor.uuid == this.effect.sourceActor.uuid; \ No newline at end of file diff --git a/scripts/qmOt7h17hGAKqQe0.js b/scripts/qmOt7h17hGAKqQe0.js new file mode 100644 index 0000000..cd2dd07 --- /dev/null +++ b/scripts/qmOt7h17hGAKqQe0.js @@ -0,0 +1,24 @@ + +let choice = await Dialog.wait({ + title: this.effect.name, + content: `

${this.effect.name}: Is this a ranged or magical attack that orignates outside the Dome?

`, + buttons: { + yes: { + label: "Yes", + callback: () => { + return true; + } + }, + no: { + label: "No", + callback: () => { + return false; + } + } + } +}) + +if (choice) +{ + args.ward = 6; +} \ No newline at end of file diff --git a/scripts/qu194dVXm9Vx1TGk.js b/scripts/qu194dVXm9Vx1TGk.js new file mode 100644 index 0000000..c99393f --- /dev/null +++ b/scripts/qu194dVXm9Vx1TGk.js @@ -0,0 +1,10 @@ +if (args.test.options.useOnesSupportive && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target)) +{ + +let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10) +let ones = Number(args.test.result.roll.toString().split("").pop()) + +if (ones > SL) + args.test.data.result.SL = "+" + (ones + args.test.successBonus + args.test.slBonus) + args.test.result.other.push(`${this.effect.name}: Used unit dice as SL`) +} \ No newline at end of file diff --git a/scripts/quPcuKsq2fcild4a.js b/scripts/quPcuKsq2fcild4a.js new file mode 100644 index 0000000..3ebda0b --- /dev/null +++ b/scripts/quPcuKsq2fcild4a.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "easy"}, context: {failure : `${this.effect.name}: Vomit!`} }) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/qxzhPtysAjPWspKf.js b/scripts/qxzhPtysAjPWspKf.js new file mode 100644 index 0000000..934561e --- /dev/null +++ b/scripts/qxzhPtysAjPWspKf.js @@ -0,0 +1,4 @@ +if (this.actor.has("Undead") || this.actor.has("Daemonic")) +{ + this.script.scriptNotification(`Cannot enter ${this.effect.name}!`); +} \ No newline at end of file diff --git a/scripts/r6hi5vMdLhTaaPfb.js b/scripts/r6hi5vMdLhTaaPfb.js new file mode 100644 index 0000000..c37780d --- /dev/null +++ b/scripts/r6hi5vMdLhTaaPfb.js @@ -0,0 +1 @@ +args.actor.details.move.value += this.effect.sourceTest.result.overcast.usage.other.current \ No newline at end of file diff --git a/scripts/rCh3ltUrUMovd2Kc.js b/scripts/rCh3ltUrUMovd2Kc.js new file mode 100644 index 0000000..4b1b1b1 --- /dev/null +++ b/scripts/rCh3ltUrUMovd2Kc.js @@ -0,0 +1,5 @@ +if (this.actor.hasCondition("surprised")) +{ + this.script.scriptNotification("Cannot be surprised"); + this.actor.removeCondition("surprised"); +} \ No newline at end of file diff --git a/scripts/rF0Z3hTUUnSxL3Mq.js b/scripts/rF0Z3hTUUnSxL3Mq.js new file mode 100644 index 0000000..93d9ab0 --- /dev/null +++ b/scripts/rF0Z3hTUUnSxL3Mq.js @@ -0,0 +1,37 @@ +let armour = (await fromUuid("Compendium.wfrp4e-core.items.VUJUZVN3VYhOaPjj")).toObject() +let bite = (await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv")).toObject() +let fear = (await fromUuid("Compendium.wfrp4e-core.items.pTorrE0l3VybAbtn")).toObject() +let nightVision = (await fromUuid("Compendium.wfrp4e-core.items.FmHDbCOy3pH8yKhm")).toObject() +let tracker = (await fromUuid("Compendium.wfrp4e-core.items.ClOlztW6hH8rslbp")).toObject() +let weapon = (await fromUuid("Compendium.wfrp4e-core.items.AtpAudHA4ybXVlWM")).toObject() + +armour.name = "Armour (Hide)" +armour.system.specification.value = 2 +bite.system.specification.value = 3 +fear.system.specification.value = 2 +weapon.system.specification.value = 4 +let items = [armour, bite, fear, nightVision, tracker, weapon] + + +let belligerent = (await fromUuid("Compendium.wfrp4e-core.items.GbDyBCu8ZjDp6dkj")).toObject()//{Belligerent} +let bestial = (await fromUuid("Compendium.wfrp4e-core.items.AGcJl5rHjkyIQBPP")).toObject()//{Bestial} +let big = (await fromUuid("Compendium.wfrp4e-core.items.a8MC97PLzl10WocT")).toObject()//{Big} +let blessed = (await fromUuid("Compendium.wfrp4e-core.items.5muSFXd6oc760uVj")).toObject()//{Blessed (Ulric)} +let champion = (await fromUuid("Compendium.wfrp4e-core.items.4mF5Sp3t09kZhBYc")).toObject()//{Champion} +let die = (await fromUuid("Compendium.wfrp4e-core.items.UsJ2uIOOtHA7JqD5")).toObject()//{Die Hard} +let fast = (await fromUuid("Compendium.wfrp4e-core.items.9MjH4xyVrd3Inzak")).toObject()//{Fast} +let frenzy = (await fromUuid("Compendium.wfrp4e-core.items.yRhhOlt18COq4e1q")).toObject()//{Frenzy} +let immunity = (await fromUuid("Compendium.wfrp4e-core.items.IAWyzDfC286a9MPz")).toObject()//{Immunity to Psychology} +let regenerate = (await fromUuid("Compendium.wfrp4e-core.items.SfUUdOGjdYpr3KSR")).toObject()//{Regenerate} +let size = (await fromUuid("Compendium.wfrp4e-core.items.8slW8CJ2oVTxeQ6q")).toObject()//{Size (Large)} + +blessed.system.specification.value = "Ulric" +size.system.specification.value = "Large" + +let optional = [belligerent, bestial, big, blessed, champion, die, fast, frenzy, immunity, regenerate, size]; + +let chosen = await ItemDialog.create(optional, "unlimited", "Choose Optional Traits"); + +items = items.concat(chosen || []) +this.script.scriptNotification(`Adding ${items.map(i => i.name).join(", ")}`); +this.actor.createEmbeddedDocuments("Item", items, {fromEffect : this.effect.id}) diff --git a/scripts/rIISfbCShejmJNKw.js b/scripts/rIISfbCShejmJNKw.js new file mode 100644 index 0000000..d2d5e54 --- /dev/null +++ b/scripts/rIISfbCShejmJNKw.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.oRx92ByVNEBN6YkK") +let data = item.toObject() +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) diff --git a/scripts/rLMaVNEGdZ6xj5Au.js b/scripts/rLMaVNEGdZ6xj5Au.js new file mode 100644 index 0000000..bf2dfbe --- /dev/null +++ b/scripts/rLMaVNEGdZ6xj5Au.js @@ -0,0 +1 @@ +return !["i", "int", "fel"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/rRfff55c7elyvbCb.js b/scripts/rRfff55c7elyvbCb.js new file mode 100644 index 0000000..9756192 --- /dev/null +++ b/scripts/rRfff55c7elyvbCb.js @@ -0,0 +1 @@ +return this.actor.flags.useless[this.item.system.location.key] && args.weapon?.system.usesHands.includes(this.item.system.location.key[0] + "Arm") \ No newline at end of file diff --git a/scripts/rUGSx06BuBvX9kgf.js b/scripts/rUGSx06BuBvX9kgf.js new file mode 100644 index 0000000..8c3a76f --- /dev/null +++ b/scripts/rUGSx06BuBvX9kgf.js @@ -0,0 +1,9 @@ +if (args.test.result.charging) +{ + args.test.result.damage += 1 + args.test.result.additionalDamage += 1 + if (!args.test.result.resolute) { + args.test.result.breakdown.damage.other.push({label : this.effect.name, value : this.item.Advances}); + args.test.result.resolute = true // Prevent duplicate messages + } +} diff --git a/scripts/rVpPNILEzWL9lj6b.js b/scripts/rVpPNILEzWL9lj6b.js new file mode 100644 index 0000000..6007696 --- /dev/null +++ b/scripts/rVpPNILEzWL9lj6b.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.kJNAY1YRaCy9IgmT") +let terrorTraitItem = item.toObject() +terrorTraitItem.system.specification.value = Number(this.effect.item.system.specification.value) +this.actor.createEmbeddedDocuments("Item", [terrorTraitItem]); \ No newline at end of file diff --git a/scripts/rXMylpnEtZpwou6x.js b/scripts/rXMylpnEtZpwou6x.js new file mode 100644 index 0000000..d0c2d7f --- /dev/null +++ b/scripts/rXMylpnEtZpwou6x.js @@ -0,0 +1,8 @@ +this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty : "average"}}).then(async test => +{ + await test.roll() + if (test.failed) + { + this.actor.addCondition("fatigued") + } +}) \ No newline at end of file diff --git a/scripts/ramav4ymrDDkPKK4.js b/scripts/ramav4ymrDDkPKK4.js new file mode 100644 index 0000000..639558d --- /dev/null +++ b/scripts/ramav4ymrDDkPKK4.js @@ -0,0 +1,9 @@ +if (this.actor.hasCondition("bleeding")) +{ + this.actor.removeCondition("bleeding"); + this.script.scriptNotification("Removed 1 Bleeding Condition") +} +else +{ + this.script.scriptNotification("No Bleeding Conditions"); +} \ No newline at end of file diff --git a/scripts/ratP9ByLjQPiLlFK.js b/scripts/ratP9ByLjQPiLlFK.js new file mode 100644 index 0000000..5e33cd1 --- /dev/null +++ b/scripts/ratP9ByLjQPiLlFK.js @@ -0,0 +1 @@ +args.data.canReverse = true \ No newline at end of file diff --git a/scripts/rdaMhMyHrJjQ6vVC.js b/scripts/rdaMhMyHrJjQ6vVC.js new file mode 100644 index 0000000..f5d1678 --- /dev/null +++ b/scripts/rdaMhMyHrJjQ6vVC.js @@ -0,0 +1 @@ +game.wfrp4e.utility.postFear(this.item.Advances, this.actor.name) \ No newline at end of file diff --git a/scripts/re1UFtxvRRjpPB7Z.js b/scripts/re1UFtxvRRjpPB7Z.js new file mode 100644 index 0000000..332391e --- /dev/null +++ b/scripts/re1UFtxvRRjpPB7Z.js @@ -0,0 +1,13 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.nF5z1OEhpi4t6a6S"); +let data = item.toObject(); +data.system.location.key = this.item.system.location.key +if (data.system.location.key[0] == "r") +{ + data.system.location.value = "Right Ankle" +} +else if (data.system.location.key[0] == "l") +{ + data.system.location.value = "Left Ankle" +} + +this.actor.createEmbeddedDocuments("Item", [data], {skipLocationValue : true, fromEffect: this.effect.id}) diff --git a/scripts/red2bt4PGgIWAdTR.js b/scripts/red2bt4PGgIWAdTR.js new file mode 100644 index 0000000..c4ba998 --- /dev/null +++ b/scripts/red2bt4PGgIWAdTR.js @@ -0,0 +1,14 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + let effectData = this.item.effects.contents[0].convertToApplied(); + let minutes = Math.ceil(CONFIG.Dice.randomUniform() * 10) * 10; + effectData.duration.seconds = 60 * minutes + this.script.scriptMessage(`Duration: ${minutes} minutes`, {whisper : ChatMessage.getWhisperRecipients("GM")}) + actor.applyEffect({effectData : [effectData]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/rgSwSeB3shIMVMb6.js b/scripts/rgSwSeB3shIMVMb6.js new file mode 100644 index 0000000..2532014 --- /dev/null +++ b/scripts/rgSwSeB3shIMVMb6.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.x0WMGwuQzReXcQrs") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}); \ No newline at end of file diff --git a/scripts/rnioLwiJP7ps5Jwy.js b/scripts/rnioLwiJP7ps5Jwy.js new file mode 100644 index 0000000..7163d7f --- /dev/null +++ b/scripts/rnioLwiJP7ps5Jwy.js @@ -0,0 +1,4 @@ +if (args.item.type == "skill" && args.item.name == "Melee (Basic)") +{ + args.item.system.modifier.value += 30; +} \ No newline at end of file diff --git a/scripts/roKvPHDSpX4IV11C.js b/scripts/roKvPHDSpX4IV11C.js new file mode 100644 index 0000000..2210782 --- /dev/null +++ b/scripts/roKvPHDSpX4IV11C.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Perform")) && args.characteristic != "ag" \ No newline at end of file diff --git a/scripts/rpxQU26BU7nwjtqY.js b/scripts/rpxQU26BU7nwjtqY.js new file mode 100644 index 0000000..85e811c --- /dev/null +++ b/scripts/rpxQU26BU7nwjtqY.js @@ -0,0 +1,20 @@ +let location = this.item.system.location.key +let test = await this.actor.setupCharacteristic("dex", {context : {failure : `${this.effect.name}: Drop the item!`}, skipTargets: true, appendTitle : " - " + this.effect.name, fields : {difficulty : "average"}}) +await test.roll(); + + +if (location && test.failed) +{ + let dropped = this.item.system.weaponsAtLocation; + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} + +return test.succeeded \ No newline at end of file diff --git a/scripts/rr4htuVq45onXdRG.js b/scripts/rr4htuVq45onXdRG.js new file mode 100644 index 0000000..e494852 --- /dev/null +++ b/scripts/rr4htuVq45onXdRG.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {appendTitle: ` - ${this.effect.name}`, fields : {difficulty : "average"}}) +test.roll(); \ No newline at end of file diff --git a/scripts/rxB1AqfVMDqTRieE.js b/scripts/rxB1AqfVMDqTRieE.js new file mode 100644 index 0000000..132e672 --- /dev/null +++ b/scripts/rxB1AqfVMDqTRieE.js @@ -0,0 +1 @@ +return !["ws", "bs", "ag"].includes(args.characteristic) && args.skill?.name != game.i18n.localize("NAME.Perception") \ No newline at end of file diff --git a/scripts/s0kTuDE0qv68V2KI.js b/scripts/s0kTuDE0qv68V2KI.js new file mode 100644 index 0000000..3f54ebc --- /dev/null +++ b/scripts/s0kTuDE0qv68V2KI.js @@ -0,0 +1 @@ + this.actor.getActiveTokens().forEach(t => t.document.update({texture : {tint : "#FFBF00"}})); diff --git a/scripts/s5bO0Sf0qpS27Tve.js b/scripts/s5bO0Sf0qpS27Tve.js new file mode 100644 index 0000000..81a8160 --- /dev/null +++ b/scripts/s5bO0Sf0qpS27Tve.js @@ -0,0 +1,2 @@ +await args.actor.addCondition("ablaze", 3) +await args.actor.addCondition("prone"); \ No newline at end of file diff --git a/scripts/s6eZXfZkC1My6EXl.js b/scripts/s6eZXfZkC1My6EXl.js new file mode 100644 index 0000000..79d1abc --- /dev/null +++ b/scripts/s6eZXfZkC1My6EXl.js @@ -0,0 +1,5 @@ +let lore = this.effect.name.split(" ")[2].toLowerCase(); +if (args.item.type == "spell" && args.item.system.lore.value == lore) +{ + args.item.system.cn.value -= 1 +} diff --git a/scripts/s7gJQdzuM3fz2zQK.js b/scripts/s7gJQdzuM3fz2zQK.js new file mode 100644 index 0000000..86e431a --- /dev/null +++ b/scripts/s7gJQdzuM3fz2zQK.js @@ -0,0 +1,11 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.QluSTTTq3viHJJUh") +let data = item.toObject(); +data.system.location.value = "Hip" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} \ No newline at end of file diff --git a/scripts/s8idWt9YdMTRfnjV.js b/scripts/s8idWt9YdMTRfnjV.js new file mode 100644 index 0000000..ffe18b2 --- /dev/null +++ b/scripts/s8idWt9YdMTRfnjV.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.BqPZn6q3VHn9HUrW") +let data = item.toObject(); +data.system.specification.value = 4 - this.actor.characteristics.s.bonus +data.name = item.name.replace("(Feature)", ""); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/s8xU6OOZbbfo6VIw.js b/scripts/s8xU6OOZbbfo6VIw.js new file mode 100644 index 0000000..4574772 --- /dev/null +++ b/scripts/s8xU6OOZbbfo6VIw.js @@ -0,0 +1 @@ +args.fields.slBonus += this.actor.system.characteristics.ag.bonus diff --git a/scripts/s94yKZ4o5XN4JWM1.js b/scripts/s94yKZ4o5XN4JWM1.js new file mode 100644 index 0000000..28925d7 --- /dev/null +++ b/scripts/s94yKZ4o5XN4JWM1.js @@ -0,0 +1,6 @@ +// Any attack with such ammunition which inflicts at least one Wound, +// also inflicts one Bleeding Condition. + +if (args.totalWoundLoss > 0) { + args.actor.addCondition("bleeding") +} diff --git a/scripts/sAVpm7hFRHpbCLXm.js b/scripts/sAVpm7hFRHpbCLXm.js new file mode 100644 index 0000000..88f9ad9 --- /dev/null +++ b/scripts/sAVpm7hFRHpbCLXm.js @@ -0,0 +1 @@ +return ["ws", "bs", "s", "t", "ag", "i"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/sB4KB9bT3nQhAoqG.js b/scripts/sB4KB9bT3nQhAoqG.js new file mode 100644 index 0000000..4401b71 --- /dev/null +++ b/scripts/sB4KB9bT3nQhAoqG.js @@ -0,0 +1,14 @@ +// This script needs to be separate because equipTransfer is off on the other effect, and thus won't execute when added to an actor + +let mainEffect = this.item.effects.contents[0]; +if (mainEffect.name.includes("")) +{ + let choice = await ItemDialog.create(ItemDialog.objectToArray(game.wfrp4e.config.magicLores, this.item.img), 1, "Choose Lore"); + if (choice.length) + { + mainEffect.update({name : mainEffect.name.replace("", choice[0].name)}) + this.item.update({name : this.item.name += ` (${choice[0].name})`}) + } +} + +this.effect.delete(); \ No newline at end of file diff --git a/scripts/sHfkTRqTWPg2JAGN.js b/scripts/sHfkTRqTWPg2JAGN.js new file mode 100644 index 0000000..30a46f7 --- /dev/null +++ b/scripts/sHfkTRqTWPg2JAGN.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.JQa5DLnTs2SEzRrc") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/sKO8TcLIkCTnFvXu.js b/scripts/sKO8TcLIkCTnFvXu.js new file mode 100644 index 0000000..d3d0cb5 --- /dev/null +++ b/scripts/sKO8TcLIkCTnFvXu.js @@ -0,0 +1,2 @@ +args.abort = true; +this.script.scriptNotification(`Cannot use ${this.item.system.location.value}!`, "error") \ No newline at end of file diff --git a/scripts/sNSfDBIA2k17hPYI.js b/scripts/sNSfDBIA2k17hPYI.js new file mode 100644 index 0000000..fd7fc3e --- /dev/null +++ b/scripts/sNSfDBIA2k17hPYI.js @@ -0,0 +1,6 @@ +let ablaze = this.actor.hasCondition("ablaze"); +if (ablaze) +{ + ablaze?.delete(); + this.script.scriptNotification("Ignore Ablaze"); +} diff --git a/scripts/sSMg43ZjnNmpytfj.js b/scripts/sSMg43ZjnNmpytfj.js new file mode 100644 index 0000000..a18fd9b --- /dev/null +++ b/scripts/sSMg43ZjnNmpytfj.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : " - " + this.effect.name}); +await test.roll(); diff --git a/scripts/sUHuj00IpoZ7Gd03.js b/scripts/sUHuj00IpoZ7Gd03.js new file mode 100644 index 0000000..f8f4072 --- /dev/null +++ b/scripts/sUHuj00IpoZ7Gd03.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Swim"); \ No newline at end of file diff --git a/scripts/sWyO1DNaqb2EdHoW.js b/scripts/sWyO1DNaqb2EdHoW.js new file mode 100644 index 0000000..295c7b5 --- /dev/null +++ b/scripts/sWyO1DNaqb2EdHoW.js @@ -0,0 +1,11 @@ +if (!this.actor.items.getName(game.i18n.localize("NAME.Frenzy"))) // Either frenzy trait or psychology +{ + // Add Frenzy psychology + let item = await fromUuid("Compendium.wfrp4e-core.items.DrNUTPeodEgpWTnT") + let data = item.toObject(); + data.effects[0].disabled = false; + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) +} + +this.script.scriptMessage(`

By imbibing this potion, ${this.actor.prototypeToken.name} has becomes subject to Frenzy. This Frenzy lasts [[1d10]] Rounds, and may not be ended sooner.

`, + {whisper: ChatMessage.getWhisperRecipients("GM"), blind: true }) \ No newline at end of file diff --git a/scripts/sYlGRLApZ3Ub24ea.js b/scripts/sYlGRLApZ3Ub24ea.js new file mode 100644 index 0000000..ee66235 --- /dev/null +++ b/scripts/sYlGRLApZ3Ub24ea.js @@ -0,0 +1 @@ +this.actor.system.status.addArmour(3, {source: this.effect.name, magical: true}) \ No newline at end of file diff --git a/scripts/sZwLitzwKBTaFca3.js b/scripts/sZwLitzwKBTaFca3.js new file mode 100644 index 0000000..4d00d6e --- /dev/null +++ b/scripts/sZwLitzwKBTaFca3.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.5hH73j2NgPdsLCZN") +let data = item.toObject(); +data.name = data.name.replace("Target", "Greenskins, Undead, Chaos") +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/sagKJM6oDFlw4ED2.js b/scripts/sagKJM6oDFlw4ED2.js new file mode 100644 index 0000000..4392e3b --- /dev/null +++ b/scripts/sagKJM6oDFlw4ED2.js @@ -0,0 +1,3 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); +return test.failed; \ No newline at end of file diff --git a/scripts/sbK1a7txpSoXFzyB.js b/scripts/sbK1a7txpSoXFzyB.js new file mode 100644 index 0000000..079b4dc --- /dev/null +++ b/scripts/sbK1a7txpSoXFzyB.js @@ -0,0 +1,10 @@ +if (args.test.options.useOnesArgumentative && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target)) +{ + +let SL = Math.floor(args.test.target / 10) - Math.floor(args.test.result.roll / 10) +let ones = Number(args.test.result.roll.toString().split("").pop()) + +if (ones > SL) + args.test.data.result.SL = "+" + (ones + args.test.successBonus + args.test.slBonus) + args.test.result.other.push(`${this.effect.name}: Used unit dice as SL`) +} \ No newline at end of file diff --git a/scripts/scfm5iWWBxWI6QaK.js b/scripts/scfm5iWWBxWI6QaK.js new file mode 100644 index 0000000..117c336 --- /dev/null +++ b/scripts/scfm5iWWBxWI6QaK.js @@ -0,0 +1,6 @@ +let darkvision = await fromUuid("Compendium.wfrp4e-core.items.Item.JQa5DLnTs2SEzRrc") +let fear = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn") +let acutesense = await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS") +fear = fear.toObject(); +fear.system.specification.value = 1; +this.actor.createEmbeddedDocuments("Item", [darkvision, fear, acutesense], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/sgS9rblPkQB36C8S.js b/scripts/sgS9rblPkQB36C8S.js new file mode 100644 index 0000000..49348b1 --- /dev/null +++ b/scripts/sgS9rblPkQB36C8S.js @@ -0,0 +1,29 @@ +if (this.item.name.includes("(")) +{ + let trade = this.item.parenthesesText; + if (trade?.toLowerCase() != "any") + return this.item.updateSource({"system.tests.value" : this.item.system.tests.value.replace("any one", trade)}) +} + +let index = game.packs +.filter(i => i.metadata.type == "Item") +.reduce((acc, pack) => acc.concat(pack.index.contents), []) +.filter(i => i.type == "skill" && i.name.includes(game.i18n.localize("NAME.Trade"))) +.map(i => { + i.id = i._id + return i +}) + +let choice = await ItemDialog.create(index, 1, "Choose a Trade Skill") +let text; +if (!choice[0]) +{ + let custom = await ValueDialog.create("Enter Custom Trade Skill", "Custom Trade"); + text = custom || "" +} +else +{ + text = game.wfrp4e.utility.extractParenthesesText(choice[0].name) +} + +await this.item.updateSource({name : this.item.name.replace("(Any)", "").replace("(any)", "").trim() + ` (${text})`, "system.tests.value" : this.item.system.tests.value.replace("any one", text)}); \ No newline at end of file diff --git a/scripts/shkBUtUuMPDKvFm7.js b/scripts/shkBUtUuMPDKvFm7.js new file mode 100644 index 0000000..641a6b6 --- /dev/null +++ b/scripts/shkBUtUuMPDKvFm7.js @@ -0,0 +1,10 @@ +let test = await this.actor.setupSkill("Dodge", {fields : {difficulty : "average"}}) +let caster = this.effect.sourceActor + +let fallen = this.effect.sourceTest.result.SL + caster.characteristics.wp.bonus +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") + this.script.scriptMessage(`${this.actor.prototypeToken.name} falls ${fallen} yards`) +} \ No newline at end of file diff --git a/scripts/skVq3eDEYKFF2iZp.js b/scripts/skVq3eDEYKFF2iZp.js new file mode 100644 index 0000000..312dc79 --- /dev/null +++ b/scripts/skVq3eDEYKFF2iZp.js @@ -0,0 +1,2 @@ +// I'm assuming the endurance test specified is for the end-round check +await this.actor.addCondition("poisoned", 4); diff --git a/scripts/sm9d5lk6cM0OuUkf.js b/scripts/sm9d5lk6cM0OuUkf.js new file mode 100644 index 0000000..97c8f33 --- /dev/null +++ b/scripts/sm9d5lk6cM0OuUkf.js @@ -0,0 +1 @@ +this.actor.applyFear(Math.min(4, this.effect.sourceTest.result.overcast.usage.other.current)) \ No newline at end of file diff --git a/scripts/sx7Ikn8WW00gBFb4.js b/scripts/sx7Ikn8WW00gBFb4.js new file mode 100644 index 0000000..d413850 --- /dev/null +++ b/scripts/sx7Ikn8WW00gBFb4.js @@ -0,0 +1,32 @@ +let location = (Math.ceil(CONFIG.Dice.randomUniform() * 2) == 2 ? "r" : "l") + "Arm" + +if (location == "lArm") +{ + this.script.scriptNotification("Rolled Left") +} +else if (location == "rArm") +{ + this.script.scriptNotification("Rolled Right") +} + +this.effect.updateSource({"flags.wfrp4e.location" : location}); + +if (location) +{ + let dropped = this.actor.itemTypes.weapon.filter(i => i.isEquipped & i.system.usesHands.includes(location)); + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} + +let roll = await new Roll("1d10").roll() + +roll.toMessage(this.script.getChatData({flavor : `${this.effect.name} (Duration)`})); + +this.effect.updateSource({"duration.rounds" : roll.total}) \ No newline at end of file diff --git a/scripts/syBgPp7rOymCZejX.js b/scripts/syBgPp7rOymCZejX.js new file mode 100644 index 0000000..3007947 --- /dev/null +++ b/scripts/syBgPp7rOymCZejX.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("stunned") +} \ No newline at end of file diff --git a/scripts/syqqBkyP5tGqZ78t.js b/scripts/syqqBkyP5tGqZ78t.js new file mode 100644 index 0000000..265c5fd --- /dev/null +++ b/scripts/syqqBkyP5tGqZ78t.js @@ -0,0 +1,8 @@ +this.actor.has("Immunity to Psychology")?.delete(); + +let roll = await new Roll("1d10").roll(); + +roll.toMessage(this.script.getChatData()); + +this.script.scriptNotification(`Removed Immunity to Psychology, Adding ${roll.total} Broken Conditions`) +this.actor.addCondition("broken", roll.total, {"flags.wfrp4e.blasted-mind" : true}) \ No newline at end of file diff --git a/scripts/t48hkacYdOpzWvK9.js b/scripts/t48hkacYdOpzWvK9.js new file mode 100644 index 0000000..6e8c53a --- /dev/null +++ b/scripts/t48hkacYdOpzWvK9.js @@ -0,0 +1 @@ +args.options.beatBlade = true; \ No newline at end of file diff --git a/scripts/t56mnblo1kv3gM1M.js b/scripts/t56mnblo1kv3gM1M.js new file mode 100644 index 0000000..ce5fba9 --- /dev/null +++ b/scripts/t56mnblo1kv3gM1M.js @@ -0,0 +1 @@ +return args.skill?.name.includes("Melee (Basic)") || (args.type == "weapon" && args.item?.system.weaponGroup.value == "basic"); \ No newline at end of file diff --git a/scripts/t8LYOuN5peEdWeXP.js b/scripts/t8LYOuN5peEdWeXP.js new file mode 100644 index 0000000..4aeed96 --- /dev/null +++ b/scripts/t8LYOuN5peEdWeXP.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.mNoCuaVbFBflfO6X") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/tCIT1a12Gt6k2ohA.js b/scripts/tCIT1a12Gt6k2ohA.js new file mode 100644 index 0000000..e054b71 --- /dev/null +++ b/scripts/tCIT1a12Gt6k2ohA.js @@ -0,0 +1,21 @@ +let resistance +if (this.item.name.includes("(")) +{ + resistance = this.item.parenthesesText +} +else +{ + resistance = await ValueDialog.create("Enter Resistance", "Resistance") + + if (resistance) + { + this.item.updateSource({name : this.item.name + ` (${resistance})`}) + this.effect.updateSource({name : this.effect.name + ` (${resistance})`}) + } +} +this.item.updateSource({"system.tests.value" : this.item.system.tests.value.replace("the associated Threat", resistance)}) + +if (resistance && !this.effect.name.includes("(")) +{ + this.effect.updateSource({name : this.effect.name += ` (${resistance})`}) +} \ No newline at end of file diff --git a/scripts/tDrs0aNIYmZPsOoS.js b/scripts/tDrs0aNIYmZPsOoS.js new file mode 100644 index 0000000..51bdf06 --- /dev/null +++ b/scripts/tDrs0aNIYmZPsOoS.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("prone") +} diff --git a/scripts/tFAKRRRfTjQfdQz3.js b/scripts/tFAKRRRfTjQfdQz3.js new file mode 100644 index 0000000..566dcbb --- /dev/null +++ b/scripts/tFAKRRRfTjQfdQz3.js @@ -0,0 +1 @@ +this.actor.getActiveTokens().forEach(t => t.document.update({"texture.tint" : ""})); \ No newline at end of file diff --git a/scripts/tG1qGqzBLmAR3WHm.js b/scripts/tG1qGqzBLmAR3WHm.js new file mode 100644 index 0000000..64fa199 --- /dev/null +++ b/scripts/tG1qGqzBLmAR3WHm.js @@ -0,0 +1,15 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); +if (test.failed) +{ + let add = 0 + + if (test.result.roll % 11 == 0 || test.result.roll == 100) + { + add = 1 // can't use isFumble if no hit location + } + + await this.actor.addCondition("stunned", Math.max(1, Math.abs(test.result.SL)) + add) + await this.actor.addCondition("blinded", Math.max(1, Math.abs(test.result.SL))) + +} \ No newline at end of file diff --git a/scripts/tGVEV6TLl310mFLP.js b/scripts/tGVEV6TLl310mFLP.js new file mode 100644 index 0000000..686b84a --- /dev/null +++ b/scripts/tGVEV6TLl310mFLP.js @@ -0,0 +1,7 @@ +let nonmagical = args.modifiers.ap.value - args.modifiers.ap.magical +if (args.applyAP && nonmagical) +{ + let nonmagical = args.modifiers.ap.value - args.modifiers.ap.magical + args.modifiers.ap.ignored += nonmagical + args.modifiers.ap.details.push("" + this.effect.name + ": Ignore Non-Magical AP (" + nonmagical + ")"); +} \ No newline at end of file diff --git a/scripts/tKBq1nGZo8t6vvQ6.js b/scripts/tKBq1nGZo8t6vvQ6.js new file mode 100644 index 0000000..acbf367 --- /dev/null +++ b/scripts/tKBq1nGZo8t6vvQ6.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.5hH73j2NgPdsLCZN"); +this.actor.createEmbeddedDocuments("Item", [item.toObject()], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/tNTO1LVN7JqHf4YN.js b/scripts/tNTO1LVN7JqHf4YN.js new file mode 100644 index 0000000..f35b126 --- /dev/null +++ b/scripts/tNTO1LVN7JqHf4YN.js @@ -0,0 +1,8 @@ +if (args.test.characteristicKey == "wp") +{ + if (args.test.failed) + { + this.actor.createEmbeddedDocuments("ActiveEffect", [game.wfrp4e.config.symptomEffects["malaise"]]) + this.script.scriptMessage(`Willpower Test failed, ${this.actor.prototypeToken.name} gains @Condition[Malaise] for [[1d10]] hours`, {whisper: ChatMessage.getWhisperRecipients("GM")}) + } +} \ No newline at end of file diff --git a/scripts/tUwP7TjrOOOnaCYJ.js b/scripts/tUwP7TjrOOOnaCYJ.js new file mode 100644 index 0000000..c502cf0 --- /dev/null +++ b/scripts/tUwP7TjrOOOnaCYJ.js @@ -0,0 +1,10 @@ +let fatigued = this.actor.hasCondition("fatigued") +if (fatigued) +{ + this.script.scriptNotification(`Cleared ${fatigued.conditionValue} Fatigued Conditions`) + fatigued.delete(); +} +else +{ + this.script.scriptNotification(`No Fatigued Conditions`) +} \ No newline at end of file diff --git a/scripts/tcZug8ehU6lyYBd9.js b/scripts/tcZug8ehU6lyYBd9.js new file mode 100644 index 0000000..3ac13c4 --- /dev/null +++ b/scripts/tcZug8ehU6lyYBd9.js @@ -0,0 +1 @@ +return args.skill?.name != "Ranged (Blackpowder)" \ No newline at end of file diff --git a/scripts/tdICiJ26rJrDbxT6.js b/scripts/tdICiJ26rJrDbxT6.js new file mode 100644 index 0000000..233b805 --- /dev/null +++ b/scripts/tdICiJ26rJrDbxT6.js @@ -0,0 +1 @@ +return args.characteristic != "i" \ No newline at end of file diff --git a/scripts/tn6SwmjAuNzqE6dx.js b/scripts/tn6SwmjAuNzqE6dx.js new file mode 100644 index 0000000..a7bacb4 --- /dev/null +++ b/scripts/tn6SwmjAuNzqE6dx.js @@ -0,0 +1,14 @@ +let damage = 0 +let test = await this.actor.setupSkill("Dodge", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); + +if (test.succeeded) +{ + damage = 10; +} +else if (test.failed) +{ + damage = 20; +} + +this.script.scriptMessage(await this.actor.applyBasicDamage(damage, {loc : "roll", hideDSN: true, suppressMsg : true})) \ No newline at end of file diff --git a/scripts/tnE8LF6E3svIlLca.js b/scripts/tnE8LF6E3svIlLca.js new file mode 100644 index 0000000..4058efe --- /dev/null +++ b/scripts/tnE8LF6E3svIlLca.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.Research"); \ No newline at end of file diff --git a/scripts/tnilBagajWM8UGQt.js b/scripts/tnilBagajWM8UGQt.js new file mode 100644 index 0000000..1b8e882 --- /dev/null +++ b/scripts/tnilBagajWM8UGQt.js @@ -0,0 +1 @@ +return args.item?.name != game.i18n.localize("NAME.ConsumeAlcohol") \ No newline at end of file diff --git a/scripts/toSrgcvWq9b5eN0K.js b/scripts/toSrgcvWq9b5eN0K.js new file mode 100644 index 0000000..f3fabed --- /dev/null +++ b/scripts/toSrgcvWq9b5eN0K.js @@ -0,0 +1,4 @@ +let location = await game.wfrp4e.tables.rollTable("hitloc", {hideDSN: true}) + +this.item.updateSource({name : `${this.item.name} (${location.description})`}) +this.script.scriptMessage(`Location: ${location.description}`, { whisper: ChatMessage.getWhisperRecipients("GM") }) \ No newline at end of file diff --git a/scripts/tolkNN5P7oOC8GKZ.js b/scripts/tolkNN5P7oOC8GKZ.js new file mode 100644 index 0000000..e030d9d --- /dev/null +++ b/scripts/tolkNN5P7oOC8GKZ.js @@ -0,0 +1,11 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "difficult"}}) +await test.roll(); + +if (test.failed) +{ + let sourceActor = this.effect.sourceActor; + if (sourceActor) + { + this.script.scriptMessage(await this.actor.applyBasicDamage(sourceActor.system.characteristics.wp.bonus, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL})) + } +} \ No newline at end of file diff --git a/scripts/u3olS2p7Ls1JXfAH.js b/scripts/u3olS2p7Ls1JXfAH.js new file mode 100644 index 0000000..5ee90b2 --- /dev/null +++ b/scripts/u3olS2p7Ls1JXfAH.js @@ -0,0 +1 @@ +this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("mutatephys", {}, "Tzeentch")); \ No newline at end of file diff --git a/scripts/u5dNZ0s3lWfL8KFb.js b/scripts/u5dNZ0s3lWfL8KFb.js new file mode 100644 index 0000000..3d18bb7 --- /dev/null +++ b/scripts/u5dNZ0s3lWfL8KFb.js @@ -0,0 +1 @@ +return args.fields.charging \ No newline at end of file diff --git a/scripts/u6CYMSZADrfXd48Q.js b/scripts/u6CYMSZADrfXd48Q.js new file mode 100644 index 0000000..ad9447a --- /dev/null +++ b/scripts/u6CYMSZADrfXd48Q.js @@ -0,0 +1 @@ +args.fields.modifier += 20; \ No newline at end of file diff --git a/scripts/uACa6u4JLNMRgFlr.js b/scripts/uACa6u4JLNMRgFlr.js new file mode 100644 index 0000000..b4b0244 --- /dev/null +++ b/scripts/uACa6u4JLNMRgFlr.js @@ -0,0 +1,2 @@ +const talents = await Promise.all(["Furious Assault", "Sea Legs"].map(game.wfrp4e.utility.findTalent)) +this.actor.createEmbeddedDocuments("Item", talents, {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/uAy4w7y8Uu9POF8C.js b/scripts/uAy4w7y8Uu9POF8C.js new file mode 100644 index 0000000..c07db00 --- /dev/null +++ b/scripts/uAy4w7y8Uu9POF8C.js @@ -0,0 +1 @@ +args.item.system.qualities.value.push({name : "impact"}) \ No newline at end of file diff --git a/scripts/uLBDnWC3S0lRitbj.js b/scripts/uLBDnWC3S0lRitbj.js new file mode 100644 index 0000000..e858a83 --- /dev/null +++ b/scripts/uLBDnWC3S0lRitbj.js @@ -0,0 +1,22 @@ +let test = await this.actor.setupCharacteristic("int", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}) +await test.roll(); + +let opposedResult = test.opposedMessages[0]?.getOppose()?.resultMessage?.getOpposedTest()?.result + +if (opposedResult?.winner == "attacker") +{ + if (test.failed && (test.result.roll % 11 == 0 || test.result.roll == 100)) + { + this.actor.addCondition("unconscious") + await this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + 1}) + this.script.scriptMessage("Gained a Corruption point", {whisper : ChatMessage.getWhisperRecipients("GM")}) + } + else + { + await this.actor.addCondition("stunned", 1 + opposedResult.differenceSL); + } +} +else +{ + return false; +} \ No newline at end of file diff --git a/scripts/uNYstk3eXmWamhzs.js b/scripts/uNYstk3eXmWamhzs.js new file mode 100644 index 0000000..4a76cd7 --- /dev/null +++ b/scripts/uNYstk3eXmWamhzs.js @@ -0,0 +1 @@ +args.actor.addCondition("blinded") \ No newline at end of file diff --git a/scripts/uOHAsKlkFuIaAmjb.js b/scripts/uOHAsKlkFuIaAmjb.js new file mode 100644 index 0000000..85f570c --- /dev/null +++ b/scripts/uOHAsKlkFuIaAmjb.js @@ -0,0 +1 @@ +args.actor.modifyWounds(1) \ No newline at end of file diff --git a/scripts/uSwkYENTOcnfRrqA.js b/scripts/uSwkYENTOcnfRrqA.js new file mode 100644 index 0000000..05d9ada --- /dev/null +++ b/scripts/uSwkYENTOcnfRrqA.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Melee")) && args.weapon?.system?.attackType != "melee" \ No newline at end of file diff --git a/scripts/ucF4aiJ1gpDB333G.js b/scripts/ucF4aiJ1gpDB333G.js new file mode 100644 index 0000000..7d00add --- /dev/null +++ b/scripts/ucF4aiJ1gpDB333G.js @@ -0,0 +1,5 @@ +if (args.test.options.catfall && (args.test.result.roll <= game.settings.get("wfrp4e", "automaticSuccess") || args.test.result.roll <= args.test.target) && !args.test.result.catfall) +{ + args.test.result.other.push(`${this.effect.name}: Fall distance damage reduced by ${Number(args.test.result.SL) + 1} yards`) + args.test.result.catfall = true; // Prevent duplicate messages +} \ No newline at end of file diff --git a/scripts/ugL5IBB6R2yWyMWd.js b/scripts/ugL5IBB6R2yWyMWd.js new file mode 100644 index 0000000..1616e69 --- /dev/null +++ b/scripts/ugL5IBB6R2yWyMWd.js @@ -0,0 +1,23 @@ +if (args.totalWoundLoss > 0) +{ + let apply = await Dialog.confirm({title : this.effect.name, content : `

Appy ${this.effect.name} Damage? Attacker must have used bare hands or a melee weapon made of metal.`}) + if (apply) + { + + let damage = 5 + this.actor.characteristics.wp.bonus; + + let loc = args.opposedTest.attackerTest.weapon?.system.usesHands[0] || "rArm"; + + let APatLoc = args.opposedTest.attacker.system.status.armour[loc]; + + let metalAP = APatLoc.layers.reduce((metal, layer) => metal += (layer.metal ? layer.value : 0), 0) + + let APused = Math.max(0, APatLoc.value - metalAP); // remove metal AP at location; + + damage -= (APused + args.opposedTest.attacker.system.characteristics.t.bonus) + + let msg = await args.opposedTest.attacker.applyBasicDamage(damage, {suppressMsg : true, damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL}); + msg += ` (ignored ${metalAP} metal AP on ${game.wfrp4e.config.locations[loc]})` + this.script.scriptMessage(msg) + } +} \ No newline at end of file diff --git a/scripts/upfK6GM33qZCZjll.js b/scripts/upfK6GM33qZCZjll.js new file mode 100644 index 0000000..91935c0 --- /dev/null +++ b/scripts/upfK6GM33qZCZjll.js @@ -0,0 +1 @@ +return args.item?.name != "Play (Lute)" \ No newline at end of file diff --git a/scripts/uwdQvZtzy2HVeEzx.js b/scripts/uwdQvZtzy2HVeEzx.js new file mode 100644 index 0000000..685fa84 --- /dev/null +++ b/scripts/uwdQvZtzy2HVeEzx.js @@ -0,0 +1,14 @@ +if (args.totalWoundLoss > 0) +{ + let roll = await new Roll("1d10").roll(); + roll.toMessage(this.script.getChatData()); + args.modifiers.other.push({label : this.effect.name, value : roll.total}) + + args.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "hard"}, skipTargets: true, appendTitle : " - " + this.effect.name}).then(async test => { + await test.roll(); + if (test.failed) + { + this.script.scriptMessage("" + args.actor.name + " takes a @Table[critbody]{Critical Hit} to the torse", {whisper: ChatMessage.getWhisperRecipients("GM")}) + } + }) +} diff --git a/scripts/ux3jaLpAUhZ5YqA6.js b/scripts/ux3jaLpAUhZ5YqA6.js new file mode 100644 index 0000000..66cae1b --- /dev/null +++ b/scripts/ux3jaLpAUhZ5YqA6.js @@ -0,0 +1 @@ +return args.item?.name != game.i18n.localize("NAME.Leadership") && args.item?.name != game.i18n.localize("NAME.Cool") \ No newline at end of file diff --git a/scripts/v00nVCRKqqRvY28t.js b/scripts/v00nVCRKqqRvY28t.js new file mode 100644 index 0000000..7d632a2 --- /dev/null +++ b/scripts/v00nVCRKqqRvY28t.js @@ -0,0 +1,6 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: {difficulty: "hard"}}); +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("stunned", 3) +} diff --git a/scripts/v4CCxVaVGf9i8U7X.js b/scripts/v4CCxVaVGf9i8U7X.js new file mode 100644 index 0000000..abab0d3 --- /dev/null +++ b/scripts/v4CCxVaVGf9i8U7X.js @@ -0,0 +1,24 @@ +let cured = await Dialog.wait({ + title : this.effect.name, + content : "

Enter the number of diseases/poisons cured

", + buttons : { + confirm : { + label : "Confirm", + callback : (dlg) => { + let input = dlg.find("input"); + value = parseInt(input[0].value); + return value; + } + } + } +}) + + +let damage = 0; + +let rolls = new Array(cured).fill("").map(i => `max(0, 1d10 - ${this.actor.system.characteristics.fel.bonus})`) + +let test = new Roll(`${rolls.join(" + ")}`); +await test.roll(); +test.toMessage({speaker : {alias : this.actor.name}, flavor : this.effect.name}); +this.script.scriptMessage(await this.actor.applyBasicDamage(test.total, { damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true })) \ No newline at end of file diff --git a/scripts/v4ITTsSY9EvCbhZP.js b/scripts/v4ITTsSY9EvCbhZP.js new file mode 100644 index 0000000..b42194c --- /dev/null +++ b/scripts/v4ITTsSY9EvCbhZP.js @@ -0,0 +1,2 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.9h82z72XGo9tfgQS") +this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/v5xrDWcrTNFJkyQB.js b/scripts/v5xrDWcrTNFJkyQB.js new file mode 100644 index 0000000..da60300 --- /dev/null +++ b/scripts/v5xrDWcrTNFJkyQB.js @@ -0,0 +1,90 @@ +let choice1 = [ + { + type : "skill", + name : "Ranged (Bow)", + diff : { + system : { + advances : { + value : 10 + } + } + } + }, + { + type : "weapon", + name : "Longbow", + }, + { + type : "ammunition", + name : "Arrow", + } +] +let choice2 = [ +] + +let choice = await Dialog.wait({ + title : "Option", + content : + `

+ Add Option? +

+
    +
  1. Ranged (Bow) +10 and a Longbow with 12 Arrows
  2. +
+ `, + buttons : { + 1 : { + label : "Yes", + callback : () => { + return choice1; + } + }, + 2 : { + label : "No", + callback : () => { + return choice2; + } + } + } +}) + +let updateObj = this.actor.toObject(); +let items = [] +for (let c of choice) +{ + let existing + if (c.type == "skill") + { + existing = updateObj.items.find(i => i.name == c.name && i.type == c.type) + if (existing && c.diff?.system?.advances?.value) + { + existing.system.advances.value += c.diff.system.advances.value + } + } + + if (!existing) + { + let item = await game.wfrp4e.utility.find(c.name, c.type) + if (item) + { + item = item.toObject() + equip(item); + items.push(mergeObject(item, (c.diff || {}))) + } + else + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + +} +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + +function equip(item) +{ + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true +} \ No newline at end of file diff --git a/scripts/v6LIG7EwWYALxCpP.js b/scripts/v6LIG7EwWYALxCpP.js new file mode 100644 index 0000000..9bdb16a --- /dev/null +++ b/scripts/v6LIG7EwWYALxCpP.js @@ -0,0 +1 @@ +return !this.effect.getFlag("wfrp4e", "trained")?.includes("entertain") || (!args.skill?.name.includes(game.i18n.localize("NAME.Entertain")) && !args.skill?.name.includes(game.i18n.localize("NAME.Perform")) && !args.skill?.name.includes(game.i18n.localize("NAME.Play"))) \ No newline at end of file diff --git a/scripts/vFUVWZ1l8wpTjLcx.js b/scripts/vFUVWZ1l8wpTjLcx.js new file mode 100644 index 0000000..b33c270 --- /dev/null +++ b/scripts/vFUVWZ1l8wpTjLcx.js @@ -0,0 +1,14 @@ +if (!this.actor.has(game.i18n.localize("NAME.Daemonic"))) + return + +let caster = this.effect.sourceActor; +if (caster) +{ + let wp = caster.system.characteristics.wp + if (this.actor.system.characteristics.wp.value >= wp.value) + { + this.script.scriptNotification("Target has higher Willpower, no effect") + return + } + this.actor.applyBasicDamage(wp.bonus, { damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL }) +} \ No newline at end of file diff --git a/scripts/vJQRBxDfPwHens0a.js b/scripts/vJQRBxDfPwHens0a.js new file mode 100644 index 0000000..ace2cb2 --- /dev/null +++ b/scripts/vJQRBxDfPwHens0a.js @@ -0,0 +1,11 @@ +if (args.totalWoundLoss > 0) +{ + args.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields: { difficulty: "difficult" } }).then(async test => { + await test.roll(); + if (test.failed) + { + await args.actor.addCondition("poisoned") + this.script.scriptMessage(await args.actor.applyBasicDamage(3, {suppressMsg : true, damageType: game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL })) + } + }) +} \ No newline at end of file diff --git a/scripts/vM2BPwYhHQaBAt2C.js b/scripts/vM2BPwYhHQaBAt2C.js new file mode 100644 index 0000000..a463b45 --- /dev/null +++ b/scripts/vM2BPwYhHQaBAt2C.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.KII1gWnxIZ8HzmU5"); +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) \ No newline at end of file diff --git a/scripts/vNp9wgdSvnNEjZyS.js b/scripts/vNp9wgdSvnNEjZyS.js new file mode 100644 index 0000000..b3ed272 --- /dev/null +++ b/scripts/vNp9wgdSvnNEjZyS.js @@ -0,0 +1 @@ +args.fields.slBonus -= 2; \ No newline at end of file diff --git a/scripts/vPG4rV640aSzKzxe.js b/scripts/vPG4rV640aSzKzxe.js new file mode 100644 index 0000000..9c6656e --- /dev/null +++ b/scripts/vPG4rV640aSzKzxe.js @@ -0,0 +1 @@ +return !this.actor.flags.useless[this.item.system.location.key[0] + "Arm"] || ["fel", "wp", "int", "t"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/vS2D9QUslR7ZtXXm.js b/scripts/vS2D9QUslR7ZtXXm.js new file mode 100644 index 0000000..49c45c1 --- /dev/null +++ b/scripts/vS2D9QUslR7ZtXXm.js @@ -0,0 +1,9 @@ +let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}}) +await test.roll(); +if (test.failed) +{ + let roll = await new Roll("1d10").roll(); + roll.toMessage(this.script.getChatData()) + + this.script.scriptMessage(await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP, suppressMsg : true})) +} \ No newline at end of file diff --git a/scripts/vSDMygIT9nNvEGWG.js b/scripts/vSDMygIT9nNvEGWG.js new file mode 100644 index 0000000..88b2106 --- /dev/null +++ b/scripts/vSDMygIT9nNvEGWG.js @@ -0,0 +1,13 @@ +// Each time the blade is used, the GM should secretly roll a d10. +// On a 1, its poison has run dry, +// and the next time it is employed it will shatter. + +if (Math.ceil(CONFIG.Dice.randomUniform() * 10) == 1) { + this.item.setFlag("wfrp4e", "brittle", true) + ChatMessage.create({ + content: ` + ${this.item.name} has run out of poison. It will shatter the next time it is used.`, + whisper: ChatMessage.getWhisperRecipients("GM"), + blind: true + }) +} diff --git a/scripts/vY3xeTTL3ghPrJpN.js b/scripts/vY3xeTTL3ghPrJpN.js new file mode 100644 index 0000000..13f39e5 --- /dev/null +++ b/scripts/vY3xeTTL3ghPrJpN.js @@ -0,0 +1 @@ +this.actor.addCondition("entangled"); \ No newline at end of file diff --git a/scripts/vZ5HCrhY8e4R1TrG.js b/scripts/vZ5HCrhY8e4R1TrG.js new file mode 100644 index 0000000..abad24e --- /dev/null +++ b/scripts/vZ5HCrhY8e4R1TrG.js @@ -0,0 +1,3 @@ +let eye = await fromUuid("Compendium.wfrp4e-core.items.weczkAMPlTjX7lqU") +let nose = await fromUuid("Compendium.wfrp4e-core.items.SpPRZZRHxly7uo2G") +this.actor.createEmbeddedDocuments("Item", [eye, nose]); \ No newline at end of file diff --git a/scripts/vc4bELo0cWYoILfB.js b/scripts/vc4bELo0cWYoILfB.js new file mode 100644 index 0000000..c8a93da --- /dev/null +++ b/scripts/vc4bELo0cWYoILfB.js @@ -0,0 +1,4 @@ +let choice = await ItemDialog.create(this.actor.itemTypes.disease, 1, "Choose a disease to heal (must be naturally occuring)") + +this.script.scriptMessage(`Cured ${choice[0]?.name}`); +choice[0].delete() \ No newline at end of file diff --git a/scripts/vc8eVKtyjtOGvWlK.js b/scripts/vc8eVKtyjtOGvWlK.js new file mode 100644 index 0000000..848809f --- /dev/null +++ b/scripts/vc8eVKtyjtOGvWlK.js @@ -0,0 +1,4 @@ +if (!this.actor.hasCondition("entangled")) +{ + this.effect.delete(); +} \ No newline at end of file diff --git a/scripts/vcM0IgsYVmfWrlO3.js b/scripts/vcM0IgsYVmfWrlO3.js new file mode 100644 index 0000000..fb2f0c1 --- /dev/null +++ b/scripts/vcM0IgsYVmfWrlO3.js @@ -0,0 +1,3 @@ +fromUuid("Compendium.wfrp4e-core.items.rOV2s6PQBBrhpMOv").then(item => { + this.actor.createEmbeddedDocuments("Item", [item], {fromEffect : this.effect.id}); +}) \ No newline at end of file diff --git a/scripts/vgfs0DXvF5iKrz1M.js b/scripts/vgfs0DXvF5iKrz1M.js new file mode 100644 index 0000000..b815dbf --- /dev/null +++ b/scripts/vgfs0DXvF5iKrz1M.js @@ -0,0 +1 @@ +return args.characteristic != "ag" || this.item.getFlag("wfrp4e", "passed") \ No newline at end of file diff --git a/scripts/vj3zArmX27vCxYJW.js b/scripts/vj3zArmX27vCxYJW.js new file mode 100644 index 0000000..d95ee60 --- /dev/null +++ b/scripts/vj3zArmX27vCxYJW.js @@ -0,0 +1 @@ +return !["NAME.Perception", "NAME.Navigation"].map(i => game.i18n.localize(i)).includes(args.skill?.name) \ No newline at end of file diff --git a/scripts/vjyTKcNrJzX4XWnS.js b/scripts/vjyTKcNrJzX4XWnS.js new file mode 100644 index 0000000..033ec8d --- /dev/null +++ b/scripts/vjyTKcNrJzX4XWnS.js @@ -0,0 +1,4 @@ +let SL = parseInt(this.effect.sourceTest.result.SL) +if (SL < 0) + SL = 0 +this.actor.addCondition("fatigued", 1 + SL) \ No newline at end of file diff --git a/scripts/vuzRRj5d9XdNYx3o.js b/scripts/vuzRRj5d9XdNYx3o.js new file mode 100644 index 0000000..c5c1635 --- /dev/null +++ b/scripts/vuzRRj5d9XdNYx3o.js @@ -0,0 +1,6 @@ +let broken = this.actor.hasCondition("broken") +if (broken) +{ + broken.delete(); + this.script.scriptNotification("Removed Broken") +} \ No newline at end of file diff --git a/scripts/vvVhAqreedtmOR9b.js b/scripts/vvVhAqreedtmOR9b.js new file mode 100644 index 0000000..acab485 --- /dev/null +++ b/scripts/vvVhAqreedtmOR9b.js @@ -0,0 +1,2 @@ +args.totalWoundLoss = Math.max(0, args.totalWoundLoss - 1) +args.modifiers.other.push({label : this.effect.name, value : -1) \ No newline at end of file diff --git a/scripts/vvdo1NxjmGVkmFCT.js b/scripts/vvdo1NxjmGVkmFCT.js new file mode 100644 index 0000000..22edf7f --- /dev/null +++ b/scripts/vvdo1NxjmGVkmFCT.js @@ -0,0 +1,24 @@ +await this.actor.addCondition("stunned"); +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields: {difficulty : "hard"}, skipTargets: true, appendTitle : " - " + this.effect.name}) +await test.roll(); +if (test.failed) +{ + await this.actor.addCondition("prone") + await this.actor.addCondition("stunned") +} + +let location = this.item.system.location.key; + +if (location) +{ + let dropped = this.item.system.weaponsAtLocation; + + if (dropped.length) + { + this.script.scriptNotification(`Dropped ${dropped.map(i => i.name).join(", ")}!`) + for(let weapon of dropped) + { + await weapon.system.toggleEquip(); + } + } +} \ No newline at end of file diff --git a/scripts/vzMxIDjRlQSxXtCW.js b/scripts/vzMxIDjRlQSxXtCW.js new file mode 100644 index 0000000..49cc4fd --- /dev/null +++ b/scripts/vzMxIDjRlQSxXtCW.js @@ -0,0 +1,11 @@ +// Remove the miscast if doubles rolled and succeeded +if(args.test.succeeded && args.test.result.minormis && args.test.result.roll % 11 == 0) +{ + delete args.test.result.minormis +} +// Decrement the major miscast to minor miscast +else if(args.test.succeeded && args.test.result.majormis && args.test.result.roll % 11 == 0) +{ + delete args.test.result.majormis + args.test.result.minormis = game.i18n.localize("ROLL.MinorMis") +} \ No newline at end of file diff --git a/scripts/w3r54pKZQKaH2Yer.js b/scripts/w3r54pKZQKaH2Yer.js new file mode 100644 index 0000000..bce673d --- /dev/null +++ b/scripts/w3r54pKZQKaH2Yer.js @@ -0,0 +1,8 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.Item.pTorrE0l3VybAbtn") +let data = item.toObject(); +let slOver = this.effect.sourceTest.result.slOver; +let overcast = this.effect.sourceTest.result.overcast +slOver -= ((overcast.total - overcast.available) * 2) // If they used an overcast, subtract 2 SL for each one +let added = Math.floor(slOver / 3) || 0 +data.system.specification.value = 1 + added; // For each +3 SL, add 1 specification +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/w4JKuTECFmu3YmTR.js b/scripts/w4JKuTECFmu3YmTR.js new file mode 100644 index 0000000..deb575d --- /dev/null +++ b/scripts/w4JKuTECFmu3YmTR.js @@ -0,0 +1 @@ +return !args.skill?.name?.includes(game.i18n.localize("NAME.Ride")) \ No newline at end of file diff --git a/scripts/w4zubIHP0XgMXsFe.js b/scripts/w4zubIHP0XgMXsFe.js new file mode 100644 index 0000000..5a69e19 --- /dev/null +++ b/scripts/w4zubIHP0XgMXsFe.js @@ -0,0 +1 @@ +return !args.options.terror && !args.extendedTest?.getFlag("wfrp4e", "fear"); \ No newline at end of file diff --git a/scripts/w7K0lbxQKJ2tsc6f.js b/scripts/w7K0lbxQKJ2tsc6f.js new file mode 100644 index 0000000..3ef9266 --- /dev/null +++ b/scripts/w7K0lbxQKJ2tsc6f.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.EO05HX7jql0g605A") +let data = item.toObject(); +data.system.specification.value = 60 +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/wAETU6aTRr9d4oCU.js b/scripts/wAETU6aTRr9d4oCU.js new file mode 100644 index 0000000..b018850 --- /dev/null +++ b/scripts/wAETU6aTRr9d4oCU.js @@ -0,0 +1 @@ +args.fields.slBonus++; \ No newline at end of file diff --git a/scripts/wAntJhgb8Og5vJXh.js b/scripts/wAntJhgb8Og5vJXh.js new file mode 100644 index 0000000..c788e80 --- /dev/null +++ b/scripts/wAntJhgb8Og5vJXh.js @@ -0,0 +1 @@ +args.options.staunchBleeding = true; \ No newline at end of file diff --git a/scripts/wS6OIR3QN4mOUHn0.js b/scripts/wS6OIR3QN4mOUHn0.js new file mode 100644 index 0000000..4b370e5 --- /dev/null +++ b/scripts/wS6OIR3QN4mOUHn0.js @@ -0,0 +1,12 @@ +if (args.totalWoundLoss > args.actor.characteristics.t.bonus) +{ + args.actor.setupSkill(game.i18n.localize("NAME.Endurance")).then(async test => { + await test.roll() + if (test.failed) { + let disease = await fromUuid("Compendium.wfrp4e-core.items.M8XyRs9DN12XsFTQ") + disease = disease.toObject() + disease.system.duration.active = true + args.actor.createEmbeddedDocuments("Item", [disease]) + } + }) +} \ No newline at end of file diff --git a/scripts/wUlYLBT59Efys5aS.js b/scripts/wUlYLBT59Efys5aS.js new file mode 100644 index 0000000..ce937bf --- /dev/null +++ b/scripts/wUlYLBT59Efys5aS.js @@ -0,0 +1 @@ +args.actor.addCondition("prone"); \ No newline at end of file diff --git a/scripts/wbM7tpw4TxvadcWm.js b/scripts/wbM7tpw4TxvadcWm.js new file mode 100644 index 0000000..88dec95 --- /dev/null +++ b/scripts/wbM7tpw4TxvadcWm.js @@ -0,0 +1,19 @@ +let items = this.effect.itemTargets; +let msg = ""; +for(let item of items) +{ + if (item.system.properties.qualities.durable) + { + await item.update({"system.qualities.value" : []}); + msg += `

${item.name} loses all Qualities

` + } + else + { + msg += `

${item.name} crumbles into dust!

` + await item.update({name : item.name + " (Dust)"}) + } +} +if(msg) +{ + this.script.scriptMessage(msg); +} \ No newline at end of file diff --git a/scripts/whUSkaR1yem21bXp.js b/scripts/whUSkaR1yem21bXp.js new file mode 100644 index 0000000..c2c2f1b --- /dev/null +++ b/scripts/whUSkaR1yem21bXp.js @@ -0,0 +1,133 @@ +let characteristics = { + "ws" : 10, + "bs" : 5, + "s" : 0, + "t" : 5, + "i" : 10, + "ag" : 0, + "dex" : 6, + "int" : -5, + "wp" : 0, + "fel" : 10 +} +let skills = ["Melee (Basic)", "Track"] +let skillAdvancements = [8, 7] +let talents = ["Berserk Charge", "Careful Strike", "Strike to Injure"] +let traits = ["Flight (8)", "Fury", "Swarm", "Tracker"] +let trappings = [] +let items = []; +let spells = []; + +let updateObj = this.actor.toObject(); + +for (let ch in characteristics) +{ + updateObj.system.characteristics[ch].modifier += characteristics[ch]; +} + +for (let index = 0; index < skills.length; index++) +{ + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } +} + +for (let talent of talents) +{ + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } +} + +const traitRegex = /(?:,?(.+?)(\+?\d{1,2}\+?)?\s*?(?:\((.+?)\)\s*(\+?\d{1,2})?|,|$))/gm +for (let trait of traits) +{ + let traitMatches = trait.matchAll(traitRegex).next().value + let traitName = traitMatches[1] + let traitVal = traitMatches[2] || traitMatches[4] // could be match 2 or 4 depending on if there's a specialization + let traitSpec = traitMatches[3] + + let traitItem; + try { + traitItem = await WFRP_Utility.findItem(traitName, "trait") + } + catch { } + if (!traitItem) { + ui.notifications.warn(`Could not find ${trait}`, {permanent : true}) + } + traitItem = traitItem.toObject() + + if (Number.isNumeric(traitVal)) + { + traitItem.system.specification.value = traitName.includes('Weapon','Horns','Tail','Tentacles','Bite') ? traitVal - parseInt(characteristicValues[3]/10) : traitVal; + traitItem.name = (traitItem.name + ` ${traitSpec ? "("+ traitSpec + ")" : ""}`).trim() + } + else + traitItem.system.specification.value = traitSpec + + items.push(traitItem) + +} + +for (let trapping of trappings) +{ + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } +} + +for (let spell of spells) +{ + let spellItem = await game.wfrp4e.utility.findItem(spell) + if (spellItem) + { + spellItem = spellItem.toObject() + + items.push(spellItem); + } + else + { + ui.notifications.warn(`Could not find ${spell}`, {permanent : true}) + } +} + +updateObj.name = updateObj.name += " " + this.effect.name + +await this.actor.update(updateObj) +this.actor.createEmbeddedDocuments("Item", items); + + +function equip(item) +{ + if (item.type == "armour") + item.worn = true + else if (item.type == "weapon") + item.equipped = true + else if (item.type == "trapping" && item.trappingType?.value == "clothingAccessories") + item.worn = true +} \ No newline at end of file diff --git a/scripts/wsqNM4NHnwaAAQym.js b/scripts/wsqNM4NHnwaAAQym.js new file mode 100644 index 0000000..a07f054 --- /dev/null +++ b/scripts/wsqNM4NHnwaAAQym.js @@ -0,0 +1,11 @@ + args.applyAP = false; + + this.script.scriptNotification("This test only applies to criminals, otherwise close the dialog."); + this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => + { + await test.roll(); + if (test.failed) + { + args.actor.addCondition("unconscious"); + } + }); \ No newline at end of file diff --git a/scripts/wyTCozh9qGTx6yK0.js b/scripts/wyTCozh9qGTx6yK0.js new file mode 100644 index 0000000..c2afa63 --- /dev/null +++ b/scripts/wyTCozh9qGTx6yK0.js @@ -0,0 +1,5 @@ +if (args.options.terror || args.extendedTest?.getFlag("wfrp4e", "fear")) +{ + args.abort = true; + this.script.scriptNotification("Does not need to make Fear or Terror tests"); +} \ No newline at end of file diff --git a/scripts/wzkxiKjxVEeNS1di.js b/scripts/wzkxiKjxVEeNS1di.js new file mode 100644 index 0000000..7625d68 --- /dev/null +++ b/scripts/wzkxiKjxVEeNS1di.js @@ -0,0 +1,11 @@ +let roll = await new Roll("1d10").roll(); +this.script.scriptMessage(await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg: true})) + +await this.actor.addCondition("deafened", 3) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {fields : {difficulty: "average" }, skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure: "Gain a Broken Condition", success : "Avoided Broken Condition"}}) +await test.roll(); +if (test.failed) +{ + this.actor.addCondition("broken") +} \ No newline at end of file diff --git a/scripts/x2RLUUNB7BiIDYCP.js b/scripts/x2RLUUNB7BiIDYCP.js new file mode 100644 index 0000000..0ab5fe7 --- /dev/null +++ b/scripts/x2RLUUNB7BiIDYCP.js @@ -0,0 +1,16 @@ + + let difficulty = "" + if (this.effect.name.includes("Moderate")) + difficulty = "easy" + else if (this.effect.name.includes("Severe")) + difficulty = "average" + else + difficulty = "veasy" + + let test = await this.actor.setupSkill(game.i18n.localize("NAME.Endurance"), {context : {failure : this.actor.name + " dies from Blight"}, fields: {difficulty}, skipTargets: true, appendTitle : " - Blight"}) + await test.roll(); + if (test.failed) + { + this.actor.addCondition("dead"); + } + \ No newline at end of file diff --git a/scripts/x76tKw4L8dX00ikE.js b/scripts/x76tKw4L8dX00ikE.js new file mode 100644 index 0000000..c98eddb --- /dev/null +++ b/scripts/x76tKw4L8dX00ikE.js @@ -0,0 +1,5 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.uqGxFOEqeurwkAO3") +let data = item.toObject(); +setProperty(data, "flags.wfrp4e.breath", "fire") +data.system.specification.value = 5 +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/x8XK2fzzXCnSwfjt.js b/scripts/x8XK2fzzXCnSwfjt.js new file mode 100644 index 0000000..d42e514 --- /dev/null +++ b/scripts/x8XK2fzzXCnSwfjt.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Athletics")) +await test.roll(); + +if (test.succeeded) +{ + this.actor.removeCondition("prone"); +} \ No newline at end of file diff --git a/scripts/x9G6Du5EWV6byf4C.js b/scripts/x9G6Du5EWV6byf4C.js new file mode 100644 index 0000000..79042f3 --- /dev/null +++ b/scripts/x9G6Du5EWV6byf4C.js @@ -0,0 +1,8 @@ +if (parseInt(this.effect.sourceTest.result.SL) >= 3) +{ + this.actor.modifyWounds(this.actor.system.characteristics.t.bonus * 2) +} +else +{ + this.actor.modifyWounds(this.actor.system.characteristics.t.bonus) +} \ No newline at end of file diff --git a/scripts/x9iKFYYc4Ocy8PTS.js b/scripts/x9iKFYYc4Ocy8PTS.js new file mode 100644 index 0000000..9f078b6 --- /dev/null +++ b/scripts/x9iKFYYc4Ocy8PTS.js @@ -0,0 +1,30 @@ +let item = this.effect.getCreatedItems()?.[0]; +ChatMessage.create({content : "Grace is beyond style", speaker : ChatMessage.getSpeaker({token: this.actor.getActiveTokens()[0]?.document, actor: this.actor})}, {chatBubble : true}) + +let choice = await ItemDialog.create(ItemDialog.objectToArray({ + "nobles" : "Nobles", + "guilders" : "Guilders", + "servants" : "Servants" +}), 1, "Choose Group") + +let name = choice[0]?.name + +if (!name) +{ + return; +} + +if (item) +{ + item.update({ + name : item.name.split("(")[0] + ` (${name})`, + "system.tests.value" : item.system.tests.value.split("(")[0] + ` (${name}` + }) +} +else +{ + item = await fromUuid("Compendium.wfrp4e-core.items.Item.sYbgpSnRqSZWgwFP"); + let data = item.toObject(); + data.name += ` (${name})` + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect: this.effect.id}) +} \ No newline at end of file diff --git a/scripts/xBpLQa7yBPczDMY8.js b/scripts/xBpLQa7yBPczDMY8.js new file mode 100644 index 0000000..dd7547f --- /dev/null +++ b/scripts/xBpLQa7yBPczDMY8.js @@ -0,0 +1,7 @@ + let scythe = (await fromUuid("Compendium.wfrp4e-core.items.CXg7XOFJwu4LZ9LM")).toObject(); + scythe.name = "Scythe of Shyish"; + scythe.system.damage.value = "WPB + 3" + scythe.system.equipped = true; + scythe.img = this.effect.icon; + scythe.system.qualities.value.push({name : "magical"}) + this.actor.createEmbeddedDocuments("Item", [scythe], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/xIRU2SaqLeWmqGDI.js b/scripts/xIRU2SaqLeWmqGDI.js new file mode 100644 index 0000000..01cabd4 --- /dev/null +++ b/scripts/xIRU2SaqLeWmqGDI.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.vMYEkrWj0ip6ZOdv") +let data = item.toObject(); +data.name += " (Disease)" +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/xL4S0H1RP8hhXW7c.js b/scripts/xL4S0H1RP8hhXW7c.js new file mode 100644 index 0000000..7aa1d03 --- /dev/null +++ b/scripts/xL4S0H1RP8hhXW7c.js @@ -0,0 +1,3 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.xneBqGOs1QS7kfUr") +let data = item.toObject(); +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/xLKAuD6yzwjAL6tJ.js b/scripts/xLKAuD6yzwjAL6tJ.js new file mode 100644 index 0000000..15ad6a7 --- /dev/null +++ b/scripts/xLKAuD6yzwjAL6tJ.js @@ -0,0 +1 @@ +return !args.weapon || args.weapon?.system.properties?.qualities.shield || !this.item.system.usesLocation(args.weapon) \ No newline at end of file diff --git a/scripts/xMhhVol8Is3DJ3gb.js b/scripts/xMhhVol8Is3DJ3gb.js new file mode 100644 index 0000000..bd75d66 --- /dev/null +++ b/scripts/xMhhVol8Is3DJ3gb.js @@ -0,0 +1,5 @@ +if (this.effect.sourceTest.succeeded) +{ + let blinded = 1 + this.effect.sourceTest.result.overcast.usage.other.count + this.actor.addCondition("blinded", blinded) +} \ No newline at end of file diff --git a/scripts/xPDMpOvC1ZBVxrNg.js b/scripts/xPDMpOvC1ZBVxrNg.js new file mode 100644 index 0000000..40f6360 --- /dev/null +++ b/scripts/xPDMpOvC1ZBVxrNg.js @@ -0,0 +1 @@ +args.fields.modifier += 10; \ No newline at end of file diff --git a/scripts/xPwa3NftkpMBc2AO.js b/scripts/xPwa3NftkpMBc2AO.js new file mode 100644 index 0000000..0b6eef8 --- /dev/null +++ b/scripts/xPwa3NftkpMBc2AO.js @@ -0,0 +1 @@ +return !["ws", "s", "ag"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/xQ3xR2Wf0wHFa76H.js b/scripts/xQ3xR2Wf0wHFa76H.js new file mode 100644 index 0000000..99df4ab --- /dev/null +++ b/scripts/xQ3xR2Wf0wHFa76H.js @@ -0,0 +1 @@ +return ["ws", "bs", "fel", "dex"].includes(args.characteristic) || args.weapon \ No newline at end of file diff --git a/scripts/xQnoRTHotZKrwPrx.js b/scripts/xQnoRTHotZKrwPrx.js new file mode 100644 index 0000000..036d4f5 --- /dev/null +++ b/scripts/xQnoRTHotZKrwPrx.js @@ -0,0 +1 @@ +return args.type == "cast" && args.item?.system.lore?.value == "shadow" \ No newline at end of file diff --git a/scripts/xRTmMwNfdirjsi8X.js b/scripts/xRTmMwNfdirjsi8X.js new file mode 100644 index 0000000..4a8886f --- /dev/null +++ b/scripts/xRTmMwNfdirjsi8X.js @@ -0,0 +1,3 @@ +this.actor.addCondition("ablaze"); + +this.actor.applyBasicDamage(this.effect.sourceTest.result.damage) \ No newline at end of file diff --git a/scripts/xRd6oA1QWLVpfoBm.js b/scripts/xRd6oA1QWLVpfoBm.js new file mode 100644 index 0000000..db785fb --- /dev/null +++ b/scripts/xRd6oA1QWLVpfoBm.js @@ -0,0 +1,6 @@ +if (!this.actor.has("Night Vision")) +{ + let item = await fromUuid("Compendium.wfrp4e-core.items.FmHDbCOy3pH8yKhm"); + let data = item.toObject(); + this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) +} \ No newline at end of file diff --git a/scripts/xS2su09zcza9du09.js b/scripts/xS2su09zcza9du09.js new file mode 100644 index 0000000..592e0c2 --- /dev/null +++ b/scripts/xS2su09zcza9du09.js @@ -0,0 +1,8 @@ +if (["Minor", "Moderate", "Major"].includes(this.item.system.specification.value)) +{ + return +} + +let choice = await ItemDialog.create(ItemDialog.objectToArray({minor : "Minor", moderate : "Moderate", major : "Major"}, this.item.img), 1, "Choose Corruption Severity"); + +this.item.updateSource({"system.specification.value" : choice[0]?.name || ""}) \ No newline at end of file diff --git a/scripts/xUpKYT7BZCSmAfUy.js b/scripts/xUpKYT7BZCSmAfUy.js new file mode 100644 index 0000000..6e013b0 --- /dev/null +++ b/scripts/xUpKYT7BZCSmAfUy.js @@ -0,0 +1,10 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectData : [this.item.effects.contents[0].convertToApplied()]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/xYTkj8jhSVOSoLbC.js b/scripts/xYTkj8jhSVOSoLbC.js new file mode 100644 index 0000000..f319a92 --- /dev/null +++ b/scripts/xYTkj8jhSVOSoLbC.js @@ -0,0 +1 @@ +this.actor.flags.useless[this.item.system.location.key[0] + "Arm"] = true; \ No newline at end of file diff --git a/scripts/xcy5GOUSZ0meIejZ.js b/scripts/xcy5GOUSZ0meIejZ.js new file mode 100644 index 0000000..9d4ae4a --- /dev/null +++ b/scripts/xcy5GOUSZ0meIejZ.js @@ -0,0 +1,4 @@ +if (args.test.isFumble) +{ + args.test.result.other.push("@Table[warp-grinder-fumble]") +} \ No newline at end of file diff --git a/scripts/xgdhf0wlNP2cHIQx.js b/scripts/xgdhf0wlNP2cHIQx.js new file mode 100644 index 0000000..af39144 --- /dev/null +++ b/scripts/xgdhf0wlNP2cHIQx.js @@ -0,0 +1 @@ +await this.actor.addCondition("entangled", this.effect.sourceTest.result.overcast.usage.other.current) \ No newline at end of file diff --git a/scripts/xgplXZMs459X7XXM.js b/scripts/xgplXZMs459X7XXM.js new file mode 100644 index 0000000..af8f73d --- /dev/null +++ b/scripts/xgplXZMs459X7XXM.js @@ -0,0 +1,21 @@ +// Apply changes when the mask is worn + +if (args.equipped) { + this.actor.createEmbeddedDocuments("ActiveEffect", [this.item.effects.contents[1]?.convertToApplied()]) + this.script.scriptMessage(`${this.actor.name} dons the ${this.item.name}.
+ They suffer –20 to all attempts to resist Disease.
+ If they wear the mask for more than an hour or benefit from any of its effects, they are exposed to @Corruption[moderate]{Moderate Corruption}. + `, + {whisper: ChatMessage.getWhisperRecipients("GM")}) +} + +// Notify of lingering effects when mask is removed +else if (!args.equipped) +{ + await this.item.effects.contents[0].delete(); + await this.item.update({name : this.item.name += " (Used)"}) + this.script.scriptMessage(`${this.item.name} on ${this.actor.name} has been taken off and loses its properties. However, the effects last for [[1d10+4]] days, after which they should be manually removed.`, + {whisper: ChatMessage.getWhisperRecipients("GM")} + ) + +} diff --git a/scripts/xklncIMwQIespDxS.js b/scripts/xklncIMwQIespDxS.js new file mode 100644 index 0000000..3839739 --- /dev/null +++ b/scripts/xklncIMwQIespDxS.js @@ -0,0 +1,8 @@ +let test = await this.actor.setupCharacteristic("t", {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "vhard"}}); +await test.roll(); +game.wfrp4e.utility.postCorruptionTest("minor", this.script.getChatData()) + +if (test.failed) +{ + this.actor.addCondition("unconscious"); +} \ No newline at end of file diff --git a/scripts/xnHobI9HojObLHMp.js b/scripts/xnHobI9HojObLHMp.js new file mode 100644 index 0000000..0cc3ed2 --- /dev/null +++ b/scripts/xnHobI9HojObLHMp.js @@ -0,0 +1,2 @@ +args.applyTB = false; +args.applyAP = false; \ No newline at end of file diff --git a/scripts/xobGBJbgFjQCrwvq.js b/scripts/xobGBJbgFjQCrwvq.js new file mode 100644 index 0000000..b6b5f54 --- /dev/null +++ b/scripts/xobGBJbgFjQCrwvq.js @@ -0,0 +1,17 @@ +let roll; +if (this.actor.has(game.i18n.localize("NAME.Daemonic")) || this.actor.has(game.i18n.localize("NAME.Undead")) || ["Goblin", "Orc", "Undead"].includes(this.actor.system.details.species.value)) +{ + roll = await new Roll(`1d10 + ${this.effect.sourceTest.result.overcast.usage.other.current}`).roll() +} +else +{ + roll = await new Roll(`1d10`).roll() +} + +roll.toMessage(this.script.getChatData()) +await this.actor.applyBasicDamage(roll.total, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, suppressMsg : true}) + +if (this.actor.has("Undead") || args.actor.has("Daemonic")) +{ + this.actor.addCondition("ablaze") +} \ No newline at end of file diff --git a/scripts/xpgXWoK2zDnG1uiF.js b/scripts/xpgXWoK2zDnG1uiF.js new file mode 100644 index 0000000..a8a946e --- /dev/null +++ b/scripts/xpgXWoK2zDnG1uiF.js @@ -0,0 +1,31 @@ +let stunned = args.actor.hasCondition("stunned") +if (stunned) + setProperty(stunned, "flags.wfrp4e.scriptData", getProperty(stunned, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let poisoned= args.actor.hasCondition("poisoned") +if (poisoned) + setProperty(poisoned, "flags.wfrp4e.scriptData", getProperty(poisoned, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let deafened = args.actor.hasCondition("deafened") +if (deafened) + setProperty(deafened, "flags.wfrp4e.scriptData", getProperty(deafened, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let entangled = args.actor.hasCondition("entangled") +if (entangled) + setProperty(entangled, "flags.wfrp4e.scriptData", getProperty(entangled, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let fatigued = args.actor.hasCondition("fatigued") +if (fatigued) + setProperty(fatigued, "flags.wfrp4e.scriptData", getProperty(fatigued, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let blinded = args.actor.hasCondition("blinded") +if (blinded) + setProperty(blinded, "flags.wfrp4e.scriptData", getProperty(blinded, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let broken = args.actor.hasCondition("broken") +if (broken) + setProperty(broken, "flags.wfrp4e.scriptData", getProperty(broken, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) + +let prone= args.actor.hasCondition("prone") +if (prone) + setProperty(prone, "flags.wfrp4e.scriptData", getProperty(prone, "flags.wfrp4e.scriptData").filter(s => s.trigger != "dialog")) \ No newline at end of file diff --git a/scripts/xq3RANOtmPhy77ne.js b/scripts/xq3RANOtmPhy77ne.js new file mode 100644 index 0000000..b9c040f --- /dev/null +++ b/scripts/xq3RANOtmPhy77ne.js @@ -0,0 +1 @@ +args.update({texture : {tint : "#FFBF00"}}); \ No newline at end of file diff --git a/scripts/xqWxV9w5ezBQdJkZ.js b/scripts/xqWxV9w5ezBQdJkZ.js new file mode 100644 index 0000000..452ff57 --- /dev/null +++ b/scripts/xqWxV9w5ezBQdJkZ.js @@ -0,0 +1 @@ +return args.options.corruption; \ No newline at end of file diff --git a/scripts/xvGxwv7X0Vq3vNqb.js b/scripts/xvGxwv7X0Vq3vNqb.js new file mode 100644 index 0000000..5be0d76 --- /dev/null +++ b/scripts/xvGxwv7X0Vq3vNqb.js @@ -0,0 +1 @@ +args.fields.modifier -= 10; \ No newline at end of file diff --git a/scripts/xvH4PKJasHcehOZz.js b/scripts/xvH4PKJasHcehOZz.js new file mode 100644 index 0000000..3149d05 --- /dev/null +++ b/scripts/xvH4PKJasHcehOZz.js @@ -0,0 +1 @@ +return args.skill?.name == `${game.i18n.localize("NAME.Lore")} (${this.item.parenthesesText})` \ No newline at end of file diff --git a/scripts/y3agVFVBR8tVqWyx.js b/scripts/y3agVFVBR8tVqWyx.js new file mode 100644 index 0000000..687a28a --- /dev/null +++ b/scripts/y3agVFVBR8tVqWyx.js @@ -0,0 +1,2 @@ +let test = await this.actor.setupCharacteristic("wp", {skipTargets: true, appendTitle : ` - ${this.effect.name}`}); +await test.roll(); \ No newline at end of file diff --git a/scripts/yAL0YwZWVm8o1nxa.js b/scripts/yAL0YwZWVm8o1nxa.js new file mode 100644 index 0000000..75e6cf8 --- /dev/null +++ b/scripts/yAL0YwZWVm8o1nxa.js @@ -0,0 +1,6 @@ +if (this.actor.hasCondition("dead") && !this.actor.gardenOfCorpses) +{ + this.script.scriptMessage("[[3d10]] @UUID[Compendium.wfrp4e-core.actors.T79RqnDOAQLn3I1s]{zombies} spring forth from the remains.", {whisper : ChatMessage.getWhisperRecipients("GM")}) + this.actor.gardenOfCorpses = true; + // local storage is sufficient to prevent multiple messages +} \ No newline at end of file diff --git a/scripts/yCgH3N9AurIiAv0i.js b/scripts/yCgH3N9AurIiAv0i.js new file mode 100644 index 0000000..06aecb3 --- /dev/null +++ b/scripts/yCgH3N9AurIiAv0i.js @@ -0,0 +1,29 @@ +if (!this.item.name.includes("(") || this.item.system.tests.value.includes("(Sense)")) +{ + let tests = this.item.system.tests.value + let name = this.item.name + + // If name already specifies, make sure tests value reflects that + if (name.includes("(")) + { + let sense = name.split("(")[1].split(")")[0] + tests = `${tests.split("(")[0].trim()} (${sense})`; + } + else // If no sense specified, provide dialog choice + { + let choice = await ItemDialog.create(ItemDialog.objectToArray({ + taste : "Taste", + sight : "Sight", + smell : "Smell", + hearing : "Hearing", + touch : "Touch" + }, this.item.img), 1, "Choose Sense"); + if (choice[0]) + { + name = `${name.split("(")[0].trim()} (${choice[0].name})` + tests = `${tests.split("(")[0].trim()} (${choice[0].name})` + } + } + + this.item.updateSource({name, "system.tests.value" : tests}) +} \ No newline at end of file diff --git a/scripts/yDvxF9llUYwJg0sE.js b/scripts/yDvxF9llUYwJg0sE.js new file mode 100644 index 0000000..54cd21a --- /dev/null +++ b/scripts/yDvxF9llUYwJg0sE.js @@ -0,0 +1,22 @@ +if (getProperty(args.data, "system.loaded.value") == true) +{ + let repeaterValue = Math.ceil(CONFIG.Dice.randomUniform() * 10); + let qualities = foundry.utils.deepClone(this.item.system.qualities.value); + let repeater = qualities.find(i => i.name == "repeater") + if (repeater) + { + repeater.value = repeaterValue + } + else + { + qualities.push({name : "repeater", value : repeaterValue}) + } + setProperty(args.data, "system.loaded.amt", repeaterValue) + this.item.update({"system.qualities.value" : qualities}); + this.script.scriptNotification("Repeater " + repeaterValue); +} +else if (getProperty(args.data, "system.loaded.value") == false) +{ + let qualities = foundry.utils.deepClone(this.item.system.qualities.value).filter(i => i.name != "repeater"); + this.item.update({"system.qualities.value" : qualities}); +} \ No newline at end of file diff --git a/scripts/yFMvxecXAZ6T2O0S.js b/scripts/yFMvxecXAZ6T2O0S.js new file mode 100644 index 0000000..72cbdc7 --- /dev/null +++ b/scripts/yFMvxecXAZ6T2O0S.js @@ -0,0 +1,9 @@ +if (args.totalWoundLoss >= 1) +{ + let roll = await new Roll("1d10").roll(); + await roll.toMessage(this.script.getChatData()); + if (roll.total == 9) + { + this.script.scriptMessage(`Two @UUID[Compendium.wfrp4e-eis.actors.cLOGeMqUty61nYB9]{Blue Horror of Tzeentch} claw their way out of ${this.actor.name}'s screaming flesh, killing them in the process.`, {whisper : ChatMessage.getWhisperRecipients("GM")}) + } +} \ No newline at end of file diff --git a/scripts/yIGItnshXI4W46cp.js b/scripts/yIGItnshXI4W46cp.js new file mode 100644 index 0000000..b47bdc0 --- /dev/null +++ b/scripts/yIGItnshXI4W46cp.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Charm"); \ No newline at end of file diff --git a/scripts/yMMzZ7daCqRlGT3N.js b/scripts/yMMzZ7daCqRlGT3N.js new file mode 100644 index 0000000..7dd1c9b --- /dev/null +++ b/scripts/yMMzZ7daCqRlGT3N.js @@ -0,0 +1,5 @@ +let item = args.opposedTest.attackerTest.item; +if (!item.isMagical && (item.type == "weapon" || item.type == "trait")) +{ + args.modifiers.other.push({label : this.effect.name, details : "Remove Damage Rating", value : -1 * (args.totalWoundLoss - args.opposedTest.result.differenceSL)}) +} diff --git a/scripts/yPxYRObUiqAIhlNB.js b/scripts/yPxYRObUiqAIhlNB.js new file mode 100644 index 0000000..9ec5719 --- /dev/null +++ b/scripts/yPxYRObUiqAIhlNB.js @@ -0,0 +1 @@ +this.actor.system.status.encumbrance.max += 1 \ No newline at end of file diff --git a/scripts/yRRzSKlcN3L7rEEe.js b/scripts/yRRzSKlcN3L7rEEe.js new file mode 100644 index 0000000..d94075f --- /dev/null +++ b/scripts/yRRzSKlcN3L7rEEe.js @@ -0,0 +1 @@ +return args.skill?.name.includes(game.i18n.localize("NAME.Entertain")) || args.skill?.name.includes(game.i18n.localize("NAME.Perform")) || args.skill?.name.includes(game.i18n.localize("NAME.Play")); \ No newline at end of file diff --git a/scripts/yTmRoUstxHMso91c.js b/scripts/yTmRoUstxHMso91c.js new file mode 100644 index 0000000..9dcd76f --- /dev/null +++ b/scripts/yTmRoUstxHMso91c.js @@ -0,0 +1,4 @@ +if (args.item.name == "Magic Resistance" && args.item.type == "trait") +{ + args.item.system.specification.value = Number(args.item.system.specification.value) + 1 +} \ No newline at end of file diff --git a/scripts/yXUPiWuQ5o0JBY4i.js b/scripts/yXUPiWuQ5o0JBY4i.js new file mode 100644 index 0000000..ea57de2 --- /dev/null +++ b/scripts/yXUPiWuQ5o0JBY4i.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("Endurance") || args.characteristic == "int" \ No newline at end of file diff --git a/scripts/yatUu0cd7iKs50rq.js b/scripts/yatUu0cd7iKs50rq.js new file mode 100644 index 0000000..0230e54 --- /dev/null +++ b/scripts/yatUu0cd7iKs50rq.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.Track"); \ No newline at end of file diff --git a/scripts/ybxDG2ezvRx02LYx.js b/scripts/ybxDG2ezvRx02LYx.js new file mode 100644 index 0000000..e78b8b3 --- /dev/null +++ b/scripts/ybxDG2ezvRx02LYx.js @@ -0,0 +1 @@ +return !args.options.corruption \ No newline at end of file diff --git a/scripts/ynNCBAYwJFkTiXV1.js b/scripts/ynNCBAYwJFkTiXV1.js new file mode 100644 index 0000000..6008a15 --- /dev/null +++ b/scripts/ynNCBAYwJFkTiXV1.js @@ -0,0 +1 @@ +this.actor.system.status.addArmour(4, {source : this.effect}) \ No newline at end of file diff --git a/scripts/ynV7tz0OdCwlsQp6.js b/scripts/ynV7tz0OdCwlsQp6.js new file mode 100644 index 0000000..bceeeae --- /dev/null +++ b/scripts/ynV7tz0OdCwlsQp6.js @@ -0,0 +1,6 @@ +let msg = "" +msg += `

${await this.actor.applyBasicDamage(8, {loc : "roll", suppressMsg: true, hideDSN: true})}

` +msg += `

${await this.actor.applyBasicDamage(8, {loc : "roll", suppressMsg: true, hideDSN: true})}

` +msg += `

${await this.actor.applyBasicDamage(8, {loc : "roll", suppressMsg: true, hideDSN: true})}

` + +this.script.scriptMessage(msg); \ No newline at end of file diff --git a/scripts/ynoHNXXCGRS6fTqF.js b/scripts/ynoHNXXCGRS6fTqF.js new file mode 100644 index 0000000..9c5e860 --- /dev/null +++ b/scripts/ynoHNXXCGRS6fTqF.js @@ -0,0 +1,26 @@ +let msg = "" + +let i_gain = (await new Roll("1d10").roll()).total + +if (args.actor.characteristics.i.value <= 0) +{ + i_gain += (await new Roll("2d10").roll()).total +} + +msg = `${this.actor.prototypeToken.name} gains ${i_gain} Initiative` + +let newValue = i_gain + args.actor.characteristics.i.modifier + +this.actor.update({"system.characteristics.i.modifier" : newValue}) + + +let hitloc = await game.wfrp4e.tables.rollTable("hitloc") + +let value = hitloc.result +let desc = hitloc.description + +this.effect.updateSource({"flags.wfrp4e.location" : value}) + +msg += ` as eyes push out of their ${desc}` + +this.script.scriptMessage(msg) \ No newline at end of file diff --git a/scripts/yzN7ZNlgCiSVJqsU.js b/scripts/yzN7ZNlgCiSVJqsU.js new file mode 100644 index 0000000..ac583fa --- /dev/null +++ b/scripts/yzN7ZNlgCiSVJqsU.js @@ -0,0 +1,7 @@ +let sourceItem = this.effect.sourceItem; + +if (sourceItem) +{ + this.actor.applyEffect({effectUuids : [sourceItem.effects.contents[1].uuid]}) + this.script.scriptNotification("Applied after effects"); +} \ No newline at end of file diff --git a/scripts/z5HfNUrHy5MS3K7a.js b/scripts/z5HfNUrHy5MS3K7a.js new file mode 100644 index 0000000..e635110 --- /dev/null +++ b/scripts/z5HfNUrHy5MS3K7a.js @@ -0,0 +1,7 @@ +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure: "1 Corruption Point Gained"}}) +await test.roll(); +if (test.failed && this.actor.type == "character") +{ + this.actor.update({"system.status.corruption.value" : parseInt(this.actor.status.corruption.value) + 1}) + this.script.scriptMessage("Gained a Corruption point", {whisper : ChatMessage.getWhisperRecipients("GM")}) +} \ No newline at end of file diff --git a/scripts/z926Cl2vxUfyLY0V.js b/scripts/z926Cl2vxUfyLY0V.js new file mode 100644 index 0000000..accff96 --- /dev/null +++ b/scripts/z926Cl2vxUfyLY0V.js @@ -0,0 +1,4 @@ +if (!["rArm", "lArm"].includes(this.effect.getFlag("wfrp4e", "location"))) + return true + +return ["fel", "wp", "int", "t"].includes(args.characteristic) \ No newline at end of file diff --git a/scripts/z9NEbIUBsKMaTuCz.js b/scripts/z9NEbIUBsKMaTuCz.js new file mode 100644 index 0000000..144e2e4 --- /dev/null +++ b/scripts/z9NEbIUBsKMaTuCz.js @@ -0,0 +1,4 @@ +if (args.opposedTest.result.hitloc && args.opposedTest.result.hitloc.value == "head") +{ + args.actor.addCondition("entangled") +} \ No newline at end of file diff --git a/scripts/zA6TDttpwMSMl7D8.js b/scripts/zA6TDttpwMSMl7D8.js new file mode 100644 index 0000000..898b642 --- /dev/null +++ b/scripts/zA6TDttpwMSMl7D8.js @@ -0,0 +1,14 @@ +// An imbiber must take a Consume Alcohol Test. +this.actor.setupSkill(game.i18n.localize("NAME.ConsumeAlcohol"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`}).then(async test => { + await test.roll() + // If they succeed, + // as a result of whatever potential futures they glimpse, + // they can spend a Fortune Point within the next hour to reverse the dice of any failed Test. + if (test.succeeded) { + this.script.scriptMessage(`As a result of whatever potential futures they glimpse, ${this.actor.prototypeToken.name} can spend a Fortune Point within the next hour to reverse the dice of any failed Test.`, + { + whisper: ChatMessage.getWhisperRecipients("GM"), + blind: true + }) + } +}) \ No newline at end of file diff --git a/scripts/zBHTIBU8OlYj1YIO.js b/scripts/zBHTIBU8OlYj1YIO.js new file mode 100644 index 0000000..36139f8 --- /dev/null +++ b/scripts/zBHTIBU8OlYj1YIO.js @@ -0,0 +1 @@ +args.fields.modifier += this.effect.sourceActor?.system.characteristics.wp.value; \ No newline at end of file diff --git a/scripts/zFYCaGR0wbFWjl4T.js b/scripts/zFYCaGR0wbFWjl4T.js new file mode 100644 index 0000000..fbb0202 --- /dev/null +++ b/scripts/zFYCaGR0wbFWjl4T.js @@ -0,0 +1 @@ +return args.skill?.name != game.i18n.localize("NAME.OutdoorSurvival"); \ No newline at end of file diff --git a/scripts/zK38Rl5t9zbFi4Se.js b/scripts/zK38Rl5t9zbFi4Se.js new file mode 100644 index 0000000..029af27 --- /dev/null +++ b/scripts/zK38Rl5t9zbFi4Se.js @@ -0,0 +1,5 @@ +if (args.opposedTest.result.hitloc.value == this.item.system.location.key && args.totalWoundLoss > 0) +{ + args.actor.addCondition("bleeding", 1); + this.script.scriptNotification("Added Bleeding") +} \ No newline at end of file diff --git a/scripts/zR4WAjzXHTZuiu5G.js b/scripts/zR4WAjzXHTZuiu5G.js new file mode 100644 index 0000000..a366058 --- /dev/null +++ b/scripts/zR4WAjzXHTZuiu5G.js @@ -0,0 +1,52 @@ +let actor = this.actor; + let effect = this.effect; + let bleedingAmt; + let bleedingRoll; + let msg = "" + + let damage = effect.conditionValue; + let scriptArgs = {msg, damage}; + await Promise.all(actor.runScripts("preApplyCondition", {effect, data : scriptArgs})) + msg = scriptArgs.msg; + damage = scriptArgs.damage; + msg += await actor.applyBasicDamage(damage, {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_ALL, minimumOne : false, suppressMsg : true}) + + if (actor.status.wounds.value == 0 && !actor.hasCondition("unconscious")) + { + await actor.addCondition("unconscious") + msg += "
" + game.i18n.format("BleedUnc", {name: actor.prototypeToken.name }) + } + + if (actor.hasCondition("unconscious")) + { + bleedingAmt = effect.conditionValue; + bleedingRoll = (await new Roll("1d100").roll()).total; + if (bleedingRoll <= bleedingAmt * 10) + { + msg += "
" + game.i18n.format("BleedFail", {name: actor.prototypeToken.name}) + " (" + game.i18n.localize("Rolled") + " " + bleedingRoll + ")"; + await actor.addCondition("dead") + } + else if (bleedingRoll % 11 == 0) + { + msg += "
" + game.i18n.format("BleedCrit", { name: actor.prototypeToken.name } ) + " (" + game.i18n.localize("Rolled") + bleedingRoll + ")" + await actor.removeCondition("bleeding") + } + else + { + msg += "
" + game.i18n.localize("BleedRoll") + ": " + bleedingRoll; + } + } + + await Promise.all(actor.runScripts("applyCondition", {effect, data : {bleedingRoll}})) + if (args.suppressMessage) + { + let messageData = game.wfrp4e.utility.chatDataSetup(msg); + messageData.speaker = {alias: this.effect.name} + messageData.flavor = this.effect.name; + return messageData + } + else + { + return this.script.scriptMessage(msg) + } + \ No newline at end of file diff --git a/scripts/zUv9e0A3OEXWY9Mv.js b/scripts/zUv9e0A3OEXWY9Mv.js new file mode 100644 index 0000000..c8b1c93 --- /dev/null +++ b/scripts/zUv9e0A3OEXWY9Mv.js @@ -0,0 +1,4 @@ +let item = await fromUuid("Compendium.wfrp4e-core.items.pLW9SVX0TVTYPiPv") +let data = item.toObject(); +data.system.specification.value = 9 - this.actor.system.characteristics.s.bonus +this.actor.createEmbeddedDocuments("Item", [data], {fromEffect : this.effect.id}) \ No newline at end of file diff --git a/scripts/zY4ZjY7uyKIKMYmX.js b/scripts/zY4ZjY7uyKIKMYmX.js new file mode 100644 index 0000000..10f3700 --- /dev/null +++ b/scripts/zY4ZjY7uyKIKMYmX.js @@ -0,0 +1,8 @@ +this.script.scriptMessage(await game.wfrp4e.tables.formatChatRoll("fleshy-curse")) + +let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {skipTargets: true, appendTitle : ` - ${this.effect.name}`, fields : {difficulty : "hard"}}) +await test.roll(); +if (test.succeeded) +{ + this.effect.delete() +} \ No newline at end of file diff --git a/scripts/zadppy7FEbXvgUON.js b/scripts/zadppy7FEbXvgUON.js new file mode 100644 index 0000000..8b87ec9 --- /dev/null +++ b/scripts/zadppy7FEbXvgUON.js @@ -0,0 +1,84 @@ + let characteristics = { + "ws" : 5, + "bs" : 0, + "s" : 0, + "t" : 0, + "i" : 0, + "ag" : 10, + "dex" : 10, + "int" : 0, + "wp" : 0, + "fel" : 5 + } + let skills = ["Perception", "Sleight of Hand", "Stealth (Urban)"] + let skillAdvancements = [10, 10, 10] + let talents = ["Criminal", "Etiquette (Criminals)"] + let trappings = ["Rope, 10 yards", "Lockpick", "Mask"] + let items = [] + + let updateObj = this.actor.toObject(); + + for (let ch in characteristics) + { + updateObj.system.characteristics[ch].modifier += characteristics[ch]; + } + + for (let index = 0; index < skills.length; index++) + { + let skill = skills[index] + let skillItem; + skillItem = updateObj.items.find(i => i.name == skill && i.type == "skill") + if (skillItem) + skillItem.system.advances.value += skillAdvancements[index] + else + { + skillItem = await game.wfrp4e.utility.findSkill(skill) + skillItem = skillItem.toObject(); + skillItem.system.advances.value = skillAdvancements[index]; + items.push(skillItem); + } + } + + for (let talent of talents) + { + let talentItem = await game.wfrp4e.utility.findTalent(talent) + if (talentItem) + { + items.push(talentItem.toObject()); + } + else + { + ui.notifications.warn(`Could not find ${talent}`, {permanent : true}) + } + } + + for (let trapping of trappings) + { + let trappingItem = await game.wfrp4e.utility.findItem(trapping) + if (trappingItem) + { + trappingItem = trappingItem.toObject() + + equip(trappingItem) + + items.push(trappingItem); + } + else + { + ui.notifications.warn(`Could not find ${trapping}`, {permanent : true}) + } + } + + + await this.actor.update(updateObj) + this.actor.createEmbeddedDocuments("Item", items); + + function equip(item) + { + if (item.type == "armour") + item.system.worn.value = true + else if (item.type == "weapon") + item.system.equipped = true + else if (item.type == "trapping" && item.system.trappingType.value == "clothingAccessories") + item.system.worn = true + } \ No newline at end of file diff --git a/scripts/zi8Z3NlwVj3IfgAW.js b/scripts/zi8Z3NlwVj3IfgAW.js new file mode 100644 index 0000000..70c5434 --- /dev/null +++ b/scripts/zi8Z3NlwVj3IfgAW.js @@ -0,0 +1,10 @@ +if (this.item.system.quantity.value) +{ + this.item.system.reduceQuantity(); + let actor = Array.from(game.user.targets)[0]?.actor || this.actor; + actor.applyEffect({effectData : [this.item.effects.contents[3].convertToApplied()]}) +} +else +{ + this.script.scriptNotification("None left!", "error") +} \ No newline at end of file diff --git a/scripts/ziG9H5Kdb7xC3dFE.js b/scripts/ziG9H5Kdb7xC3dFE.js new file mode 100644 index 0000000..3d360af --- /dev/null +++ b/scripts/ziG9H5Kdb7xC3dFE.js @@ -0,0 +1 @@ +return !args.skill?.name.includes(game.i18n.localize("NAME.Art")); \ No newline at end of file diff --git a/scripts/zk44dFEGkylB7kW6.js b/scripts/zk44dFEGkylB7kW6.js new file mode 100644 index 0000000..f1d1ccd --- /dev/null +++ b/scripts/zk44dFEGkylB7kW6.js @@ -0,0 +1,9 @@ + let modifier; let target = args.data.targets[0] + if (target.actor.details.size.value == "tiny") + modifier = 30 + if (target.actor.details.size.value == "ltl") + modifier = 20 + if (target.actor.details.size.value == "sml") + modifier = 10 + + args.fields.modifier += (modifier || 0); // Offset size modifier \ No newline at end of file diff --git a/scripts/zphxI8VSWbNQCMBy.js b/scripts/zphxI8VSWbNQCMBy.js new file mode 100644 index 0000000..1034c1b --- /dev/null +++ b/scripts/zphxI8VSWbNQCMBy.js @@ -0,0 +1 @@ +args.size = "lrg" \ No newline at end of file diff --git a/scripts/zqShIJnrRReGgP94.js b/scripts/zqShIJnrRReGgP94.js new file mode 100644 index 0000000..bddd877 --- /dev/null +++ b/scripts/zqShIJnrRReGgP94.js @@ -0,0 +1,15 @@ +let {added, removed} = this.effect.getFlag("wfrp4e", "propertiesChanged"); + +for(let property of (added || [])) +{ + let hasValue = game.wfrp4e.config.propertyHasValue[property]; + if (!args.item.system.qualities.value.find(i => i.name == property)) + { + args.item.system.qualities.value.push({name : property, value : (hasValue ? 2 : null)}) + } +} + +for(let property of (removed || [])) +{ + args.item.system.flaws.value = args.item.system.flaws.value.filter(i => i.name != property) +} \ No newline at end of file diff --git a/scripts/zsiV6XEHlCNGLLPl.js b/scripts/zsiV6XEHlCNGLLPl.js new file mode 100644 index 0000000..8911fdc --- /dev/null +++ b/scripts/zsiV6XEHlCNGLLPl.js @@ -0,0 +1 @@ +return args.skill?.name == game.i18n.localize("NAME.SetTrap"); \ No newline at end of file diff --git a/scripts/zsoTVkHe4nHY1M52.js b/scripts/zsoTVkHe4nHY1M52.js new file mode 100644 index 0000000..c227411 --- /dev/null +++ b/scripts/zsoTVkHe4nHY1M52.js @@ -0,0 +1 @@ +this.script.scriptMessage(await this.actor.applyBasicDamage(10 + parseInt(this.effect.sourceTest.result.SL), {damageType : game.wfrp4e.config.DAMAGE_TYPE.IGNORE_AP})) \ No newline at end of file diff --git a/scripts/zzk2uRSFjFHB5kjw.js b/scripts/zzk2uRSFjFHB5kjw.js new file mode 100644 index 0000000..df8f9a1 --- /dev/null +++ b/scripts/zzk2uRSFjFHB5kjw.js @@ -0,0 +1,9 @@ + + let roll = Math.ceil(CONFIG.Dice.randomUniform() * 10) + if (args.test.isFumble && roll == 1 && !args.test.result.misfire) + { + args.test.result.misfire = game.i18n.localize("Misfire") + " (Rolled 1)" + args.test.result.misfireDamage = eval(parseInt(args.test.result.roll.toString().split('').pop()) + args.test.item.Damage) + } + else if (args.test.isFumble && roll != 1) + args.test.result.other.push("Misfire Roll: " + roll) \ No newline at end of file