scripting help for a battle type system.

ok everyone so im fairly new to creating scripts for use and im not entirely sure how i would go about doing something that i would like to do. so here is what i am trying to do: 

im trying to create a location where the main character can take crystals gained from defeating enemies and use them to battle monsters like a pick and choose what you battle sort of thing. i was also looking to add exp multipliers to it like using the amount of spare crystals the character has like here is a basic formula 

character has 7 crystals for enemy X character uses 1 crystal and can battle the enemy over and over again. character uses  crystals as multipliers gaining a multiplier of 6 

enemy exp gained normally 2, after using the multiplier = 12. 

has anyone seen anything like this or know how this can be done in scripts. please let me know. 
Part of that can be done without scripts, for example the crystals might be enemy drops, or they might be harvested from an event.

If the crystals are items, they can be set for almost any effect when using them - up to calling a common event for some special effects.

However, a lot depends on what type of battles you want to use in the game: evented or random.

With random battles from the map's encounter table you'll have to use scripts to effect the XP after the battle.

With evented battles (each monster a map event with battle processing), you might be able to event "Bonus XP" on conditions after the battle.

If you want that extra xP displayed on the battlescreen instead of after battle, then you'll have to use scripts in this case as well.

Just one info:

What 90% of other game makers call "scripting" is called "eventing" in RPGM - making short conditional structures with a limited set of commands inside the game.

What RPGM calls "scripting" is more in the line of "Programming" as you can change and replace the entire game engine with scripts in RPGM.
ok cool thank you, i had already had an idea of using the crystals as enemy drops but i was having trouble trying to create a place like a boss rush mode but with a pick and choose your enemy thing. thank you

Original thread: https://forums.rpgmakerweb.com/threads/scripting-help-for-a-battle-type-system.15099/