spacemandev
spacemandev
  • 8
  • 72 626
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!
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...

Komentáře

  • @KatoKiyomasa1611
    @KatoKiyomasa1611 Před 14 dny

    Excellent information.

  • @DDCRExposed
    @DDCRExposed Před měsícem

    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.

  • @TheTheronal
    @TheTheronal Před 2 měsíci

    Good video!

  • @andrewmitchell3289
    @andrewmitchell3289 Před 3 měsíci

    Great intro, but model out of data after V10 Foundry. I muddled through the new model and got it working for V11

  • @Dani_Cano
    @Dani_Cano Před 3 měsíci

    Nicee info man. I'm trying to learn to make modules and even system in Foundry. Glad I've found this!

  • @xXAkirhaXx
    @xXAkirhaXx Před 4 měsíci

    Amazing video, thank you sir.

  • @3di17
    @3di17 Před 4 měsíci

    Sorry to ruin the 999 upvotes with an additional one :/

  • @Neopoleon-I
    @Neopoleon-I Před 4 měsíci

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

  • @Tigersight0
    @Tigersight0 Před 6 měsíci

    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.

  • @Michael-ls9eu
    @Michael-ls9eu Před 7 měsíci

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

  • @hexkamaz7747
    @hexkamaz7747 Před 8 měsíci

    man its awesome!

  • @jacobwilliams3271
    @jacobwilliams3271 Před 8 měsíci

    what is the difference between the download Zip stat and the download json stat

  • @andrewyurick7758
    @andrewyurick7758 Před 8 měsíci

    wish the macro text wasn't blurry, but still good info.

  • @kraegandragon
    @kraegandragon Před 9 měsíci

    Need a new one of these since V10+ has changed the data model so severly.

  • @leegamble1589
    @leegamble1589 Před 11 měsíci

    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

  • @7h3mon
    @7h3mon Před 11 měsíci

    Thank you for the video!

  • @7h3mon
    @7h3mon Před 11 měsíci

    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.

  • @elduderoni7630
    @elduderoni7630 Před rokem

    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.

    • @gorebello
      @gorebello Před rokem

      how do you do it with ai? chat GPT failed to give me anything that works.

  • @criticallyaccursed1628

    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!

  • @NateMcCloud
    @NateMcCloud Před rokem

    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)

  • @ErkIsEpic
    @ErkIsEpic Před rokem

    Even with a few stuff being out of date, I was still able to learn from the video. Good content.

  • @frstrm17
    @frstrm17 Před rokem

    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.

    • @mtgcarver
      @mtgcarver Před 10 měsíci

      Also change the v2 in actions/checkout. like below uses: actions/checkout@v3

  • @AlucardWoA
    @AlucardWoA Před rokem

    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

  • @alexrusanu3784
    @alexrusanu3784 Před rokem

    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 .

  • @majeric
    @majeric Před rokem

    Thanks for this.

  • @codewolf444
    @codewolf444 Před rokem

    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?

    • @codewolf444
      @codewolf444 Před rokem

      i see now that it is VS Code. Thanks I will try to get mine setup.

  • @rodrickcampbell8817
    @rodrickcampbell8817 Před 2 lety

    Fandamntastic! Thank you for these videos.

  • @SuperLamarrio64DS
    @SuperLamarrio64DS Před 2 lety

    I cant get " /r 1d20 + @health.value " to work the console says "Assertion failed: Input argument is not an HTMLInputElement"

    • @willrichardson6344
      @willrichardson6344 Před rokem

      I think your macro is set to script. Try changing it to chat

    • @miennai9448
      @miennai9448 Před rokem

      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"

  • @thomas054800
    @thomas054800 Před 2 lety

    This is sooo helpfull, thank you so much !

  • @drabodows
    @drabodows Před 2 lety

    Thanks for these videos. Sorry to see the series end.

  • @drabodows
    @drabodows Před 2 lety

    Nice work here. Thanks for the tutorial. It was helpful to see you use of the console for debugging.

  • @MrMeanSpeaks
    @MrMeanSpeaks Před 2 lety

    any plans on updating this as its almost 2 years old and the visuals are all changed...

  • @joshuabacker2363
    @joshuabacker2363 Před 2 lety

    This is such a shit program holy hell

  • @warzbent
    @warzbent Před 2 lety

    What ever happen to this guy?

  • @redmokah803
    @redmokah803 Před 2 lety

    Are you going to do more video tutorials on macros? The world needs you lol.

  • @wesleyoliver1580
    @wesleyoliver1580 Před 2 lety

    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

  • @thatclimberguy4883
    @thatclimberguy4883 Před 2 lety

    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.

  • @vitoremmanuel6939
    @vitoremmanuel6939 Před 2 lety

    wow! you covered a lot of topics! Thank you so much!

  • @miguelangelgarzon5104

    the best video on macros!. you are an excellent teacher too. do you plan to teach to code? it would be great!

  • @kkuroni
    @kkuroni Před 2 lety

    Thx!Your video helped me a lot

  • @SoloMona18
    @SoloMona18 Před 2 lety

    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

  • @fantasy3518
    @fantasy3518 Před 2 lety

    What would happen if you put if(canvas.tokens.controlled.length<>1)

  • @WanderingHusk
    @WanderingHusk Před 2 lety

    I enjoy Foundry and this video has been so helpful, thankyou.

  • @sleepinxonxbed
    @sleepinxonxbed Před 2 lety

    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

  • @MrSour1
    @MrSour1 Před 2 lety

    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?

  • @lokelindblad3841
    @lokelindblad3841 Před 2 lety

    really good video, hope to see more in the future

  • @jez5244
    @jez5244 Před 2 lety

    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?