![spacemandev](/img/default-banner.jpg)
- 8
- 72 626
spacemandev
Registrace 29. 03. 2010
Working on Foundry VTT content
Macros 102
Github Link: github.com/spacemandev-git/fvtt-tutorials
You want the "attackMacro.js" file :)
League of ExtraOrdinary Foundry Developers Discord: discord.gg/6JgYaeK
Please remember to like this video and comment what kind of content you want to see next!
You want the "attackMacro.js" file :)
League of ExtraOrdinary Foundry Developers Discord: discord.gg/6JgYaeK
Please remember to like this video and comment what kind of content you want to see next!
zhlédnutí: 11 487
Video
Github Releases to Distribute FoundryVTT Modules
zhlédnutí 3,4KPřed 3 lety
In this video we cover how to use Github Releases to share your modules with other people. UPDATE/FIX: One thing you can do is instead of pointing to the module.json in the release, point to /releases/latest/download/module.json instead, this will let Foundry auto update correct. If you want to see the source code for this video: github.com/spacemandev-git/releasetest If you want to track downl...
FoundryVTT Macros 101
zhlédnutí 41KPřed 3 lety
I had planned like five macros for this video, and after the first realized it was already 30 min long. So the Macro videos will be split into a couple parts. All the code that I go over in them will be found here: github.com/spacemandev-git/fvtt-tutorials Please let me know in the comments what you'd like to see me cover next!
Shared Content Module
zhlédnutí 3KPřed 3 lety
If you found this video helpful, please consider supporting me at: ko-fi.com/spacemandev This video will go over how to move content between worlds in Foundry VTT It goes over this reddit post: www.reddit.com/r/FoundryVTT/comments/fvw3c7/how_to_create_a_tiny_module_for_shared_content/
Introduction to Foundry Development
zhlédnutí 10KPřed 3 lety
If you like this content and want to support me: ko-fi.com/spacemandev In this video we'll cover the bare basics of foundry development. This video serves as an introduction into a series of videos that'll cover the Foundry API in depth. Thanks for watching and please like and subscribe :D Foundry Discord: discord.gg/bZPqFKx League of Extraordinary Foundry Dev's Discord: discord.gg/6JgYaeK Forg...
Risk Legacy A New World Game 1
zhlédnutí 462Před 4 lety
Using Foundry to play the game Risk: Legacy First game of the original game.
SWADE Foundry Setup
zhlédnutí 3,8KPřed 4 lety
@Spacemandev in Foundry Discord Modules I used in this video: SWADE Statblock Importer SWADE Macros Simple Token Mold Compendium Hider Search Anywhere Pings Deselection Dice So Nice Combat Utility Belt
Battleshots
zhlédnutí 235Před 4 lety
Battleships! We draw two 50ft x 50ft grids. Instead of the ships being hidden, they are placed on the grid so everyone can see. The players stand on their side, and shoot a basket/volley/soccer ball over to try hit an enemy ship. The ship locations are known, the difficulty comes from landing the shots (like beer pong).You can only fire shots from your living ships. Putting your ships closer to...
Excellent information.
Adding the zip file for the full package helped me get Foundry updates working properly. Now to see about submitting my game system to Foundry.
Good video!
Great intro, but model out of data after V10 Foundry. I muddled through the new model and got it working for V11
Nicee info man. I'm trying to learn to make modules and even system in Foundry. Glad I've found this!
Amazing video, thank you sir.
Sorry to ruin the 999 upvotes with an additional one :/
Noooo!!! Where did you go? We need more you! I've been reading docs, watching "tutorials", scouring Reddit... "Macros 101" and "Macros 102" are the most useful Foundry scripting resources I've found. Just had to do a little rewiring to conform all the data.data.data.data stuff to the v10 system.* stuff. Please come back. Give us a chance to Patreon you into the stratosphere. Or the troposphere. Any -sphere you'd like. I'm making a homebrew TTRPG (like everybody else in the whole universe), and it's been so. much. fun. But Foundry's documentation is a nightmare (thanks for publishing your horrifying API and three paragraphs of explanations, guys!). You're awesome. Please consider returning. You'd get a lot more traction now that so many of us have hopped from Roll20 to Foundry. Just saying. Even the wind is speaking. Listen to it: "Spaaaaaacemandeeeeeeev... come baaaaaaaaack... make videos... make moneeeeeeeeeeeeee..."
I know this video is ancient, but I have to say, you absolutely threw me for a loop at 26:19, casually tossing that out that [[ actor.items.find(item => item.data.name == "Health Potion") ]] There is so much javascript nonsense going on there I had to dig through multiple pages of documentation to find out that its array searching works off of running extra functions within functions, which aren't written like functions. And which return values different from what the functions themselves return. All that instead of, I don't know, just doing string comparisons like I've seen in basically every other language I've worked with.
Thanks for this video! I was having trouble figuring out where to start to explore the data model, the bit starting at 2:28 helped a lot to find the right objects :)
man its awesome!
what is the difference between the download Zip stat and the download json stat
wish the macro text wasn't blurry, but still good info.
Need a new one of these since V10+ has changed the data model so severly.
been struggling with getting to grips with macros in Foundry coming from using Roll20 Chat Macros regularly. This video gave me enough to get my first macro in Foundry up and running! Very helpful and really struggled to find anything else so informative
Thank you for the video!
Your video is super useful! Thanks! I'm building macros for my GM, and now I have an idea how to put macros into the packs.
Dude is legendary. I've been avoiding writing macros (and have been having AI write them for me) because I have no experience with coding. Thank you for explaining how to read and use them. I definitely feel like I have a good idea of what I'm looking at now when I'm reading macros.
how do you do it with ai? chat GPT failed to give me anything that works.
I've been doing tons of work in Foundry for a custom TTRPG system I'm building and this is video has taught me more about macros and scripts than hours of googling ever could. Following along has not only been incredibly helpful, but also a fantastic way to learn. Thank you for the help!
Great video! But...couldn't you simplify the new health code to this? let newHealth = min(actor.data.data.health.value + healthpotion.data.data.attributes.hp_restore.value, actor.data.data.health.max)
Even with a few stuff being out of date, I was still able to learn from the video. Good content.
For anyone using this as a reference as of 12/2022: main.yml: Change -master to -main main.yml: set-output is being or has been deprecated. change the format to run: echo "version=$(node ./.github/workflows/get-version.js)" >> $GITHUB_OUTPUT These changes allowed me to get this up and running as described in the video.
Also change the v2 in actions/checkout. like below uses: actions/checkout@v3
Truly awesome work but I followed your code to the tee and it didn't work. VSC also doesn't let me use main() keeps trying to change it. I got fustrated after couple of hours messing with it
Hey is there any way to send messeges to you let me know i want to learn more from you but if you can please make a video to explain to me how to do it Basicly i want an atack macro for a sword but when i click on it i need a window to pop up and let me choose from multiple option and of course depending on the choice to afect the roll . Like for example i want to atack someone but i am in water i want the macro to ask me are you fighting in water. and if the answerr is yes to basicly subtract a penalty of 20 out of a d 100 roll. Please contact me i realy need some help to get things started .
Thanks for this.
I noticed you are using Visual Studio. Which product are you using and how do you have it setup so that it will prompt the objects?
i see now that it is VS Code. Thanks I will try to get mine setup.
Fandamntastic! Thank you for these videos.
I cant get " /r 1d20 + @health.value " to work the console says "Assertion failed: Input argument is not an HTMLInputElement"
I think your macro is set to script. Try changing it to chat
You have to re-interpret as somethings have changed, and it changes even more if you are using a different system. I'm testing in Dnd 5e, on version 9, and I have to type "/r 1d20 + @attributes.hp.value"
This is sooo helpfull, thank you so much !
Thanks for these videos. Sorry to see the series end.
Nice work here. Thanks for the tutorial. It was helpful to see you use of the console for debugging.
any plans on updating this as its almost 2 years old and the visuals are all changed...
This is such a shit program holy hell
What ever happen to this guy?
Are you going to do more video tutorials on macros? The world needs you lol.
Hello, I understand I'm a bit late lol, lovin the videos, great help. I just recently got foundry and started watching your videos. Quick question, how would you go about adding `flavor` to the `roll.toMessages` and have it populate with your selection of weapon from the drop down list? Or is there a different way to get the same effect? Thanks
spacemandev would you be interested in discussing a macro that moves a token on the canvas? I am trying to spice up my vortex warp automation.
wow! you covered a lot of topics! Thank you so much!
the best video on macros!. you are an excellent teacher too. do you plan to teach to code? it would be great!
Thx!Your video helped me a lot
I'm trying to make a Macro for Channel Divinity: Knowledge of the ages. where it automatically consumes a charge of the actor.resource labelled Channel Divinity, and if I can I want to input what skill I'm proficient in for the duration. Then I want it to remind me after 10 minutes to remove that proficiency. But I can't for the life of me figure out how to even find what resource has the label "Channel Divinity", anyone able to help with that? P.S. These tutorials are awsome, TY SO MUCH, been learning so much
What would happen if you put if(canvas.tokens.controlled.length<>1)
I enjoy Foundry and this video has been so helpful, thankyou.
does this not work anymore? I cant even get past the first step when doing the drinking potion macro i get something like Uncaught (in promise) SyntaxError: Unexpected token ')' at Function (<anonymous>) at Macro._executeScript (foundry.js:14802) at Macro.execute (foundry.js:14765) at MacroConfig._onExecute (foundry.js:25943) _executeScript @ foundry.js:14802 execute @ foundry.js:14765 _onExecute @ foundry.js:25943 async function (async) _onExecute @ foundry.js:25942 dispatch @ jquery.min.js:2 v.handle @ jquery.min.js:2
for some reason on my end, it will only roll the weapon damage when i click the first button that appears on chat. after that, the other button's doesn't do anything. would anyone know what's going on?
really good video, hope to see more in the future
Very helpful series. Thank you! I am stumped though. I am trying to get VSCode to work alongside Foundry. The cut'n'paste approach you used seems like exactly what I want to emulate, but my VSCode doesn't offer any of the helpful pop-up choices or autocomplete that you seemed to have. I'd guess that I need to point VSCode at one or more files that would provide that definition, but I can't puzzle that out. Any pointers?