Ajout des fichiers sources des compendiums

This commit is contained in:
2024-11-10 18:39:40 +01:00
parent 6ebd2ee576
commit aad256bfee
1085 changed files with 266662 additions and 0 deletions

View File

@ -0,0 +1,33 @@
name: Appel à la chance
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/commodities/flowers/clover.webp
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (selected) {
selected.rollAppelChance();
}
else {
ui.notifications.info('Pas de personnage sélectionné');
}
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.XHNbjnGKXaCiCadq
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671220038331
modifiedTime: 1671233849101
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.XHNbjnGKXaCiCadq
duplicateSource: null
folder: null
sort: 0
_id: UzAWljmFq5sY702w
_key: '!macros!UzAWljmFq5sY702w'

View File

@ -0,0 +1,88 @@
name: Chuchoter aux joueurs
type: script
author: Hp9ImM4o9YRTSdfu
img: icons/svg/deaf.svg
scope: global
command: >-
/**
* Provides a dialog to whisper specific players. If you have tokens selected, it will automatically default to try and whisper those players.
* @Author: Nelson#3570
*/
let applyChanges = false;
let users = game.users.filter(user => user.active);
let checkOptions = ""
let playerTokenIds = users.map(u => u.character?.id).filter(id => id !==
undefined);
let selectedPlayerIds = canvas.tokens.controlled.map(token => {
if (playerTokenIds.includes(token.actor.id)) return token.actor.id;
});
// Build checkbox list for all active players
users.forEach(user => {
let checked = !!user.character && selectedPlayerIds.includes(user.character.id) && 'checked';
checkOptions+=`
<br>
<input type="checkbox" name="${user.id}" id="${user.id}" value="${user.name}" ${checked}>\n
<label for="${user.id}">${user.name}</label>
`
});
new Dialog({
title:"Whisper",
content:`Whisper To: ${checkOptions} <br>
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" cols="50"></textarea><br>`,
buttons:{
whisper:{
label:"Whisper",
callback: (html) => createMessage(html)
}
}
}).render(true);
function createMessage(html) {
var targets = [];
// build list of selected players ids for whispers target
for ( let user of users ) {
if (html.find('[name="'+user.id+'"]')[0].checked){
applyChanges=true;
targets.push(user.id);
}
var messageText = html.find('[name="message"]')[0].value
}
if(!applyChanges)return;
ChatMessage.create({
content: messageText,
whisper: targets
});
}
flags:
core:
sourceId: Compendium.foundry_community_macros.community-macros-misc.QTDeg4HOYCAmr4dK
ownership:
default: 2
Hp9ImM4o9YRTSdfu: 3
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671237211578
modifiedTime: 1671237211578
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Compendium.foundry_community_macros.community-macros-misc.QTDeg4HOYCAmr4dK
duplicateSource: null
folder: null
sort: 0
_id: ALAVJEEP3iJosOoi
_key: '!macros!ALAVJEEP3iJosOoi'

View File

@ -0,0 +1,33 @@
name: Encaissement
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/svg/bones.svg
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (selected) {
selected.encaisser();
}
else {
ui.notifications.info('Pas de personnage sélectionné');
}
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.XHNbjnGKXaCiCadq
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671220038331
modifiedTime: 1671234017623
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.XHNbjnGKXaCiCadq
duplicateSource: null
folder: null
sort: 0
_id: WD6T8AdRbX2Ylxqe
_key: '!macros!WD6T8AdRbX2Ylxqe'

View File

@ -0,0 +1,33 @@
name: Jet d'éthylisme
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/consumables/drinks/alcohol-beer-stein-wooden-metal-brown.webp
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (selected) {
selected.jetEthylisme();
}
else {
ui.notifications.info('Pas de personnage sélectionné');
}
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.XHNbjnGKXaCiCadq
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671220038331
modifiedTime: 1671233646086
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.XHNbjnGKXaCiCadq
duplicateSource: null
folder: null
sort: 0
_id: mvub1dRHNFmWjRr7
_key: '!macros!mvub1dRHNFmWjRr7'

View File

@ -0,0 +1,43 @@
name: Jet de moral
type: script
author: Hp9ImM4o9YRTSdfu
img: icons/magic/control/mouth-smile-deception-purple.webp
scope: global
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (!selected) {
ui.notifications.info('Pas de personnage sélectionné');
return;
}
const dialogMoral = new Dialog({
title: `Jet de moral`,
content: `Jet de moral en situation`,
buttons: {
malheureuse: { label: `malheureuse`, icon: "<i class='fa-regular fa-face-frown'></i>", callback: () => selected.jetDeMoral('malheureuse') },
neutre: { label: `neutre`, icon: "<i class='fa-regular fa-face-meh'></i>", callback: () => selected.jetDeMoral('neutre') },
heureuse: { label: `heureuse`, icon: "<i class='fa-regular fa-face-smile'></i>", callback: () => selected.jetDeMoral('heureuse') }
},
});
dialogMoral.render(true)
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.aJ0QGnXAXT0WiXbk
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671235038906
modifiedTime: 1671236054480
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.aJ0QGnXAXT0WiXbk
duplicateSource: null
folder: null
sort: 0
_id: 2VvH2rmxV33jGjMU
_key: '!macros!2VvH2rmxV33jGjMU'

View File

