Crymic's Macro 101 Guide : Console, Tokens and Actors for FoundryVTT

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 16

  • @farslayer6325
    @farslayer6325 3 ปีที่แล้ว +5

    All I can say is Thank You!! It's been very hard finding macro information at the beginner level, but you've hit the spot. Too many places make assumptions about how much I should already know. Now that I know HOW to access the variables for use in macros, I can start experimenting with simple homemade macros. My own goal is to make a very simple attack macro using selected-token attributes and a target-token AC value. A primer on accessing target token attributes next time would be much appreciated!

  • @felipealfredo5252
    @felipealfredo5252 3 ปีที่แล้ว +3

    Wow, this is by far the most important piece of information I've received about macros in Foundry. I have been an avid user of the "macro polo" community in the Foundry discord because I couldn't find most of the information you shared here. I've tried the Foundryvtt API and I didn't find it that useful or friendly. Using the console as you explained in the video is a much better way to learn and modify macros. Thanks!

  • @alejandrogarcia6187
    @alejandrogarcia6187 3 ปีที่แล้ว +1

    Thanks a lot, very helpful to get started.

  • @coneylove9600
    @coneylove9600 9 หลายเดือนก่อน

    Hi - how would I target any tokens that are adjacent to my controlled token in a macro?

    • @Crymic
      @Crymic  9 หลายเดือนก่อน +1

      Depends on what you're using. If it's Midi-QoL you can use target field and set your range and target type. In range set it to special. It will automatically target all near by. You can also use MidiQOL.findNearby.
      If you want it in a normal macro. You'll need to filter using canvas.tokens.placeables then filter by Ray distance between the caster and target.

    • @coneylove9600
      @coneylove9600 9 หลายเดือนก่อน

      Someone helped me out and suggested this:
      const posToken = canvas.grid.grid.getGridPositionFromPixels(token.x, token.y);
      const targetIds = canvas.tokens.placeables.reduce((acc, e)=>{
      const posTarget = canvas.grid.grid.getGridPositionFromPixels(e.x, e.y);
      const isNeighbor = canvas.grid.isNeighbor(posToken[0], posToken[1], posTarget[0],posTarget[1]);
      if(isNeighbor) acc.push(e.id);
      return acc;
      },[]);
      @@Crymic

  • @ianbarnes9619
    @ianbarnes9619 3 ปีที่แล้ว

    How are you getting the formatting in the marco writing tool. Is there a module you need to activate? At the moment it doesn't add brackets etc. on my computer

    • @Crymic
      @Crymic  3 ปีที่แล้ว +1

      I mentioned in the video description the modules being featured. In this case it's macro editor

    • @ianbarnes9619
      @ianbarnes9619 3 ปีที่แล้ว +2

      @@Crymic sorry. And thank you. I was on my phone and it wasn't showing the description.

  • @MegaFootDude
    @MegaFootDude 5 หลายเดือนก่อน

    Is this tutorial still accurate? When I follow along, what you're seeing in your console is not what I'm seeing in my console.

    • @Crymic
      @Crymic  5 หลายเดือนก่อน +1

      In v11 they moved into system instead of data. So _token.actor.data.data is now just _token.actor.system. When I made this video v7 - 9 was out.

    • @MegaFootDude
      @MegaFootDude 5 หลายเดือนก่อน

      @Crymic thanks so much. I'll look for that when I dive into it next.

    • @lordsofgallipaerogers2959
      @lordsofgallipaerogers2959 2 หลายเดือนก่อน

      @@Crymic can you remake or recommend another video? It was a great video, the coding is just outdated apparently.

    • @Crymic
      @Crymic  2 หลายเดือนก่อน

      @@lordsofgallipaerogers2959 yeah a remake is in the works. I've been trying to structure out a video series.

    • @lordsofgallipaerogers2959
      @lordsofgallipaerogers2959 2 หลายเดือนก่อน

      @@Crymic excellent. I'll see what i can get to work till then

  • @vampiregoat69
    @vampiregoat69 ปีที่แล้ว +1

    why does this shit have to be so damn complicated?