Compatibility script needed

I'm using Venka's crafting script, and Galv's fishing minigame script. I want to be able that when you successfully catch a fish in the minigame, it gives an xp towards the fishing profession from Venka's script. As of now, you can set common events to the fishes, however it cancels out the minigame, and you need to start out. Someone could write a script, so that I can assign to each fish how much xp they give or something similar. And it would be cool too if when you earn enough xp to level up the profession, a message pops up in the minigame too.

Here is the links to the scripts mentioned:

Venka Crafting

Galv Fishing minigame
I'm not sure if this would actually need a whole script.
$craft[replace with fishing id].gain_exp
in Galv's script?

You could try putting it in the caught method, which was line 968 for me.
Yeah, thanks, that worked. However, this method only grants always one number of xp (like when i define it like $craft[9].gain_exp(3), it will always give me 3 xp, no matter what kind of fish I fish out). Is there a way that I can define which types of fish how many xp they grant?

Like I want to lets say a regular fish to give 3 xp, an octopus to give 5 xp, a shark to give 10 xp, etc.
You could try using $craft[9].gain_exp(GFISH::FISH[@fish_id][15]).
If you use that, you would need to put the xp for the fish after the "custom txt" property.
Of course, every single fish would need it.
That's one way to do it.
Thank you, it worked! 🙂 This can now be closed.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-script-needed.80094/