Home > Tutorials > RPG Maker VX > Zelda-like shop that runs out!
Zelda-like shop that runs out!
First,make a shopkeeper event. It is your 'dummy event'. Now make your item (if your item does not have any event charas for it,even in the tileset,`look for the closest thing to it)event. Make a variable representing the number of this item in stock. Now,with your item event, make a new page. Check Variable (variable of item) is (max number in stock) or more. Put a different icon,like papers. Now make a blank event. Here is what you need:
Show text:<put whatever text>
show choices
if yes
Conditional branch(number of g you need)or more
Show text:<put text that says you got item>
Change item:<item>+<what number you need of this item>
change gold:-<number of g that allows you to buy>
change variables:<items variable>plus 1
if no
Now, make a new page. Check off the same thing as your item's event. Put a message that says the item ran out.
Well,that wraps it up. You can repeat it endlessly.
|
|
Details
|
|
|