Joshua Stream Pre
Page 8 of 9 First ... 6789 Last
  1. #71
    Quote Originally Posted by dellanx View Post
    Where may I find the new Token Height extension? Can't seem to find the post. Thanks!
    linky link... https://www.fantasygrounds.com/forum...ight-Indicator
    Last edited by Zygmunt Molotch; June 11th, 2021 at 03:56.

  2. #72

  3. #73
    Can we have an option of disabling the automatic flanking effect?
    It causes more trouble than it is worth in my opinion. The flanking button is more than enough.

  4. #74
    Quote Originally Posted by Svandal View Post
    Can we have an option of disabling the automatic flanking effect?
    It causes more trouble than it is worth in my opinion. The flanking button is more than enough.
    I'm not sure yet how to interact with the options panel. In the meantime, I just uploaded a version that doesn't do any flanking calculation, but still recognizes the "Flank" modifier button. Not as good as a switchable option, but should help for now.

  5. #75
    Quote Originally Posted by dogfisc View Post
    I'm not sure yet how to interact with the options panel. In the meantime, I just uploaded a version that doesn't do any flanking calculation, but still recognizes the "Flank" modifier button. Not as good as a switchable option, but should help for now.
    Add this to onInit of a named script:
    Code:
    OptionsManager.registerOption2('AUTO_FLANK', false, 'option_header_game', 'opt_lab_autoflank', 'option_entry_cycler', 
    		{ labels = 'opt_autoflank_on|opt_autoflank_off', values = 'on|off', baselabel = 'opt_autoflank_on', baseval = 'on', default = 'on' })
    Then you can use
    Code:
    if OptionsManager.isOption('AUTO_FLANK', 'on') then
    to see if it is still enabled.

    You can give the option a title by adding a string named opt_lab_autoflank and set the enabled/disabled labels with opt_autoflank_on and opt_autoflank_off.
    bmos' extensions
    he/him | Discord Tag: wil.thieme#3396

  6. #76
    turning flanking as an option off, would be most welcome

    it's frequently wrong for our combats

    but the range stuff is fantastic!

  7. #77
    Thanks @bmos! I’ll work on it when I get some time.

  8. #78
    Would it be possible to get a version of only flanking? I am attempting to hack a 4E version but running into a lot of errors. :-)

  9. #79
    Hey, Dogfisc

    Bmos solved an error I got last night playing pf1e

    A Spider, Giant Tarantula, which has a blank feat field

    created the error errror.pngerrror.pngerrror.png

    in
    manager_action_attack_custom.lua
    the function
    npcHasFeat
    needs to accept blank strings, like so

    function npcHasFeat(ctNode, sFeat)

    local sLowerFeat = StringManager.trim(string.lower(sFeat or ""));
    local sFeatList = DB.getValue(ctNode, "feats", "");
    local sLowerFeatList = StringManager.trim(string.lower(sFeatList));
    return string.match(sLowerFeatList, sLowerFeat);

    end
    this is Bmos's fix, I'm always bugging him for debugging

    as you can see, the Official Creature is also coded wrong, but thats for the Official Bug report thread
    Last edited by Zygmunt Molotch; July 19th, 2021 at 14:53.

  10. #80
    And here is a bug report. Compatability error with token height extension:
    https://www.fantasygrounds.com/forum...ight-Indicator

    It has to be something in one of the last patches of token height, it worked correctly before:

    See attached files, here is an explanation:
    Fantasy grounds unity latest live version. Only this and token height extension.

    When I try to attack with my NPC cyclops with a heavy crossbow (or other NPCs with ranged weapons) I can do it if I target something in the combat tracker (drag the attack to the combat tracker)
    But If I drag the attack onto a token on the map (both tokens are in the combat tracker) I get this error:
    Handler error: [string "scripts/manager_combat.lua"]:325: attempt to index local 'token' (a number value)

    If I try to attack with a PC (in this case a PC with compsite longbow) I get this error if I drag the ranged attack from the PC sheet action tab directly to the combat tracker, or if I drag the attack onto a token on the map:
    Script execution error: [string "scripts/manager_combat.lua"]:325: attempt to index local 'token' (a number value)
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

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