Ship Parts

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
957
Reaction score
780
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,464
Reaction score
390
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.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I have been listening to the new music tracks for MZ included in the sample game projects ... for way too long. Quite catchy!
Small rant: While using SRD Hud maker for a battle hud, I typed in the wrong script call and got an error, but then forgot to delete the piece that caused the error before closed the Hud maker and hit F5 to restart the game. Now everytime I engage in a battle my game crashes...
:kaolivid:
Would Jump into Javascript be best off continuing to break down the MV core files, or would people prefer a quick detour to cover everything that's changed in the core from MV to MZ?

Forum statistics

Threads
100,531
Messages
976,929
Members
132,081
Latest member
Kaezyelnatz
Top