DogeWorm

That Insomniac
Veteran
Joined
Apr 30, 2016
Messages
68
Reaction score
3
First Language
English
Primarily Uses
So I want it to make it so that whenever you buy something, then it gets sent to the front desk instead of your inventory, and you have to pick it up there. Is this possible without a script, or no?
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
988
Reaction score
833
First Language
English
Primarily Uses
N/A
If you want the actual shop scene to still be there, no. 


But there is an event workaround in which you use "show choices" to buy things and store the item ID of the thing bought in variables, then give the player the item corresponding to the ID at the front desk.
 

DogeWorm

That Insomniac
Veteran
Joined
Apr 30, 2016
Messages
68
Reaction score
3
First Language
English
Primarily Uses
So, any recommended scripts for this?
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,502
Reaction score
411
First Language
German
Primarily Uses
RMMV
There is an Event way, but it includes much Work. And there is an Script equivalentway which works same but makes nearly no work (sorry not very familiar with those and specialy not in MV so here is the standard editor way).


Here is the Solution for Buy only Shops maybe both also works(Not Tested):


You need 1Variable which u can reuse and 2Variables for each Item the Store keeper offers.


Eventpage pseudo Code:


Control Variable1 set to Item Amount of Potion in inventory


Open shop scene


after shop scene


Control Variable2 set to Item Amount of Potion in inventory


Control Variable2 substract Variable1


Conditional Branch Variable2 more than 0 (That means you bought some Items)


If yes: Control Variable3 add  Variable2 (Which contains the amount of items you will get)


Change Items by Variable2 (This removes the bought items before the player will ever notice that they were in the inventory


end


Make the counter event


do some conditional branches in it and the item change command.


I hope this helps to get into the correct direction.
 
Last edited by a moderator:

DogeWorm

That Insomniac
Veteran
Joined
Apr 30, 2016
Messages
68
Reaction score
3
First Language
English
Primarily Uses
Cool good to know, but I don't believe that I will be using this.
 

Latest Threads

Latest Posts

Latest Profile Posts

Progress on one of my projects has been slow, but I'm at a spot now where I feel like sharing the four main characters.

From left to right we have: Amabel, Tibby, Dusty, and Wren.

tibbyrpgcast.jpg
I'm in a much better mood about my game than I was 2-3 days ago. I keep switching between sideview and front because of the amount of assets needed for side (I'm drawing it all myself)... but I've decided to stick with front, for my own sanity. sidenote... people, planning is important. I've spent so long on just getting my game's ideas off the ground because I didn't plan ahead.
unknown.png

"Fight me."
I'll finally wash my clothes today!
SA46ATTACK.gif :kaojoy:New Arab character in action.

Forum statistics

Threads
110,609
Messages
1,054,687
Members
143,736
Latest member
wildsky
Top