(Fyi, I can only make two posts today because I'm new, so my interactions will be sparse.)
I'm terribly new to RPG Maker and script is another language to me. I want to have a region that's maybe 2x5, and when you step into it you have an event, like the screen shake or something, (There's an off-screen rock slide that's triggered by you stepping there.) The problem is that when I look at posts people have made in the past about this, it's all so foreign to me. <:c
I am working on learning events and switches. I've got down auto-switches because they're pretty simple. But it's a lot to take in. Am I rushing into this? Should I not be asking about even regions at all if I don't know script? All opinions welcome. Thank you!
You don't need to use scripts to do this.
Can you step onto ANY one of those 2x5 tiles, or do you have to go onto one or two of them to get to the others? If you can step on ANY of them, paint them with a region code. Create a parallel process event with no sprite, that uses Control Variables to put the player's X and Y position into variables, then uses those variables in a Get Location Info command to obtain the region where the player is (this will use a third variable). Then do a conditional branch to see if that's the "magic" region. If it is, do your screen shake or whatever, then turn on a self switch. At the end of the event commands, add a Wait 4 Frames to avoid lag. Then add a second event page conditioned by that self switch with no other changes to the page.
Also, if you need to do something on the map or pass over a particular tile, you can turn on a switch at that time and have the first page of your parallel process conditioned by that switch, so it's not running from the moment you load that map, but only when the "trigger" event is activated.
Yes, you can step on any of the tiles to trigger it. Your reply looks terribly helpful, but it turns out I need to learn control variables first because wow, I piddled around forever and couldn't figure it out. This is all so new for me. ;o; I'll definitely be back once I run around a couple more tutorials. Thank you tons.
Edit: also conditional branches. omg, this is so much to learn. @_@
Follow the link in my signature. You REALLY need to understand conditional branches, switches and self switches, and variables to a certain extent. You'll struggle a lot until you come to grips with those.
Okay so...don't be upset, but I have a different problem now. I KNOW, I know. <8c I was making another tiny game so I could practice putting conditional branches, switches, and the like into play. You know, a teeny world, teeny quest where I get to implement these things for giggles and get them to work together. Just a learning experience before I try a bigger game. I finished my little game, ran a successful playtest, and decided I'd compress it into an exe to share with a friend. (I chose to encrypt for the smaller file.) I'd made an even smaller, simpler game before this, didn't encrypt it, and it was huge. Ugh.
Lo and behold, I get "Script 'Cache: line 106: RGSSError." The whole "failed to create bitmap" thing. I've gone through several other threads where people had this problem and were able to solve it, but I couldn't get any of their solutions to work for me. I feel like a numnut. TT_TT Here's what I've tried.
1) I've tried going into the script and pasting the "p path" at 106. That doesn't seem to help. I tried putting it at 105, 106, 107 because I wasn't sure I was doing it right, and it doesn't give me any hints. :<
2) I do have custom sprites and face images, but I've checked the Resource Manager and everything's there. So all of my images seem to be in the right place and in the right format (png).
3) I double-checked all my event graphics. They are the right ones, and in their respective folders.
4) I haven't edited any tilesets, so I didn't bother checking those. Could they be a problem anyway? I don't even know what that problem would be.
I know that once we figure it out, I'll be really embarrassed, but at this point, I'm just desperate for help. Playtest runs fine, but the compressed game dies. What I do. ;o;
(Thank you again.)
PS: On a lighter note, conditional branches and switches make way more sense now. One step at a time, man...
new problem = new thread. Please don't have "every question I need answered" in this thread.
What do you mean, you put p path and it "doesn't seem to help"? It is not meant to help - it is meant to tell you what image it's trying to load. Did you turn on the console and check what it says when it crashes?
I apologize, Shaz. I thought it would be rude to move to another thread when I already had one open. <:c I'd move to a new thread now, but I feel like that would be even ruder since we're already here, so I'll finish this up and remember in the future. Plz don't give me a warning point. I'll move to a new thread right now if you want me to. Here's what I have:
[IMG]http://i.imgur.com/1cB1cdV.png[/IMG]
The original error where I finished the game, compressed with an encrypted archive, and went to try it on my own computer. It's worth noting that the game starts up and functions until you speak with the first NPC. This NPC has custom graphics, but they're in the Resource Manager. I was under the impression that meant they were good. Not corrupted or anything. I'm way sorry if I've got that wrong. I don't want to waste anyone's time, and I really appreciate the help.
Second error, put "p path" there, the game loads, but still poots at that NPC, this time with the error moving to 107. Hnng. So I tried moving it up one in case I was dumb.
Moving "p path" up a line for good measure prevented the game from loading at all. So I suppose it was in the right place the first time. Right? Is it telling me what my problem is and I just don't recognize it? I hate to be a bother, so I'm going to continue searching for past threads and various solutions.
No, that's not the console. Go to Game and check Show Console.
Then play, with that line exactly where I told you.
When the game crashes, the console (which is a new window with a black background which would have opened as soon as the game opened) will tell you exactly what file it's trying to find.
I got it working! Just gonna lay out what I think the problem was, then we can move on with our lives.
I had three face files for one character. They were named mareep , mareep2, and mareep3. All pngs. I wonder if perhaps the problem was that I had another file in there titled "mareep" as well. It was a different format, an mdp, and was my blank reference for the pngs. (I would edit it to make the others.) I kept it in there with them for convenience. Perhaps the game went into my graphics folder, saw the mdp before it saw the png of the same name, and tried to use it? I don't know how that works, but I removed the mdp, game works fine now, and I feel like a dingus. Thank you both for trying to help me. We got it in the end. c:> I suppose this thread is over and done now.
EDIT: Oh gosh, Shaz, we both posted at the same time. (What a small world.) I'm really sorry about all the trouble. In case I run into this problem again, I'm going to write down your advice. So many sorry/thanks. Oh man.
that could be it. Glad you got it sorted 🙂