#Rigger Effect Macro Troubleshooting
1 messages ยท Page 1 of 1 (latest)
This channel is the right place to discuss things when the subject is at the intersection of modules, macros, and the system itself. ๐
So I've added the new effect to the vehicle, and on effect toggle (on), it's set to run the code copied from control-rig.js
under effects is it under inactive, or is it under persistent?
It starts as Inactive
What happens when you activate it?
It bumps up to "Persistent Effects"
But the code doesn't fire?
I see no indication that the code fires (e.g. the effect name doesn't change, skill ratings aren't added)
Ooh, I see a console error when I enable it: ReferenceError: key is not defined
can you send a screenshot of the error?
Did you remove any skills from the rigger?
I have not played with the skill list, no
like maybe any of the piloting or the gunnery skill?
There is a reason for that question.
whistles innocently and slips away into the shadows
I can confirm that the rigger possesses ranks in Pilot Ground Craft, Gunnery, and the like
it doesn't need ranks, the skill just has to be there. may do an edit to dynamically check for them so if one is missing it doesn't thrown an error.
But the error you got is on the check for the control rig
So... Do they have a Cyberwear item whose name starts with "Control Rig"?
They do
can you run the following in terminal for me and send the result
game.actors.getName("Test Rigger").items.getName("Control Rig (R1)")
Just replace Test Rigger with the name of the character in question
This is a V11 foundry instance correct?
can you expand the item and send it to me. or just copy it and send it as a code snippet in here?
Here's the item in question
I have found the error. use the one I just shared. I missed a change in the forEach Loop
I changed from a standard for loop to a forEach loop and missed a line
I have pushed that fix into the repo as well. @clever idol, we should be good to close the thread
Thanks for the help @remote gale !