Hello, BikerBones! Welcome to TASVideos.
Such a script would be a documentation itself. I'm not aware of someone actually releasing a single script for a GC/Wii game for reference or demonstration. Maybe I missed it, who knows. IIRC, there's at least one submission where Dolphin 5.0 LUA (mentioned in the submission text) was used, so you may give it a try to find it and contact its author. There must be a reason why he/she used that fork.
The recent
publication of Dragon Warrior 4 for NES provides a library of how a NES game can be brute-forced. I don't Lua at all, but as I understand, there is a core script of how to do basic actions and movements and a lot of scripts for mesh buttons for battles/movement for each game walkthrough chunk (a set of screens of a chapter) until the game is complete.
It can be used for reference of what should be done after all useful RAM addresses are found.
The only problem is, it was written for Bizhawk emulator, so it might have a different RAM address basis and who knows what else.