Tiffypowers79

Villager
Member
Joined
May 11, 2021
Messages
6
Reaction score
0
First Language
English
Primarily Uses
RMMV
So, in my game, I'd like to have the player collect items from battles. Said items could then be sold to someone for a fixed fee each time. Let's say it's 100g per item, if they had two, it'd be 200g. Is there a way to do this without any plugins?
 

ScorchedGround

Blizzards most disappointed fan (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
620
Reaction score
832
First Language
German
Primarily Uses
RMMV
The easiest way would be to make the items cost 200g, which would mean they can be sold for 100g at any shop by default.

If you want to make it into a event, you could do it with variables.

Control Variables -> Game Data -> Item -> Select the item in question to get the total amount

Then you multiply that same variable by 100.

Then you add party gold by the amount of the variable.

Then you remove all items of that type from the inventory.
 
Last edited:

Thefirelion

TheFireLion Game Studio
Veteran
Joined
Mar 25, 2017
Messages
150
Reaction score
47
First Language
Spanish
Primarily Uses
RMVXA
Through events you could achieve this with a variable that stores the item you want (a variable created based on this, stores the ID of the item and the quantity you have at the moment), followed by as many conditions as you need. Example: If you have 5 of "x" item, the condition is checked, and "oh, I see you have 5 of "x"... , take 500 gold".
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,661
Reaction score
8,483
First Language
German
Primarily Uses
RMMV
of course - that is basic eventing.

to be more precise, you can use control variable - game data section to check how many items the player has, then multiply that with the gold amount by another control variable command and then reduce the items and add the gold

edit: ninja'd
 

Tiffypowers79

Villager
Member
Joined
May 11, 2021
Messages
6
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thanks so much, y'all. I understand how to do it now.
 

Latest Threads

Latest Posts

Latest Profile Posts

I couldn't help myself, so I edited the tiles a bit and made a birdhouse :LZSsmile: I hope I will finish the town today!Screenshot 2021-09-17 134349.png
How do I find the threads I have watched? It's been so long I've forgotten :kaoswt:
So far, this is how the wall tileset its looking in-editor. :kaoswt2:
1631863283853.png
Still thinking on details to add.
Added a plugin to RMMV Plugin Releases with all relevant info but it looks like the topic wasn't approved for whatever reason. Cool.
Working in the IT industry:
- "How long does it take?".
- "It takes 1 month".
- "What if we add more people to the project?".
- "It would take 2 months".

Forum statistics

Threads
115,130
Messages
1,087,457
Members
149,636
Latest member
Mikhail95
Top