#Rigger Effect Macro Troubleshooting

1 messages ยท Page 1 of 1 (latest)

clever idol
#

@native galleon @remote gale

#

This channel is the right place to discuss things when the subject is at the intersection of modules, macros, and the system itself. ๐Ÿ™‚

native galleon
#

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

remote gale
#

under effects is it under inactive, or is it under persistent?

native galleon
#

It starts as Inactive

clever idol
#

What happens when you activate it?

native galleon
#

It bumps up to "Persistent Effects"

clever idol
#

But the code doesn't fire?

native galleon
#

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

remote gale
#

can you send a screenshot of the error?

native galleon
#

(all modules/systems updated as of this morning)

remote gale
#

Did you remove any skills from the rigger?

native galleon
#

I have not played with the skill list, no

remote gale
#

like maybe any of the piloting or the gunnery skill?

clever idol
#

There is a reason for that question.
whistles innocently and slips away into the shadows

native galleon
#

I can confirm that the rigger possesses ranks in Pilot Ground Craft, Gunnery, and the like

remote gale
#

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

clever idol
#

So... Do they have a Cyberwear item whose name starts with "Control Rig"?

native galleon
#

They do

remote gale
#

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?

native galleon
#

Yep, returns just fine

#

Foundry 11.305, SR 0.14.1

remote gale
#

can you expand the item and send it to me. or just copy it and send it as a code snippet in here?

native galleon
remote gale
native galleon
#

Boom, macro fired successfully!

#

Thank you!

remote gale
#

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

native galleon
#

Thanks for the help @remote gale !