@ -0,0 +1,33 @@
name: Jet quelconque
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/sundries/gaming/dice-runed-tan.webp
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (selected) {
selected.roll();
}
else {
ui.notifications.info('Pas de personnage sélectionné');
}
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.XHNbjnGKXaCiCadq
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671220038331
modifiedTime: 1671233500655
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.XHNbjnGKXaCiCadq
duplicateSource: null
folder: null
sort: 0
_id: bnJnbKDHpbqY8Pr9
_key: '!macros!bnJnbKDHpbqY8Pr9'

View File

@ -0,0 +1,26 @@
name: Météo marine
type: chat
author: Hp9ImM4o9YRTSdfu
img: icons/magic/air/wind-weather-sailing-ship.webp
scope: global
command: /meteo
flags:
core:
sourceId: Macro.EPhCYk7PFMPlIFhS
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671237060687
modifiedTime: 1671237060687
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.EPhCYk7PFMPlIFhS
duplicateSource: null
folder: null
sort: 0
_id: 9mYZfKoi4ZYHydxa
_key: '!macros!9mYZfKoi4ZYHydxa'

View File

@ -0,0 +1,26 @@
name: Recherche et tirage
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/tools/scribal/magnifying-glass.webp
command: game.system.rdd.commands.tirage()
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.ZFWPNdQBjQs9z0YW
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 10.5.4
coreVersion: '12.331'
createdTime: 1673472449426
modifiedTime: 1673655461651
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.ZFWPNdQBjQs9z0YW
duplicateSource: null
folder: null
sort: 0
_id: iVZnxOxhCMpkvYh3
_key: '!macros!iVZnxOxhCMpkvYh3'

View File

@ -0,0 +1,33 @@
name: Repos
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/svg/sleep.svg
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (selected) {
selected.repos();
}
else {
ui.notifications.info('Pas de personnage sélectionné');
}
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.XHNbjnGKXaCiCadq
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671220038331
modifiedTime: 1671234271278
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.XHNbjnGKXaCiCadq
duplicateSource: null
folder: null
sort: 0
_id: 6LRZ8DOVfqotIEsi
_key: '!macros!6LRZ8DOVfqotIEsi'

View File

@ -0,0 +1,27 @@
name: Signe draconique
type: chat
author: Hp9ImM4o9YRTSdfu
img: systems/foundryvtt-reve-de-dragon/icons/tmr/signe_draconique.webp
scope: global
command: /signe +
flags:
core:
sourceId: Macro.RmOLbONUNnINcqCO
ownership:
default: 0
klwAm8zAKxw8YBLf: 3
Hp9ImM4o9YRTSdfu: 3
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1671237375774
modifiedTime: 1671237375774
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.RmOLbONUNnINcqCO
duplicateSource: null
folder: null
sort: 0
_id: MJByzsEdneZ64P56
_key: '!macros!MJByzsEdneZ64P56'

View File

@ -0,0 +1,46 @@
name: Terres médianes du rêve
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg
command: |-
const selected = game.system.rdd.RdDUtility.getSelectedActor();
if (!selected) {
ui.notifications.info('Pas de personnage sélectionné');
return;
}
if (!selected.isHautRevant()) {
ui.notifications.info(`Le personnage ${selected.name} n'a pas le don de haut-rêve`);
return;
}
const dialogMoral = new Dialog({
title: `Monter dans les TMR`,
content: `Monter dans les TMR`,
buttons: {
normale: { label: `normale`, icon: `<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-normal.svg" alt="Montée dans les Terres M&eacute;dianes !"/>`, callback: () => selected.displayTMR("normal") },
rapide: { label: `rapide`, icon: `<img class="button-img" src="systems/foundryvtt-reve-de-dragon/styles/img/ui/icon-tmr-rapide.svg" alt="Montée accélérée dans les Terres M&eacute;dianes !"/>`, callback: () => selected.displayTMR("rapide") },
},
});
dialogMoral.render(true)
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.zCAQxg2duk0j3s5r
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1669250715114
modifiedTime: 1671236057731
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.zCAQxg2duk0j3s5r
duplicateSource: null
folder: null
sort: 0
_id: ERsBfwsodzH6UX4x
_key: '!macros!ERsBfwsodzH6UX4x'

View File

@ -0,0 +1,26 @@
name: Thème astral
type: script
scope: global
author: Hp9ImM4o9YRTSdfu
img: icons/magic/nature/symbol-moon-stars-white.webp
command: game.system.rdd.AppAstrologie.create()
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.oA0HPFeFK6YMspAX
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 10.6.19
coreVersion: '12.331'
createdTime: 1678127868791
modifiedTime: 1678237392810
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.oA0HPFeFK6YMspAX
duplicateSource: null
folder: null
sort: 0
_id: koqhiDJSGP4gQ4vf
_key: '!macros!koqhiDJSGP4gQ4vf'

View File

@ -0,0 +1,26 @@
name: Tirer le tarot
type: chat
scope: global
author: Hp9ImM4o9YRTSdfu
img: systems/foundryvtt-reve-de-dragon/icons/tarots/dos-tarot.webp
command: /tirer tarot
ownership:
default: 0
Hp9ImM4o9YRTSdfu: 3
flags:
core:
sourceId: Macro.HBZSKR9OHCQbLcTC
_stats:
systemId: foundryvtt-reve-de-dragon
systemVersion: 11.1.0
coreVersion: '12.331'
createdTime: 1669469547231
modifiedTime: 1671237401618
lastModifiedBy: Hp9ImM4o9YRTSdfu
compendiumSource: Macro.HBZSKR9OHCQbLcTC
duplicateSource: null
folder: null
sort: 0
_id: vTfJTFYYiRu8X5LM
_key: '!macros!vTfJTFYYiRu8X5LM'