krbz999 / requestor Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
DnD5e: 2.0.2
Foundry: 10.285 (Forge hosted)
Requestor: 10.0.2
It could be something I'm doing wrong, but when I try to use (as a macro) the following for example,
Requestor.dnd5e.rollAbilitySave("str", 12);
what gets displayed in the chat log is instead a request for an intelligence saving throw of DC 10. No matter what text is put in the quotes for the save type or what number is given for the dc, it's always the same. If I try the previous code without quotes, there's an error, as well as using curly brackets in the parenthesis (at first I copied the code from the description page as is but foundry didn't seem to accept the curly brackets).
Any help on how to how to get it working as expected would be much appreciated!
I love the Popout feature and would like to use it exclusively. I believe it would help to have a way to make sure Requestor calls in a macro uses Popout ONLY and does NOT generate a chat box request.
Hello,
I did not understand how I could configure so that the result of the dice roll does not appear in the chat but just in private in response to the GM (but maybe it's not possible).
Thank you for your answer.
I want to create "one shot" request and remove it after button press. Is there a way to do it without parsing chat's HTML?
I am trying to send the actor that is being targeted by the player when the button is created so that the GM can choose to click the button to execute the macro.
I have a handle to the actor and am able to get the name to add to the button label but I want to send it via the buttonData. However, when the GM clicks the button, the scope has changed.
How can you send additional/out of scope data since when I send active_target it fails.
const targets = game.user.targets;
const targetToken = Array.from(targets)[0]
const active_target = targetToken.document._actor
await Requestor.request({
description: "Request for GM.",
buttonData: [{
permission: "GM",
label: Apply Fatigue to " + active_target.name
action: async () => {
await game.hm3.macros.changeFatigue("+1", active_target)
}
}]
});
I feel it would be helpful to make it so that if when both the Popout OR the Chat Requestor button is used, the other disappears as well if both were generated.
I'm sorry, I dont understand how I should use the whisper array nor the speaker object. Tried many things but i'm not finding something that works. Could you show me a syntax example?
Readme does not state that token, actor, character, and event are declared as helpers.
Hi!
Your github page/readme is wonderfully formatted. The page on foundry looks pretty rough. I spent 5 or so minutes thinking I needed to include the /
script in the macros themselves before realizing that was formatting for something else. Not sure if there's any way to fix that but it would be nice for newbs such as myself.
Still a remaining data
lingering somewhere.
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.