Single map item shop for entire game

Discussion in 'RPG Maker VX Ace' started by Kikkerman, Mar 17, 2014.

Thread Status:
Not open for further replies.
  1. Kikkerman

    Kikkerman Villager Member

    Messages:
    5
    Likes Received:
    1
    Location:
    Kansas, USA
    First Language:
    English
    Hey everybody, this is my first post, I couldn't find an answer to the problem elsewhere so I hope it hasn't been asked yet.

    -----Goal------

    I would like to have all 4 maps to go to the same item shop, but upon leaving, return to the map they were previously on.

    ----Situation----

    The situation is this, I have a game that has 1 medium sized map, different sections open up after talking to person A, B, C, so on.

    To reach this goal the player talks with NPC A, B, C, so on .. each time they talk, they remove an evet blocking their path, to do so I simply change the map with a transfer screen, makes it look magic.

    So I have 1 map, copied 4 times.

    ------Reason-------

    For this item shop, it is originally a quest, get this item, return it, voila he now has the enthusiasm to sell again! After that, the item shop opens and the player can return to purchase items, weapons, and armor. Since it's a small gam that focuses on grinding, all items are available from the get go, just have to get enough gold.

    -----In Summary-----

    I'm open to suggestions, but I just feel so stuck. And considering this is my first game I plan on finishing I want to make a good impression, side missions and all.

    THANK YOU SO MUCH FOR YOUR HELP!
     
    #1
  2. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    you can set a variable to a certain value when you transfer from the map to the shop map, then upon leaving the shop, check the value of the variable and then transfer to the correct map
     
    #2
  3. Kikkerman

    Kikkerman Villager Member

    Messages:
    5
    Likes Received:
    1
    Location:
    Kansas, USA
    First Language:
    English
    Not going to lie, I'm .. really not sure how to go about that. I feel very ... noobish in that sense, but I've figured out making variables, even found the batch option to read groups of variables, but I'm not sure how to apply these variables to transfering. All I see are direct and variable designations, the variable option doesn't let me choose multiple though.
     
    #3
  4. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    210
    First Language:
    English
    Your idea for the shop is pretty much exactly how my dimentional rift works.

    You wat to set a variable for Map ID, set a variable for player location X, and Y. Then for the transfer event in the shop, leading out, transfer the player using the 3 variables you set.

    Note: Eveny gateway on the four maps that send you to the shop, make sure you set the 3 variables(you set the same 3 variables, no need to use different variable, so basically every doorway event leading to the shop, should be the exact same)
     
    Last edited by a moderator: Mar 17, 2014
    #4
    Kikkerman likes this.
  5. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    you don't need multiples... you just need 1 variable


    if you go to shop from map 1, set the variable to 1


    if you go from map 2, set it to 2


    then when you leave the shop, check the value of the variable... if it's 1, then perform transfer to map 1 and so on
     
    #5
  6. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    210
    First Language:
    English
    Lol what are you doing that for, it auto resets, no need for setting each map on It's own variable, you're just setting one variable for X map ID(where X is any map you transfer from), and every time you "transfer to the shop" it resets the map ID variable.

    To OP: Go to control Variable/Game Data/Map ID to set a map ID Variable Then go to Game Data/Char to set variables for X, and Y.
     
    Last edited by a moderator: Mar 17, 2014
    #6
    Kikkerman likes this.
  7. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    I never said anything about each map setting it's own variable, as I said it was just 1 variable. It's basically the same as what you're doing, saving the map ID into the variable.
     
    Last edited by a moderator: Mar 17, 2014
    #7
  8. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    210
    First Language:
    English
    You're saying if you go from map 1, set a 1 variable, and if you go from map 2 set a variable for 2,. Sorry but that's not the same,

    It's a single variable set every time you transfer to the shop(nomatter what map you transfer from, you're setting the same numbered variable), and you're using the same variable  as the transfer location when you leave shop., there's no multiple map checking or whatnot going on, no different variables set for each map or anything like that.
     
    Last edited by a moderator: Mar 17, 2014
    #8
  9. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    I said set the variable to 1 (which is basically, the MAP ID), and is basically setting just 1 variable to a certain value, not set 1 variable for map 1 then set another variable for map 2 and so on. I suggest you read more carefully next time.
     
    Last edited by a moderator: Mar 17, 2014
    #9
  10. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    210
    First Language:
    English
    There's no reason to be setting values at all, leave that be.

    All you're doing is recording the map ID of the map you're on when you transfer to shop, that's it, no values need to be set)
     
    Last edited by a moderator: Mar 17, 2014
    #10
  11. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    Variables don't auto-set themselves

    That is exactly a case of setting the value of a variable. IDK what other term you use for that. Lolz
     
    Last edited by a moderator: Mar 17, 2014
    #11
  12. Kikkerman

    Kikkerman Villager Member

    Messages:
    5
    Likes Received:
    1
    Location:
    Kansas, USA
    First Language:
    English
    Okay, so there was a small amount of conflict between answers, but I really started to understand it the way Zoltor was describing it, wow, this makes developing single points so much easier, can save a LOT of space too. Thanks to both of you for your amazingly hasty answers!

    I think I'll have to agree with Zoltors method the most because it's a quick code that I can use everywhere.

    It takes a villiage to help a new game designer figure out a problem!
     
    Last edited by a moderator: Mar 17, 2014
    #12
  13. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    It is the same method, he simply outlined it in a more direct way :)
     
    Last edited by a moderator: Mar 17, 2014
    #13
    Kikkerman likes this.
  14. Kikkerman

    Kikkerman Villager Member

    Messages:
    5
    Likes Received:
    1
    Location:
    Kansas, USA
    First Language:
    English
    Oh, I see, well I appreciate you taking the time to answer, sorry I couldn't follow along, now that I have more of an understanding about what to do I can see what you were saying a bit better. I was confused though, again, sorry!
     
    #14
  15. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    Well, sorry too, I'm not a fan of giving exact methods... if you understood Zoltor's outline, that's basically the explanation. :)


    plus you know, doing this while on the office is kinda risky. XD
     
    Last edited by a moderator: Mar 17, 2014
    #15
    Kikkerman likes this.
  16. Kikkerman

    Kikkerman Villager Member

    Messages:
    5
    Likes Received:
    1
    Location:
    Kansas, USA
    First Language:
    English
    HA! Risky indeed! At least it's giving advice on gaming forums and not something vastly inappropriate
     
    #16
    Engr. Adiktuzmiko likes this.
  17. whitesphere

    whitesphere Veteran Veteran

    Messages:
    1,688
    Likes Received:
    784
    Location:
    Somewhere on Earth
    First Language:
    English
    It sounds like it would be a lot easier to use a set of Conditions in the event which handles the Shop, rather than copying the map 4 times.  And, if you're merely doing this to have blocking NPCs unlock map areas, there's a much easier way than copying the map 4 times:

    For blocking NPCs, set each to require a Switch to be ON.  And, the Intro sets all of the Switches for the blocking NPCs to ON.    This makes the blocking NPCs all present at the start.

    To make an Intro, set transparency to On (check the System tab in the Database).

    Then, start the player in a tiny, empty  map.  The map contains a single Event set to autorun.

    This event displays your Intro text/movie/etc and sets any initial conditions such as the Switches/etc.   The last things the event does are transfer the player to the game start proper, then turn transparency off, in that order.

    The result is, when a quest completes, turn off the appropriate Switch in the Event and the NPC disappears.

    I've just started RPG maker myself, but have a lot of programming experience (none in Ruby though).  

    My advice:  If you want to accomplish something, see if a combination of Switches/Variables and event conditions can do it.  
     
    #17
  18. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    FYI recording a variable == setting a variable

    Where should player appear?
     
    #18
  19. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,640
    Likes Received:
    2,969
    Location:
    Philippines
    First Language:
    Tagalog
    I forgot when I wrote it, and after I hit "post" I've seen that Zoltor already posted one so I didn't edit it.
     
    #19
  20. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    210
    First Language:
    English
    Yes ofcourse, but there's no number values assigned to such(maybe if the default script is made to assign numbered values to each of the settings, instead of going by its function's key word, which would be dumb, you may need to script it that way, but as far as eventing goes, there's no numbered values applied to the act of setting a variable), that's what I was getting at with that reply.
     
    Last edited by a moderator: Mar 18, 2014
    #20
Thread Status:
Not open for further replies.

Share This Page