SWADE Playlist
Page 20 of 20 First ... 10181920
  1. #191
    Ah, yes. I just checked. Thanks for testing this. Too bad for us PF2 groups, but still useful.

  2. #192
    Nice extension. I did find the conflict that was happening mentioned before with the onDrop error. We both have extensions, Critically Awesome Essentials and Token Height extension, that both add to image_record_step... so, I figured out the deconflict, is you wished to make them work together nicely.

    in your /campaign/scripts/image.lua you can add the following script to the bottom of the file.

    Code:
    function onDrop(x, y, draginfo)
    	local custData = {};
    	custData.x = x ;
    	custData.y = y ;
    	custData.imgCtrl = self ;
    	if  draginfo.getType() == "token" then
    		draginfo.setCustomData(custData);
    	end;
    end
    Additionally I am attaching a copy of your extension with the deconflict installed in it. I also added the version notes and advanced the version to 3.7

    V/r,
    Diablobob
    Last edited by Diablobob; Yesterday at 05:05.

  3. #193
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    245
    Thanks! I've incorporated that into v3.7. I also reverted a change to extension.xml, which hopefully will fix other instances of randomly disappearing image functions (see Functions from image.lua disappearing). Not sure about the faction dropping thing - maybe one of these will fix that for free...

  4. #194
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    245
    Quote Originally Posted by Weissrolf View Post
    Thanks for the extension! I patched the XML file to include Pathfinder 2 and it seems to work properly.

    Diagonal target range calculation confuses me, though. Why is this 10 ft instead of 5 ft?

    I added PFRPG2 in v3.7. For variant diagonals, I extend the 2D calculation of long leg + 1/2 short leg to be longest leg + 1/2 of both shorter legs. In this case (5x5x5), it's 5 + 10/2 = 10.

  5. #195
    So for the calculation, are using the a squared + b squared = c squared?... cause it would be easy with height squared + map token distance squared = square of calculated distance

    If you want to look into this let me know and I can get you the callouts if you have a tough time finding them...

    I was just curious if your method

  6. #196
    GKEnialb's Avatar
    Join Date
    Jul 2017
    Location
    Castle Rock, CO
    Posts
    245
    For raw measurements (House Rule option in 5E, map option in other rulesets), I use the actual distance (sqrt(x^2+y^2+z^2). For the 5E standard, I extend the 2D method by taking the max in each dimension. For the 5E variant / normal diagonals for most other rulesets, I use long leg + half of each shorter leg (again extending the 2D formula). If you want the exact measurements, it's available in the raw distances option in the maps. If you use the default for the rulesets, though, I want to mimic the spirit as much as possible.

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (1 members and 1 guests)

  1. Farnaby

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Fantasy Grounds Fridays Pre

Log in

Log in