RPG Maker MV Tutorial #16 - Variables!

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • All right, so you got Variables.
    Like Switches, they're a collection of data that can be accessed and manipulated by each Event.
    Unlike Switches, they can be set to numbers, as opposed to be turned ON or OFF.
    Using the value of a single Variable, you can set up a timeline for events to preform certain actions.
    For example:
    - When Variable 1 is 0, some Events do this.
    - When Variable 1 is brought to 1, the Events change
    - At Variable 1 = 2, the Events do even more different things
    - And as the Variable continues to change, the Events continue to react.
    🔗 LINKS 🔗
    🐦 Twitter → / somerandev
    ⏰ TikTok → / somerandev
    💸 Patreon → / somerandev
    🦾 Website → sumrndm.site
    🚀 PATRONS 🚀
    Thanks to all my Patron Supporters:
    Marcelo, Nathan Cole, Marlene Siqueira, Cats777, Michael Canton, Marcellus Rivera, Mojaeng
    Wish to support me? Check out my Patreon!
    / somerandev
    - - - CREDITS - - -
    Background Music:
    RPG Maker DS Resource Pack
    "Peaceful World"
    #RPGMakerMV #RPGMaker #Tutorial

ความคิดเห็น • 213

  • @ToxicDerg
    @ToxicDerg 6 ปีที่แล้ว +253

    Joe gave yuo permission

    • @xeroaishintu5777
      @xeroaishintu5777 5 ปีที่แล้ว +5

      Something told me that I would see this here. It doesn't make me any less disappointed...

    • @MonoDerg
      @MonoDerg 2 หลายเดือนก่อน +1

      evil twin cousin, what brings yuo here??

  • @JessicaGaspan
    @JessicaGaspan 7 ปีที่แล้ว +224

    As a math major this makes a lot more sense to me, and it sure saves me a hell of a lot more time than making 12348087 switches lol

    • @simoncarlile5190
      @simoncarlile5190 7 ปีที่แล้ว +6

      Yeah, switches would get _really_ complicated with even simple scenarios.

    • @MrDube
      @MrDube 6 ปีที่แล้ว +5

      I fucking hate math

    • @suiken3149
      @suiken3149 5 ปีที่แล้ว +10

      For someone who sucks at math, this makes my head explode.

    • @jonathanmorris7445
      @jonathanmorris7445 4 ปีที่แล้ว

      I now know a little bit of math I didn’t before

    • @christianriedel1357
      @christianriedel1357 2 ปีที่แล้ว +2

      @@simoncarlile5190 Yeah, true, but usually variables don't get used the way this video shows. To keep an event from repeating itself, I would suggest you use a self-switch and create a new event page. This is the standard way and makes more sense in most cases.

  • @Gopher286
    @Gopher286 4 ปีที่แล้ว +38

    This makes me appreciate every NPC who ever gave me a healing potion in any game, ever.

  • @momby557
    @momby557 5 ปีที่แล้ว +148

    "You are allowed to pass"
    *Bob will remember that*

    • @riskyworks
      @riskyworks 3 ปีที่แล้ว +2

      That seems like a choice in a telltale game that could choose someone's death even though it makes no sense, tbh

  • @devillass6025
    @devillass6025 6 ปีที่แล้ว +43

    You're really good at making tutorials of this engine. You repeat things a lot but that's very okay because you end up talking fast so that it's a little difficult for me to catch on immediately, so that's why being repetitive works out. Also, it's a huge benefit to children, because it makes it easier for them to understand, how you explain and demonstrate so clearly and thoroughly. Subbed!

  • @XX-sp3tt
    @XX-sp3tt 5 ปีที่แล้ว +3

    How do we get the guy in front of the house to have a new location or at least the illusion of a new location when we step out so it doesn't look like he vanished into nothingness?

  • @revaryk6868
    @revaryk6868 6 ปีที่แล้ว

    Thanks for explaining variables. I've always been clueless at how stuff like this worked, so I'm glad to see someone make a simple tutorial for it.

  • @phoenixmanno5456
    @phoenixmanno5456 6 ปีที่แล้ว

    honestly its easier to follow him then u think, follow what hes doing, pause it to learn it at ur pace, go back if needed be, but now its fairly simple bc of him, thank u

  • @boudicaastorm4540
    @boudicaastorm4540 4 ปีที่แล้ว

    Yeah there was noooo discussion of variables at all in the in-game tutorial, so this is much appreciated.

  • @normad88
    @normad88 4 ปีที่แล้ว

    Okay. I have to say that these tutorials are genius. I hope you do not take offense to what I am going to say. You give a fantastic explanation, however it is lacking full detail for a tutorial. Of course, given it is a beginner tutorial, it is by design and that is why it is genius. RPG maker tutorials should all be a little vague because most of the enjoyment of using this tool to create games is by discovery.
    Thank you so much for teaching so much about this tool and for not over complicating something that isn't needed.

  • @chuckdude514
    @chuckdude514 5 ปีที่แล้ว

    This is actually kinda easy to understand and even optimize if you learn algorithms logic. I definitelly recommend it.

  • @simoncarlile5190
    @simoncarlile5190 7 ปีที่แล้ว

    I've almost earned a CS degree so I was okay for the most part, but this is potentially the most complicated part of RPG Maker. It kind of needs an in-depth treatment. How you handle variables can mean the difference between making a simple game with a lot of bugs or a really deep game that has few bugs or exploits.
    That being said, I still admire how much time you spent on these tutorials. I'd be completely overwhelmed without them.

  • @Rexafrek
    @Rexafrek 7 ปีที่แล้ว +21

    But what if the player talks to Bob in the left side? Bob wont be able to move to the left because the player is in his way and then the game stops. How can i fix that?

    • @haydengames3v2
      @haydengames3v2 7 ปีที่แล้ว +1

      On page 3 of "Condition Branch" you can set a "if event" if the character is facing right.

    • @simoncarlile5190
      @simoncarlile5190 7 ปีที่แล้ว +13

      That's what makes game design so difficult. You may have just finished a brilliantly scripted series of events only to realize that none of them trigger if the player approaches a door a wrong way or talks to the wrong person first.

    • @haydengames3v2
      @haydengames3v2 7 ปีที่แล้ว

      I use flow commands to stop that from happening, like a variable here or there.

    • @spiicycheesesauce1763
      @spiicycheesesauce1763 6 ปีที่แล้ว +26

      Instead of using the 'Move Left' command in custom route, you can use 'Move away from player' to make sure your target moves to the correct location.

    • @spiicycheesesauce1763
      @spiicycheesesauce1763 6 ปีที่แล้ว +2

      Instead of using the 'Move Left' command in custom route, you can use 'Move away from player' to make sure your target moves to the correct location.

  • @argbargmcticktock
    @argbargmcticktock 8 ปีที่แล้ว +3

    Thanks again for another informative video. I look forward to more!
    Follow up question for you. How can you make it so that Bob is STILL there when you leave, but now one space over, like he was when you entered the house? Would that be an event that only triggered when the Variable in question was 3?

    • @SomeRanDev
      @SomeRanDev  8 ปีที่แล้ว +7

      The problem is that when you leave and enter a room again, all the Events reset to their original position and there's no way to change that.
      What you could do, is make it so there is a completely separate Event that appears using the same condition that causes the first Bob event to disappear.

  • @janinebelleestrada7096
    @janinebelleestrada7096 2 ปีที่แล้ว

    This is rare... This is the first time I understood variables

  • @leeh5948
    @leeh5948 5 ปีที่แล้ว +2

    For people who want Bob to stay away, you need to use Yanfly's plugin save event location.

    • @suuyasha2496
      @suuyasha2496 4 ปีที่แล้ว +1

      thank you :) works now for me - i dont know where I did the error but I couldn't recreate the scenario SRDude did here... but with the Plugin, it worked perfectly

  • @adakrai1097
    @adakrai1097 3 ปีที่แล้ว

    Bro this is very helpful, i preffer this than the switches lol

  • @chaoticdream715
    @chaoticdream715 8 ปีที่แล้ว

    Thank you so much for these tutorials! I have learned a lot and I feel ready to mess around with the rpg maker and learn more! You rock! :)

  • @iluvlittenanimations2.010
    @iluvlittenanimations2.010 3 ปีที่แล้ว

    I used to use scratch a lot, I have learned how to create pretty much anything through variables XD

  • @aj_mconline3284
    @aj_mconline3284 11 หลายเดือนก่อน

    If yoy guys read my commentary on the previous video, you will be able to learn how to do similar stuff with switches only.
    Thanks a lot for this videos man!
    kudos

  • @devalt1
    @devalt1 6 ปีที่แล้ว

    Fantastic tutorial mate! I very nice and easy to follow example. I can see in the comments some find a bit fast paced, so maybe address that for upcoming videos :)

  • @simoncarlile5190
    @simoncarlile5190 7 ปีที่แล้ว

    The problem with your solution is that if you go back up to talk to Joe after exiting the house, then the variable gets set back to 1. So Joe will be back in front of the house again since he only disappears if the variable is set to 3. Of course, you can still talk to him to get him to move again, but this creates a loop. You'd need to give Joe a new dialogue branch for the variable being set to 3 or just make Joe disappear entirely once the variable is set to 3.

  • @anexs
    @anexs 3 ปีที่แล้ว

    A complex switch! Thank you!

  • @Seumas-MacDhaibhidh
    @Seumas-MacDhaibhidh ปีที่แล้ว

    I would like all the doors on the first floor of a castle to close when exiting the castle through all of the exits and going outside. Would a variable be a better option to use for this, as opposed to switches?

  • @brazlyBW
    @brazlyBW 5 ปีที่แล้ว

    for some reason, the last part doesn't work for me like I did all the steps and followed it all but the only part which doesn't work is the last part the NPC stands at the place he was at the beginning

  • @peterSobieraj
    @peterSobieraj 3 ปีที่แล้ว

    But what if after speaking with Joe and Bob for first time player will go to overworld, instead of entering the house, and after that go back to town ?
    From what I understand variable1 will be set to 2, so Bob will say "Please enter the house", but he will still stand in front of house, blocking players way.

  • @toddgilmore118
    @toddgilmore118 ปีที่แล้ว

    Thanks for the tips!! How do I get 1 variable to be divided in half to check if player is either above or below half health, so I can display a health pic on screen showing parallel event pic's I made that always change according to these variables?? Any help please!?

  • @thaipankatima2234
    @thaipankatima2234 5 ปีที่แล้ว

    God I wished I switch to a new episode sooner. I was watching the last episode tearing my hair out trying to figure this disappearing act.

  • @TheAwkwardGuy
    @TheAwkwardGuy 8 ปีที่แล้ว

    Aight this is probably the hardest tutorial yet. 1-15 were ez, this one's a bit tough to get.

  • @elwyndude
    @elwyndude ปีที่แล้ว

    Is it possible to set variables based on the date? I am wondering if its possible to make an advent calendar so certain events trigger on certain days

  • @artmosphereID
    @artmosphereID 3 ปีที่แล้ว

    someone pls help..
    what if we want Bob to always appear on the map but doesnt block the door anymore after we changing map

  • @unholyswordsman
    @unholyswordsman 4 ปีที่แล้ว

    How would you make a variable for an npc to tell you how much experience points your party members need to reach the next level? I've been racking my brain but can't figure it out.

  • @split2nd898
    @split2nd898 3 ปีที่แล้ว

    Hello. I have a map that I use for a skill tree type thing that uses an event to transfer the player to the skill tree map. I want to have the event that takes you to the skill tree map In multiple places in my game. How do I make it so when the player leaves the skill tree area they warp back to the same place they went in? Is this even possible without plugins? Thanx.

  • @siter931
    @siter931 8 ปีที่แล้ว +14

    Danggggg my brain lol.

  • @grant858
    @grant858 3 ปีที่แล้ว

    I don't understand. I tried must 3 more then unlock

  • @MrJJDIZZLE23
    @MrJJDIZZLE23 4 ปีที่แล้ว

    Its works and all but when i talk to the guy again it will keep switching my variable to one and making that other guy reappear and block the door.

  • @Zelmougy
    @Zelmougy 3 ปีที่แล้ว

    when i do the variable thing and when i enter the game and ask Bob after asking Joe the game freez please help

  • @jeffpurdy9096
    @jeffpurdy9096 6 ปีที่แล้ว

    Great video, man. Super helpful

  • @wishingstar8701
    @wishingstar8701 5 ปีที่แล้ว

    what if I don't want the character to disappear and I just want him to remain to the left side? How would I go about doing that?

    • @Brejas03
      @Brejas03 5 ปีที่แล้ว

      Make an event with the character there and make him only appear with the variable

  • @headcase2493
    @headcase2493 7 ปีที่แล้ว

    your videos helped me a lot. Thanks man.

  • @elmoscoool
    @elmoscoool 3 ปีที่แล้ว

    Would love to see a variable example to make an over under bridge. I’ve tried everything ‘_’*

  • @Rubytyr
    @Rubytyr 7 ปีที่แล้ว

    Abit fast, but I caught the gist of it, thanks :) basically another set of if/thans~

  • @starcloister4651
    @starcloister4651 5 ปีที่แล้ว

    I'm gonna play Devils Advocate here. What makes this superior to just using switches? That's what I've done in the past and it works for me.

  • @karlhans6678
    @karlhans6678 3 ปีที่แล้ว

    What if i want Bob to be outside beside the door when i come out?
    Update: did it, easy.

  • @pedrogirl8417
    @pedrogirl8417 ปีที่แล้ว

    Hi! i was wondering if someone could help? I'm making a test for like a joke ending where if the character sleeps on a bed more than 10 times it triggers a cutscene for a "bad ending" however I am having problems triggering the actual cutscene, any tips o help on how to achieve this? TT__TT

  • @Laezar1
    @Laezar1 6 ปีที่แล้ว +1

    Where did bob go joe? well when you talked to him you set the variable to 1 again so he should have reappeared right? xD

  • @inactiveaccount9253
    @inactiveaccount9253 8 ปีที่แล้ว

    Actually, By logic, talking to Joe at the end would've changed the variable back to 1, So... To answer your question, Bobs out the front of the house.

  • @magorostravsky5732
    @magorostravsky5732 11 หลายเดือนก่อน

    Ok... My brain is starting to boil...

  • @siter931
    @siter931 8 ปีที่แล้ว

    Okay one issue i noticed is that when you go talk to Joe afterwords he ends up resetting the event and it just resets itself? that has to do something with the looping right?

    • @SomeRanDev
      @SomeRanDev  8 ปีที่แล้ว +1

      Yeah, I forgot to also fix that. Simply make another condition that checks if the Variable is set to 2, and if it is, do something else besides changing the variable

    • @siter931
      @siter931 8 ปีที่แล้ว

      like how would i do that haha? sorry It's just this one was a bit confusing.

    • @Twistorian
      @Twistorian 8 ปีที่แล้ว

      Just in case you didn't solve it or someone else wants to know:
      You create a conditional branch for Joe, set it so that if the variable is more or equal to 3 (to work with the example in this video), then Joe will say something else and not affect the variable at all. Then you create an else branch for that and put the default dialogue there. Or the other way around, just make sure you get the condition right.
      If there are other uses for My Variable, you should also fix exiting the house changing it always back to 3 by a similar conditional branch in the house.

    • @Twistorian
      @Twistorian 8 ปีที่แล้ว

      Or even better, use the self-switch as in the next episode of the tutorial that I just watched...

  • @arcinon
    @arcinon 3 ปีที่แล้ว

    I have a reaaaally complex question... Im trying to get it to where once you enter the next map you cant not return to the previous map and will be met with specific dialogue if you try unless you open all 5 chests, then when you open all 5 chests and return to the previous map a event will occur, how can i achieve this if at all possible, but if it is possible i really want to do it... LES GOOOOO I FIGURED IT OUT MYSELF

    • @arcinon
      @arcinon 3 ปีที่แล้ว

      But its all thanks to your explanation i made it to where it requires 5 first variables to pass and each chest grants a variable

  • @MrMakosi
    @MrMakosi 8 ปีที่แล้ว

    Hi it's me again. If player is given choice of say 3 answers and each of them sets their own variable, how would you go about transfering that variable as a variable to a next map? You can't know whether gamer will pick 1,2 or 3, so how to make game remember users choice to the next map??? Please advise

    • @SomeRanDev
      @SomeRanDev  8 ปีที่แล้ว

      MrMakosi
      Variables are the same for all maps.
      If you change a variable in one map, it will still have the value throughout the entire game unless you change the value again.

    • @wormmaster5285
      @wormmaster5285 7 ปีที่แล้ว

      SumRndmDde, Can you set multiple variables at once or will you have to make a long list of variables for different events to happen? I can imagine making a full game that variables would change constantly so if you want to have an npc permanently in the settings you made for variable three for the rest of the game after you finish a quest for them you have to copy and paste the same action for multiple variables.

    • @arthurpaixao4132
      @arthurpaixao4132 7 ปีที่แล้ว

      worm master dude, i don't know If this gonna help you, but there's a function called Common Event. There you can create a "non-applied" event, and you can call it later with a map event , for example, an NPC. It's useful when you have too many commands to put in an event, and you want it to repeat several times throughout the game.

    • @arthurpaixao4132
      @arthurpaixao4132 7 ปีที่แล้ว

      worm master don't know if I made it to explain lol

  • @aryanmanas6170
    @aryanmanas6170 8 ปีที่แล้ว +2

    luv the video

  • @vf5668
    @vf5668 8 ปีที่แล้ว +2

    Oh My gosh u amazing!!!

  • @PowerfulWizard
    @PowerfulWizard 7 ปีที่แล้ว

    What's the mode variable? I dont know what it is exactly

  • @hawahawalol
    @hawahawalol 7 ปีที่แล้ว

    I think I got it.
    Maybe...
    but can it be used for cutscene?

    • @haydengames3v2
      @haydengames3v2 7 ปีที่แล้ว

      Yes, You can even increase the variable number in battle. For cutscene use you could have a option that increases every time you pick it and when you for example pick it three times you run a if command that if variable 1 = 3 then something different happens.

  • @mattschick2645
    @mattschick2645 7 ปีที่แล้ว

    what are key items

    • @haydengames3v2
      @haydengames3v2 7 ปีที่แล้ว

      Think of them as items that hold some sort of relevance to an event or thing. If you had an apple that you could eat, that means there would be more than just the one apple in the game, now say you have this golden apple, you only get one and it works along the lines of a switch; that is a key item.

  • @marinosdelis6778
    @marinosdelis6778 5 ปีที่แล้ว

    l cant deployment my game error say: failed to create a distribution packages
    someone help me plz

  • @Ellinon_Vasileus
    @Ellinon_Vasileus 5 ปีที่แล้ว +1

    Why! Why? Why this game/programm has to be so complicated for so simple things?
    I have so many content ideas to produce but making it work is SC headache

  • @ivanrakan
    @ivanrakan 2 ปีที่แล้ว

    bravo

  • @latched097
    @latched097 6 ปีที่แล้ว

    A part of me is mildly confused and baffled at flags being called switches and the switch conditional ( maybe? ) not being a thing...

  • @sumayyaal-amin2498
    @sumayyaal-amin2498 6 ปีที่แล้ว

    lol funny tutorial. thanks for making this xD

  • @cosmicyoutubeoof
    @cosmicyoutubeoof 7 ปีที่แล้ว

    WHAT IF YOU TALK TO BOB FROM THE LEFT?!?!?!?

    • @apples8836
      @apples8836 7 ปีที่แล้ว

      That's when you use the "Move away from Player" button in the movement route, instead of "Move Left"

  • @mastermation67
    @mastermation67 5 ปีที่แล้ว

    i discoverd the self switch before is see self switches ep :3

  • @Allplussomeminus
    @Allplussomeminus 5 ปีที่แล้ว

    You kept calling "My Variable" "Variable 1".

  • @noeliagutierrez4223
    @noeliagutierrez4223 4 ปีที่แล้ว

    Dang and I already made a ton of switches lmao

  • @Titanhex
    @Titanhex 6 ปีที่แล้ว +3

    You dun messed up, friend.
    You CANNOT teach switches and variables without teaching Conditional Branches.
    Switches are just on and off. Simple. Barely requires an explanation.
    Variables store a single piece of information. Simple. Barely requires an explanation.
    The only reason they're useful is because you can have a conditional branch check to see if something is on/off or what is stored in a variable. That's the only thing that makes them useful. They're useless without conditions.

    • @markusfuchs2972
      @markusfuchs2972 6 ปีที่แล้ว +2

      He already introduced Conditional Branches in the last video though.

    • @Titanhex
      @Titanhex 6 ปีที่แล้ว

      But if the entire basis, function and worth of variables and switches is dependent on Conditions, and Variables and Switches are useless and do nothing without a Condition, doesn't it seem silly to put Conditions as a 1 minute portion of a video on Switches?
      Conditions are the ONLY reason Switches are useful. So why not dedicate a larger video to the importance of Conditions, as Conditions are what make both Variables and Switches as powerful as they are?
      Do you see what I'm saying?

    • @haydengames3v2
      @haydengames3v2 6 ปีที่แล้ว

      You explain the basis of an idea before you explain how to use it fully, these are meant to just be the basic values how eventing works in MV. You are right about how he should of later explained conditions in full detail however what he does teach is enough to use variables and switches on the basic level required.

  • @garetgreen3522
    @garetgreen3522 8 ปีที่แล้ว

    Waffles!

  • @epsilon3569
    @epsilon3569 4 ปีที่แล้ว

    Anybody else here for help with variables on the Nintendo Switch version of MV?

  • @herios2443
    @herios2443 6 ปีที่แล้ว

    Omfg my braiNN
    IT HURTS

  • @trollingisasport
    @trollingisasport 4 ปีที่แล้ว

    0:03 My girlfriend when I pull out early.

  • @mirage1857
    @mirage1857 2 ปีที่แล้ว

    Messy tutorial. You keep saying variable 1 instead of My variable. I got what you meant because I learned past this point but my goodness this would have hurt my brain if I needed to learn from it. Your other ones were much better.

  • @alexanderhergert875
    @alexanderhergert875 3 ปีที่แล้ว

    Not that good example for variables. You overcomplicated the things. Better is to use variables on something like coordinates .

  • @GIRLMEAT
    @GIRLMEAT 3 ปีที่แล้ว

    I would've just toggled a self switch on Bob after he moved out of the way. lol

  • @pinkpoopent
    @pinkpoopent 8 ปีที่แล้ว

    lool @ the fart S.E in the intro

  • @ElSabio159
    @ElSabio159 7 ปีที่แล้ว +123

    It's fun how you go so slow at first tutorials, even with the name of the godamn game, but for these things, which requiere a lot more time and are so much difficult, you go really, really fast. It's common among programming tutoriales on TH-cam and I don't understand why.

    • @MrMurdoom
      @MrMurdoom 6 ปีที่แล้ว +12

      ElSabio159
      I thought I was the only one that was thinking he was going too fast.

    • @Verinius
      @Verinius 6 ปีที่แล้ว +25

      I think his pace is fine. But of course the viewer needs time to let the information sink in. Basically the variables are like "If 1 happens, then 2 will happen". Joe makes 1 happen. Therefore, 2.

    • @DashiSama
      @DashiSama 5 ปีที่แล้ว +5

      I found that changing the video's speed works for me. he talks slower. :>

    • @boudicaastorm4540
      @boudicaastorm4540 4 ปีที่แล้ว +4

      It would def be too fast for me if I couldn't pause and go back. If this was a live lecture in school or something I'd be very lost. But it's def better than nothing at all, which is what the in-game tutorial did with variables.

    • @peterSobieraj
      @peterSobieraj 3 ปีที่แล้ว

      I think it's because in first tutorial viewers see RPG Maker for first time in life.
      But after first few tutorials viewers have propbably pickup RPGM and do some stuff by them self, and are already familiar with what is where.
      So there is no need to go slow any more.

  • @SarahEtc
    @SarahEtc 5 หลายเดือนก่อน +6

    I'm watching this 7 years later and these tutorials are incredibly helpful! Thank you so much for keeping these up :)

  • @Visy23TheElf
    @Visy23TheElf 6 หลายเดือนก่อน +5

    Am I about to binge a series of 7 year old videos?
    most likely! thank you for this expansive explanation, helps my brain to get into the systems quite well!

  • @radioactivegaming2280
    @radioactivegaming2280 7 ปีที่แล้ว +47

    my brain... NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

    • @riggedgame1189
      @riggedgame1189 5 ปีที่แล้ว +2

      The pain will help you grow.

    • @adakrai1097
      @adakrai1097 3 ปีที่แล้ว +1

      @@riggedgame1189 no pain no gain

  • @cherryhoppip
    @cherryhoppip 6 ปีที่แล้ว +22

    It's functional, and serves its purpose as a tutorial, but this is an impractical mess.
    When you talk to Joe, My Variable is SET to 1, meaning no matter what it was before, it will be 1 after talking to him again. Thus, Bob will reappear and you have to talk to him again to get let in.
    To remedy this, you could add a branch or event page for Joe that says "if My Variable is greater than or equal to 2, then..." and prevent him from changing My Variable.
    But better yet, while this is functional, the foundation could be cleaned up. Variables really shine with adding and subtracting, and work great for things like hidden/extra stats that affect the overworld. With that in mind, the dev should get used to that type of syntax so they don't end up confusing themself further down the road, and so the variable is more versatile for other potential purposes, if say the dev wants to re-use it. I'm thinking something like:
    If MyVar=0, Bob denies access.
    If MyVar=0, Joe adds 1 to MyVar.
    If MyVar=1 or 2, Joe tells you to check out the house.
    If MyVar=1, Bob moves to the left, and adds 1 to MyVar.
    If MyVar=2, Bob tells you to check out the house.
    If MyVar is greater than or equal to 2, *set event location Bob* to one left of his original location.
    When you enter the house, if MySwitch (or better yet, self-switch A) is off, add 1 to MyVar.
    When you enter the house, turn MySwitch on.
    If MyVar is greater than or equal to 3, Bob and Joe will ask what you think of the house.
    This is a bit complex, sure, and it uses an event command not seen in any before video, but, it's watertight so no one can frivolously edit MyVar, and MyVar can be used for other purposes without messing up this house, and all the dialogue makes sense, AND it makes sure that all the characters are where they should be, when they should be, with no strange disappearances.

  • @hvplace
    @hvplace 4 ปีที่แล้ว +7

    I'm having so much fun with variables! I just finished the first chapter of my game (nothing special, just practicing what I learn and throwing in my quirky quips) and learned what happens when you get just ONE constant messed up...but having to dig in and figure out where I messed up helped me become even more familiar with it and even made me think outside the box with a workaround to save me from having to move the needle to another haystack. ;) Thanks again for the videos!

    • @KaterinaKPOP
      @KaterinaKPOP ปีที่แล้ว +1

      Oh, programming. Messing up a variable somewhere in a long forgotten function

  • @gaunterodimm4884
    @gaunterodimm4884 5 ปีที่แล้ว +5

    You actually made variables make sense to me and I absolutely suck at any type of math. I applaud you.

  • @swissgirl2953
    @swissgirl2953 6 ปีที่แล้ว +5

    Woua ...! I understood much more by watching this video (I do not speak a word of English) than all the rare French tutorials. Thank you!!!
    PS: I use your plugins: Title Command Customizer, Camera Core, and Menu Status Customizer. They are SUPER!!! Will send you a copy of my game when it is finished, even if it squeezes in French ^_^ '' Sorry

  • @louisrandolph4153
    @louisrandolph4153 7 ปีที่แล้ว +3

    ok, but how do I make my bob dissapear

  • @mangmerciless9606
    @mangmerciless9606 7 ปีที่แล้ว +5

    What if u talk to joe again, will it trigger variable 1 again?

    • @anothervagabond
      @anothervagabond 7 ปีที่แล้ว +3

      Yup. It's better to increment the variables instead of setting them.
      For example, how I'd do it just to be absolutely clean:
      Give Joe a conditional that says "If My Variable is less than 1, increase My Variable by +1".
      Give Bob the following conditionals:
      "If My Variable is 0, deny entry."
      "If My Variable is 1, move aside and increase My Variable by +1."
      "If My Variable is 2, say 'Please enter.'"
      Then, in the room's exit, I'd add a conditional that says "If My Variable is equal to or less than 3, set My Variable to 3."
      And then have Bob's second page (the one that makes him disappear) active if My Variable is equal to or greater than 3.
      I'd also probably add a conditional to Joe to have him say something different after you've been in the room, but that's just set dressing at that point.

  • @IAmPJPajama
    @IAmPJPajama 5 ปีที่แล้ว +1

    So... I don't know if this has been asked, but if variable 3 is activated in the house for Bob to disappear, what if the character doesn't immediately enter the house for variable 3 to be activated and they go into another house, or leave the town beforehand??? Wouldn't Bob go back to his original spot blocking the door forever because it will think you already got permission and he isn't suppose to move???

  • @dexterdy1652
    @dexterdy1652 3 ปีที่แล้ว +1

    haha programming knowledge goes brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

  • @MYKhanFromThe90s
    @MYKhanFromThe90s 4 ปีที่แล้ว +2

    “We can go into our Bob”...
    That just sounds wrong on so many levels...

  • @kiane9252
    @kiane9252 8 ปีที่แล้ว +2

    It's a bit difficult at first to get all this wrapped around my head, but this is extremely helpful! Thanks so much for making these tutorials, as I'm a noob at this stuff. When I first took a look at variables, I went "Wait you have to do MATH here?!"
    Thank goodness it wasn't as bad as I imagined. XD
    Subscribed and liked, and I'm quite excited for the next tutorials in the future!

    • @SomeRanDev
      @SomeRanDev  8 ปีที่แล้ว +5

      Oh yeah...no math...riiiight...
      *looks away and starts whistling*

    • @garetgreen3522
      @garetgreen3522 8 ปีที่แล้ว

      it's a trap! xD

  • @ufkingwotm9260
    @ufkingwotm9260 5 ปีที่แล้ว +1

    Switches seems useless for me now

  • @chrisliam2
    @chrisliam2 4 ปีที่แล้ว +1

    Been using Rpg Makers since 2000 and 2003 first came out and still have no clue about Variables I can just about manage switches lol.
    I wish RPG MAKER had built in quests that you can edit like collection quests or find the item quests.

  • @hosamorfali3444
    @hosamorfali3444 7 ปีที่แล้ว +2

    you should consider making a veeeeery good tutorial based on making events with variables, cus its the most important part and yet you talk to fast in it I can barely catch up xD

    • @Javikazi
      @Javikazi 7 ปีที่แล้ว

      Thank god for the spacebar and the left arrow key for said speedy tutorials. n.n

  • @azizrex6935
    @azizrex6935 7 ปีที่แล้ว +2

    but... what if you go talk to joe first... he will tell you "you're allowed to pass" and you will get confused...

    • @astrocosma
      @astrocosma 7 ปีที่แล้ว

      that's a whole other event you would have to control with variables, if you was creating a whole story

  • @LogosLFTG
    @LogosLFTG 6 หลายเดือนก่อน

    How would I have him set to a different location so he's just out of the way instead of just gone completely

  • @tylertheultimatebadass87
    @tylertheultimatebadass87 5 ปีที่แล้ว +1

    I tried doing the tutorial myself by turning on the switches manually and creating a miniature clusterfuck of event pages.
    Worked perfectly, but looked messy as well

  • @DemonCringe
    @DemonCringe 27 วันที่ผ่านมา

    I am going step by step into this tutorial to learn all the basics but I'm struggling with variables. I just need an NPC to stop giving away free weapons and change dialouge using this method and it's not working, will either go through both branches of dialouge. Chat GPT isn't helping me either :(

  • @RealRotkohl
    @RealRotkohl 3 ปีที่แล้ว +1

    The best tutorial series for the RPG Maker MV. All the basic stuff you need, perfectly explained.

  • @ufkingwotm9260
    @ufkingwotm9260 5 ปีที่แล้ว +1

    Switches seems useless for me now

  • @remirez2k3
    @remirez2k3 5 หลายเดือนก่อน

    this would be a good setup to my game idea for a dungeon crawler....I.E. after exiting the house a new variable comes into play where joe tells my character that bob went into the lost horror caverns to find some spider silks or such and has not returned giving the player his first reason to enter the caverns (which is the big pplot of my dungeon delver game)

  • @darkcloudkyle2151
    @darkcloudkyle2151 2 หลายเดือนก่อน

    Im guessing Joe returns the variable to back when Bob is standing there so you'd have to tinker with Joe's variables

  • @crazyjoeshorts5256
    @crazyjoeshorts5256 2 ปีที่แล้ว

    huh. I've never figured this out on my own. I do a work around using player transfer.(Its complicated and inefficient)
    Basically, when you would talk to Joe, it would transfer you to a differently named copy of the same map, only Bob's dialogue and such will allow you to pass. Its probably not the best, but it does get to a similar effect sans variables, switches, etc. I do a lot of really odd things when building my stuff, mostly because until I found this series, I stumbled around in the dark. if it wasn't for our teacher, I would be surely lost.