Random Variable Adds to a Variable

Guardinthena

Artist
Veteran
Joined
Nov 30, 2013
Messages
426
Reaction score
1,031
First Language
English
Primarily Uses
RMVXA
This little problem of mine is over my head. I've tried to find other forums that discuss the matter, and though they have shed insight, it has not solved my problem. I am attempting to set up an item in my game that is called 'Coin Pouch.' It is tied to a common event that is supposed to randomly determine how much money is in the coin pouch. It randomly determines it just fine. And adding it to my gold is no problem. The problem is I am using Yanfly's 'More Currencies' plugin for Silver and Copper in addition to Gold. In trying to add the random silver/copper variables to the variable that keeps track of the total Silver and Copper, it doesn't work.

Not sure if this is required but here's the link for Yanfly's More Currencies: http://yanfly.moe/2016/01/22/yep-060-more-currencies/

And a screen shot of what I have set up so far:

Coin purse.PNG
 

GuanyuMaker

Veteran
Veteran
Joined
Mar 9, 2015
Messages
63
Reaction score
74
First Language
Portuguese
Primarily Uses
RMMV
You're messing with your party currency pool by doing that.

change it:
" \i[314]s = random silver
random silver += \i[314]s "

for it:
"\i[314]s += random silver".

Do the same for copper.
 
Last edited:

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
This little problem of mine is over my head. I've tried to find other forums that discuss the matter, and though they have shed insight, it has not solved my problem. I am attempting to set up an item in my game that is called 'Coin Pouch.' It is tied to a common event that is supposed to randomly determine how much money is in the coin pouch. It randomly determines it just fine. And adding it to my gold is no problem. The problem is I am using Yanfly's 'More Currencies' plugin for Silver and Copper in addition to Gold. In trying to add the random silver/copper variables to the variable that keeps track of the total Silver and Copper, it doesn't work.

Not sure if this is required but here's the link for Yanfly's More Currencies: http://yanfly.moe/2016/01/22/yep-060-more-currencies/

And a screen shot of what I have set up so far:

View attachment 86613
It should be #20 = random 0...20
#15 += #20
Text: Party gain \V[20] Silver
 

Guardinthena

Artist
Veteran
Joined
Nov 30, 2013
Messages
426
Reaction score
1,031
First Language
English
Primarily Uses
RMVXA
GuanyuMaker and Isabella Ava thank you both so much for your speedy replies! GuanyuMaker, I got the pouches working using your suggestion! Thank you! They are adding together quite nicely and not overriding each other, like I feared. In regards to messing with the party gold pool, I'm going to have to do more testing to find out how badly it is. I am trying to simulate random loot when searching through objects like barrels, boxes, cupboards, etc. With this proof of concept down, I can start refining it. So again, thank you both so much!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top