The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Hokuten on January 17, 2006, 08:00:52 PM

Title: I'm miserable with switches....
Post by: Hokuten on January 17, 2006, 08:00:52 PM
I'm kinda a newbie at switches. I know how to make them and get them to work, but I can't get them to STOP! I put in the command to tell a certain switch to stop, but they keep going anyway. I tried stopping it in a different way (I'm no good at describing things, if you haven't noticed), and it either keeps going or freezes the whole game!

Help please.
Title: I'm miserable with switches....
Post by: ahref on January 17, 2006, 08:57:19 PM
switches can be off or on they dont stop

could you explain the event your having trouble with maybe

ill try to help once you have done that :)
Title: I'm miserable with switches....
Post by: Zeriab on January 17, 2006, 09:16:55 PM
Points to sig
Title: I'm miserable with switches....
Post by: taleg on January 17, 2006, 11:14:46 PM
This is one of the reasons why I had to make the topic about my problem with switches. The 'X Switch = OFF' doesn't seem to have any effect. Pages with 'X Switch = ON' as a precondition runs anyway.. Understanding what switches are and what they are used for isn't hard, but how to apply them is a different matter. They seem to work in one case and not work in another, identical, case (which isn't logical at all, I know :)).
Title: I'm miserable with switches....
Post by: Inaru on January 18, 2006, 12:23:17 AM
The easiest thing for you to do right now is to delete the event, and restart again.
Title: I'm miserable with switches....
Post by: Zeriab on January 18, 2006, 09:06:32 AM
@taleq: I don't think it's the same problem as you had because parallel processes generally don't freeze the game. Autostart events do so however.

Anyway do as Inaru says. You might have changed a little thing which ruins the event. If you still can't make it work post your event.
Title: zeriab
Post by: taleg on January 18, 2006, 10:43:08 AM
you're right, but if I had been able to use switches correctly I wouldn't have gotten in to that mess (had to wade through a world of problems before arriving at the the point I described in my topic).
Title: I'm miserable with switches....
Post by: Jesse 015 on January 18, 2006, 11:08:22 AM
well to fix the problem, we need to know wat u r using the switch for
Title: I'm miserable with switches....
Post by: Hokuten on January 18, 2006, 07:47:31 PM
Sorry it took so long for me to reply. I had to get off the computer the secound I made this topic.

Okay, I made a switch where my main character says something and it teleports to a different map.

The next thing is a longer talking scene, fighting, and a character joins into the party.

I just want a normal map. No special events or anything if they come back to the previous map.
Title: I'm miserable with switches....
Post by: ahref on January 18, 2006, 08:16:55 PM
ok im asuming that when you first want the character to enter the map(before the big event) somthing happens ill use my pig town as an example:

when you first enter the map:

a  pig says hi

you go to the big event blah blah

you go back to the previous map

a pig says hi


is that the problem
Title: I'm miserable with switches....
Post by: Hokuten on January 18, 2006, 08:25:35 PM
Not really. The switches just won't stop even when there's a map their not suposed to be on.
Title: I'm miserable with switches....
Post by: Zeriab on January 18, 2006, 08:37:52 PM
Quote from: HokutenNot really. The switches just won't stop even when there's a map their not suposed to be on.
In that sense you can say that switches are global.
It doesn't really matter where you go.
Let's say you turn a switch on. This switch will keep being turned on until you turn it off.

I'm not really sure what your problem is, but you can try this:
In the editor: Look through your game and see where you are using switch operations in the events.
Play the game. You can look on the values of your switches when pressing F9 (might be F8 or F10, can't remember).
Note that you can't look on any local switch using that feature.
If you see a switch not behaving like it should (ie. being off when it should be on) you know in which event the problem might be.
Title: I'm miserable with switches....
Post by: Hokuten on January 18, 2006, 08:40:54 PM
I'll try that.
Title: I'm miserable with switches....
Post by: Hokuten on January 18, 2006, 08:50:39 PM
Nothing's working. I checked on the switch a couple of times. Everything seems to be functioning correctly.
Title: I'm miserable with switches....
Post by: ahref on January 18, 2006, 08:55:53 PM
when the hero re-enters the map from hence it came your events are repeating am i correct....
Title: I'm miserable with switches....
Post by: Hokuten on January 18, 2006, 09:04:09 PM
Every time I alter it, it does. When I don't the whole game freezes up.
Title: I'm miserable with switches....
Post by: ahref on January 18, 2006, 09:12:39 PM
sorery im confused i need to know exactly what you mean heres another guess:

event 1 is the one where you get telported

event 2 is the big talking scene with the fighting...

------

when you get back from event 2 is event 1 repeating

ie. event 1<----->event2

????
Title: I'm miserable with switches....
Post by: Zeriab on January 18, 2006, 09:17:11 PM
Quote from: Hokuten... the whole game freezes up.
It sounds like an event on autostart is running when it shouldn't.
Try to check the conditions on the different pages of the events and see if any have autostart. Make sure there is a way out of the autostart.
The event could erase itself (it would come back after you reenter the map, so you would have to reerase it.)
The event could have another page with the condition of having a switch turned on. This page should then no be on Autostart
Title: I'm miserable with switches....
Post by: Hokuten on January 18, 2006, 09:22:11 PM
Oh. That's the problem! I fixed it now. Thanx for the patience with me and the advice
Title: I'm miserable with switches....
Post by: Zeriab on January 18, 2006, 09:29:59 PM
Phew... It's hard to solve a problem if you think it's caused by something else than it really is.

As this problem have been solved I think it should be locked.