Thread: Getting range mods for targets
-
May 5th, 2020, 01:03 #1
Getting range mods for targets
Summary of problem: I want to automatically calculate range mods assuming A has targeted B on the Combat Tracker, and A and B are both tokens on a map, with an onMeasureVector method that returns the modifier.
I believe the correct insertion point for this code would be in my attack roll method:
Code:elseif rollable_attack or rollable_button_attack then rActor = ActorManager.getActor(sActor, node.getParent().getParent().getParent()); sType = "attack"; sDesc = "[ATTACK]"; sNode = node.getPath(); rRoll = { sType = sType, sDesc = sDesc, aDice = aDice, nMod = nMod, sNode = sNode }; end
-
May 5th, 2020, 07:13 #2
This has been done in some rulesets and an extension already. See this post: https://www.fantasygrounds.com/forum...l=1#post489701
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks