drewg13 / foundryvtt-scum-and-villainy Goto Github PK
View Code? Open in Web Editor NEWScum and Villainy game system for FoundryVTT
License: Other
Scum and Villainy game system for FoundryVTT
License: Other
Hi.
I'm using a macro with cooler chat message. I think you copy the style to the system.
code:
static async styledChatMessage(myTitle, message1, message2='') {
let chatData = {
speaker: null,
content: `<div style="position:relative; background: #ddd9d5;padding: 0.5rem; margin-left:-7px;margin-right:-7px;margin-bottom:-7px;margin-top:-27px"><label class="titulo" style="font-size:35px; color: #b02b2e;">${myTitle}</label><div style="position: absolute;top: 0;right: 0;width: 50px;height:50px;background: linear-gradient(45deg, #00000000 50%, #000000 50%);"></div><br><label style="font-size: 15px">${message1}</label><div style="margin-top:5px ;height: 5px;width: 100%;background: linear-gradient(20deg, #000000 70%, #ddd9d500 70%);"></div><p>${message2}</p></div>`};
ChatMessage.create(chatData, {});
}
I just want to thank you for the great module.
THANKS
Hi.
You have
I think it's duplicated.
Tks.
https://github.com/drewg13/foundryvtt-scum-and-villainy/blob/master/lang/en.json
Hi.
System like sav don't need a Combat Tracker. But, It's useful in many situations. If you tested the PBTA system you notice the CT works. I use it just to organize people anxiety lol.
If possible, please make it let you add chars to it and change the position.
Hi
Can you improve the item UI?
I want to add a big description to this Ur Artifact, but I can't format or link fvtt entities.
Suggestions:
What do you think about update this macro? So, you can change stress too.
const version = '1.1';
/*
Source: https://raw.githubusercontent.com/brunocalado/mestre-digital/master/Foundry%20VTT/Macros/Forged%20in%20the%20Dark/BladesintheDark-XpBar.js
icon: icons/sundries/misc/lock-open-yellow.webp
*/
let tokenD;
if (canvas.tokens.controlled[0]===undefined){
ui.notifications.warn("You must select a token!");
} else {
tokenD = canvas.tokens.controlled[0].actor;
main();
}
async function main() {
let attribute = [];
if(tokenD.type === 'character'){
attribute = Object.keys( game.system.model.Actor.character.attributes );
attribute.push("class");
attribute.push("stress");
} else if(tokenD.type === 'ship'){
attribute = ["crew"];
}
let attributeList = ``;
attribute.map((t) => {
attributeList += `<option value="${t}">${t}</option>`;
});
new Dialog({
title: `XP/Stress Bar - Manager - v${version}`,
content: `
<h2>Bar Size</h2>
<p>This will be the new max size.
</p>
<p>
<input type="number" min=1 max=12 id="xpBarSize" value="6"/>
</p><br>
<h2>Choose Bar</h2>
<p>
<select id="attribute" type="text" style="width: 100px;">
${attributeList}
</select>
</p>
`,
buttons: {
roll: {
label: "Change",
callback: (html) => {
changeActorSheetBar(html);
}
},
cancel: {
label: "Cancel"
}
}
}).render(true)
}
async function changeActorSheetBar(html) {
const xpBarSize = parseInt( html.find("#xpBarSize")[0].value );
let attribute = html.find("#attribute")[0].value;
console.log('--------------');
console.log(xpBarSize);
console.log(attribute);
console.log('--------------');
//attribute=''
if (attribute==='class') {
let updated = await Actor.updateDocuments([{_id: tokenD.id, "data.experienceMax": xpBarSize}]);
} else if (attribute==='crew') {
let updated = await Actor.updateDocuments([{_id: tokenD.id, "data.crew_experienceMax": xpBarSize}]);
} else if (attribute==='stress') { // Stress
let updated = await Actor.updateDocuments([{_id: tokenD.id, "data.stress.max_default": xpBarSize}]);
} else {
let key = "data.attributes." + attribute + ".expMax";
let updated = await Actor.updateDocuments([{_id: tokenD.id, [key]: xpBarSize}]);
}
}
Hi.
I was thinking about create a module with this. But, what do you think about add to the system?
The NPC sheet is super useful. I'm even replacing player clocks with it, they can write about the project.
I think it can be even more useful. What do you think about replace the Notable People field with a default foundry journal and let us to drag entities to this field? So, you can replace this simple text with links to these notable people in a form of NPCs sheets.
This is useful to put then on a scene with tokens. It's also useful to use Theate and other modules.
Thank you
I'm loving the system work that you've done and I'm looking to use it for a Star Wars themed game I'm about to start, but I found a few things when I was testing it out that might need attention.
I believe the following loads are incorrect:
Add Macro to System Compendium
Would be possible to add the faction objective clock to the universe sheet, with a clickable icon to show what is the objective?
That would have the effect to know at a quick glance how is the situation of all factions, perhaps throw some pressure at the players, especially if the "Note icon" only works if clicked by the GM.
to open every faction sheet to remember and adjust that is kind of a bummer, especially with many active factions...
Image add with the general concept
In any way thanks for the system, having a great time with it!
Hi,
I'm making notes to the npcs in a journal.
Would be possible to create a new actor: npc
It just need a space like the journal to make notes.
This is useful to add tokens to maps.
Is it possible to add STARSMITHS, GUILD OF ENGINEERS etc to the compendiums?
Hi!
Can you make the button Wanted roll for Entanglements?
I was writing a macro like the one for BID, but it'll be easier to roll from the universe.
bid macro: source: https://raw.githubusercontent.com/brunocalado/mestre-digital/master/Foundry%20VTT/Macros/Forged%20in%20the%20Dark/bid-entanglement.js
Hi.
What do you think about replace the planet icon by animated webp?
There is a free to use generator. I can share mine.
Is it possible to send a message to the chat when the player change the gambits?
This would make easier to follow the changes in gambits.
Example:
Current cerberus gambits: 1
Current cerberus gambits: 3
Very simple.
Hi. Very cool new feature.
I want to make a suggestion.
Savage Worlds did this and broke lots of stuff (macros, translations). They rolled back and used the solution above. Symbol detection on items titles are not reliable.
Thank you for everything.
Created new actor and tried to change the abilities or add a new one and un able to select a different one
The Cargo Eye special ability from the Stardancer is missing in the compendium. I realized this last night when my group chose it as an option (of course).
Hi.
I can't use HTML to format some entries. I need to use \n. Is there a way to make the text bold?
"description": "Você pode bloquear raios blaster com o Caminho (resistir com Convicção).\n\nSe resistir a um ataque de blaster, você pode gastar 1 de estresse para redirecionar o fogo e fazer seu próprio ataque com ele.",
Hi.
Can you add a way to delete a system from universe?
This is useful for who is using homebrew stuff.
This macro uses job tables to create a job. You can click the button to generate a journal.
If you want to use it. You need to change the name of the tables to english
Hi.
Can you add the modules with translations to somewhere in the readme?
This can be useful for:
tks
Br translation: https://github.com/brunocalado/scum-and-villainy-pt-br
Hi.
We experienced a bug. The player created this char and after that we lost the ability to open the actor sheet.
Actor Sheet
fvtt-Actor-kris-kynski.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.