How to create a shop with variable prices

Discussion in 'RPG Maker MV' started by dwiseman57, Nov 15, 2017.

    Tags:
  1. dwiseman57

    dwiseman57 Dan Member

    Messages:
    6
    Likes Received:
    0
    Location:
    London
    First Language:
    English
    Primarily Uses:
    N/A
    Can anyone help? I've been googling for hours and nothing I try seems to work... I want to be able to set the prices for items in a Shop Event, based on the value of a variable.
    For example, the value of "Potion" is set elsewhere and stored in a variable. When the player goes to a shop, I want the sell price of "Potion" to equal the previously set variable. Any ideas?
     
    #1
  2. Frogboy

    Frogboy I'm not weak to fire Veteran

    Messages:
    1,240
    Likes Received:
    1,303
    Location:
    North Carolina, U.S.
    First Language:
    English
    Primarily Uses:
    RMMV
    Your best bet may be to event your own shop for this. Yanfly's Common Event Menu/Window (?) could probably be utilized to good effect for something like this. I am not aware of any plug-in that does what you're looking for although I've never looked. I assume you have, though.
     
    #2
  3. dwiseman57

    dwiseman57 Dan Member

    Messages:
    6
    Likes Received:
    0
    Location:
    London
    First Language:
    English
    Primarily Uses:
    N/A
    Thanks for your reply Frogboy :) Yes the problem I am finding is, with hundreds of items in the game, the event is MASSIVE and has so many branches etc...
    I'll keep looking but if anyone else has any ideas that would be helpful. A short term fix would be if anyone knows how to "check number of item x in possession, where item x is an ID stored in a variable". That way at least I could use the "select item" command to make my own shop
     
    #3
  4. jayray

    jayray Jay Ray Games and Art Design- Oklahoma City, OK Veteran

    Messages:
    132
    Likes Received:
    94
    Location:
    Oklahoma City, OK
    First Language:
    English
    Primarily Uses:
    RMMV

Share This Page