I was trying to make it so that Splash would do a random water type move, so I set it up like Metronome, and put Flags CannotSplash in everything but the water moves. But when I went to test it out, it uses other type moves.
#-------------------------------
[SPLASH]
Name = Splash
Type = NORMAL
Category = Status
Accuracy = 0
TotalPP = 40
Target = User
FunctionCode = UseRandomMove
Description = The user flops around so much it stimulates it's brain and randomly produces any Water-type move
#-------------------------------
[SPLASH]
Name = Splash
Type = NORMAL
Category = Status
Accuracy = 0
TotalPP = 40
Target = User
FunctionCode = UseRandomMove
Description = The user flops around so much it stimulates it's brain and randomly produces any Water-type move