Yanfly's Plugin Help : More Currencies

Hello !

I'm using some Yanfly's Plugins ( I have all the collection )
I have a slight problem with MoreCurrencies.
I added two more currencies to my game.
The problem is that in order to implement them in the game, you have to add them via Variables.

The problem is that I don't know how to display, after a fight, the number of "Coins" earned during it. I can display the amount of Variable X, but it doesn't display the amount won.

Does anyone know how to do this?

Translated with www.DeepL.com/Translator (free version)
using variables for a different currency = recommend rather
than holding the item as currency (which works too) and this
shows easely.

for variable. you probably need to a 2nd variable that is gained,
than after somehow variable1 += variable 2 (variable 2 is the total),
variable 1 what you won.

as I dont exactly know how that plugin entirely works, lunatic code might
be usefull, but you can use items instead if that is easier for you.
The idea is good, i'm gonna try this one.
NEWS !

The solution worked but.. Now, each time i do the same battle, i win the currencie in X2..
Exemple : I win 8 first battle, then i win 16+, then 32+, then 64+ etc....
I use Variable 1 as currencie won, then variable 2 = Varaible 1 as total.

I don't understand. There is a picture, maybe it could help
RPG1.png
I think you should remove the fisrt variable += aléatoira 2...14
to variable 3 = aléatoira
than variable 5 += variable 3

you probably need to play around this part.
if the variable is the same for every troop, you can use the base to add them.

a better way probably is, just use the 2nd line and the first line on the enemies.
which gives the value of dropped currency, than troopbase can be constant the same.

(I can be wrong) but you can test it out and see how it goes. so only have to
do that line 1x instead of multiple times.

because I think troopbase from yanfly run the troopdata ID and run it once,
it counts for the rest of the troop ID's.

if there is a mistake, you can correct it faster instead of each single one.
YES Thank you ! It worked !
Thanks a lot for your help

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-plugin-help-more-currencies.148504/