Meat rotting?

Discussion in 'RPG Maker VX Ace' started by VicWhite, Apr 16, 2016.

  1. VicWhite

    VicWhite Star rover Veteran

    Messages:
    261
    Likes Received:
    186
    Location:
    London
    First Language:
    Spanish
    Primarily Uses:
    N/A
    Hey community,


    here I am asking for help, hehe.


    I have a time event system for my project, and I would like that meat rots if you don't cook it. So:


    [Item] Meat can transform into [Item] Cooked meat via crafting.


    So my idea is, with the new day, [Item] Meat turns onto [Item] Spoiled meat.


    I have a common event "New Day" So my idea is:


    conditional branch: [Item] Meat is in inventory


    yes- Change [Item] Meat for  [Item] Spoiled meat


    else nothing


    Problem is I need to choose specifically how many of them. I guess if I put 1, only one will rot.


    Any ideas? Feedback?


    Thanks a lot!!
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,421
    Likes Received:
    6,485
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    use control variable : game data : item : meat in inventory to learn ho wmany meat is in the inventory and then use that number for the changes
     
    #2
    VicWhite likes this.
  3. VicWhite

    VicWhite Star rover Veteran

    Messages:
    261
    Likes Received:
    186
    Location:
    London
    First Language:
    Spanish
    Primarily Uses:
    N/A


    Thanks a lot Andar. When you have time, could you explain it "for a dumb mode"? I am very noob...
     
    #3
  4. Andar

    Andar Veteran Veteran

    Messages:
    28,421
    Likes Received:
    6,485
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    You open the control variable command, then select "game data" at the bottom part (usually defaults to map ID), then click on the dots to the right of that to open the next window where you select which game data (instead of the map ID) to load - the rest should be obvious
     
    #4
    VicWhite likes this.
  5. VicWhite

    VicWhite Star rover Veteran

    Messages:
    261
    Likes Received:
    186
    Location:
    London
    First Language:
    Spanish
    Primarily Uses:
    N/A
    Thanks again Andar  ;)   Will try it.
     
    #5
  6. Menos

    Menos Veteran Veteran

    Messages:
    36
    Likes Received:
    10
    First Language:
    English
    Another solution that someone might potentially like: you could also do this with a loop, removing one item until all have been removed. Either use the actual loop command and have the break condition be when no more of the item remain, or use a label and jump back to that label so long as the condition holds.


    I'm not sure if there would be any benefit to doing it this way over the previous suggestion, just offering it for anyone in case it seems easier or does have a benefit in more complex situations.
     
    #6

Share This Page