That sounds perfect. We just use it if we need to modify an attack after it has occured.
Printable View
I’ll check the ranged attack later today. I also need to download and digest the height extension. @GKEnialb, I will likely reach out to you when I get to that part.
Here is a screenshot and a full log. Fantasy grounds unity latest live version. Only this extension loaded.
Error when dragging a ranged attack from the chat to the combat tracker:
ERROR: Script execution error: [string "scripts/manager action attack custom.lua"]:635: bad argument #1 to 'lower' (string expected, got nil)
Updated to handle the ranged attacks from chat.
Having this error on using "composite longbow" on a PC.
Attachment 46210
It looks like it works now. Thank you, that will be a great help.
I see that we now get a post in the chat when doing ranged attacks saying:
s actorNode: '[databasenode = {databasenode = { charsheet.id-000002}
I am guessing that has something to do with the fix. It would be nicer if it did not show in chat, but since it works I am happy :)
I have not posted a full report on this since I think you also are seeing this in the chat, right?
Sorry, that’s some debugging I missed when I was cleaning up the code. I’ll get rid of it.
@dellanx, I’ll check that tonight.
@Svandal, I removed that debug statement.
@dellanx, from the error that was raised it looks like the "Subtype" field on the composite longbow entry for that character is blank; it should say "Martial Ranged". The extension code is using that to figure out whether the weapon can be used at 5 or 10 range increments. I've put in a check to see if it is blank, so you shouldn't get the error any more. If you do, I'll need to look at your campaign's db.xml to see what the problem is.