Come onto the discord. Maverick and/or Lazerus are usually willing to help people write mod code.
It seems you're trying to modify a dictionary. To do so, you need to modify the dictionary object after it's created, usually in globals.gd, func init(). Feel free to check my mod code for about 50 examples of how I modded the code.