Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
Wyzrd

Switches

Question

I've been having problems understanding how switches work. Like how to intertwine them with other events and stuff. Leon said I should ask for help because he has tried and he succeeded a little bit I'm still lost. So maybe someone can help PLZ. :D

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Alright, sorries it took me so long.

It slipped my mind, and my birthday party.

 

Ok, first of all I'm sure you know the difference between a local switch and a switch is, right?

Local switchs only works in a single event, while a switch will work in any other event.

 

Alright, you know how there are preconditions on an event page right? Preconditions are something that must be fufilled before the event will show-up. So, if you use a switch, that event will not show up until it is turned on. How do you turn it on your ask? Tab 1 under Switch Operation and Local Switch Operation, select the switch you want to turn on and press ok.

 

So say you wanted to open a chest, but you also don't want the person to be able to open it more than once, right? Well, make the first page say "You got an item" and give you the item. Then make a second page. (Remember I told you RMXP automatically activates higher page numbers?) So let's say you put, "I've already opened this chest." for the message on the second page. If you try opening the chest it'll say "I've already opened this chest." unless you turn on the switch on page one, and then set that same switch under the preconditions on page two.

 

Well, I tried my best. Hope you got that.

Share this post


Link to post
Share on other sites
  • 0

Try the event below that uses switches; you may learn better by using them in an event.

 

 

 

Basic Talking Tutorial

 

Contents

  1. Forward
  2. Control Switches
  3. Control Self Switches
  4. Setting Up The Event
    • Intro
    • Event Window
    • Event Commands Window
    • The Guts of The Event
    • Important; Don't Forget

[*]Demo/Download

Forward

 

Long ago on another forum I remember seeing a topic where a member asked, "How can I make my characters say more then one thing?" Many people had ideas, some ven said it could only be done by scripts. After reading some of the peoples ideas one caught my eye; "Why don't you just use switches?" Then I thought why did these experienced RMXP users not think of this before, and lets not forget that none of them took the time to explain to the person how to set it up. So I did some messing around with and came up with my Ultimate Talking Tutorial; no scripts needed, just some good old switches and elbow grease.

 

Control Switches

 

Before we jump into the event lets take a look at some of the important thing I will be using in this Tutorial and the demo provided (below).

 

What is a Control Switch?

 

Data stored as either ON or OFF throughout the game. For example, controls information such as whether a player has received an order to defeat a monster or whether a boss has been defeated.

 

If you are going to make a lot of characters who can say more then one thing this is the best choice for you as you can name the Switch and remember what it was for.

 

Screen Shot of Control Switch Window

 

controlswitchwindow_nored.png

 

AND

 

switchwindow_nored.png

 

Control Self Switches[/size]

 

What is a Control Self Switch?

 

A special switch for individual events. It has no visible effect, but rather is used simply to display the status of a given event. For example, controls information such as whether the player has opened a treasure chest.

 

If you have more then one person on a map who can say many things then this is not a good choice to use, but if your in a cave and come accross a travler then this is a good choice.

 

Screen Shot of Control Self Switch Window

 

controlselfswitchwindow_nored.png

 

 

Intro

 

Before we jump into this event I will explain some stuff to the new people of RPG maker XP. Below are screen shots of the many WINDOWS you will be in and using. All "RED" numbers are the areas you only need to worry about for this event(s).

 

Event Window

 

1) Always give your events a good NAME so you know what they are for and it makes it simple if you need to call it.

2) This is the GRAPHIC for this event. leave it BLANK or click the little white box to choose a graphic.

3) This is where all of your Commands will appear for this event, you add commands on the Event Commands Window (seen below).

4) Control Switch, is used on a NEW PAGE of this event to make the person say something else. In short use this to call a Command by placing a switch ON or OFF.

5) This is for Local switches only or better yet local events. But it has the same effect as a Control Switch, turn it on or off to start another command chain.

6) This will create a NEW PAGE with a Clean Command area (number 3) that you can add stuff to as well. Also take note that the GRAPHIC box will be empty on every NEW PAGE.

7) You don't need to touch this, but by it being checked, it means that when the PLAYER hits the ENTER key a action will be taken (i e start the event).

 

eventwindow.png

 

Event Command Window

 

This has a lot of buttons, but for this Talking Event your only worried about three of the buttons and they are:

 

1) This is used to make your characters talk.

2) This is used to create a

Control Switch.

3) use this to create a Control Self Switch.

 

eventcommandwindow.png

 

The Guts of The Event

 

Now lets put this event together:

 

1) Right click where you want the event/person. The pick their graphic, by clicking the small white box labled: GRAPHIC.

 

2) Now click the SHOW TEXT button and type what you want to say.

 

3) Then click the CONTROL SWITCH button and click the ARROW ( > ) button and give the switch a name something like: ?Knight Talking One?. Then make sure the check box is set to ON and click OK.

 

4) Now click the NEW PAGE button, then pick the same GRAPHIC as on page one. Then check one of the CONTROL SWITCH check boxes and pick the ?Knight Talking One? (or what ever you called it) Make sure the switch is set to ON.

 

5) Then add a new SHOW TEXT and repeat steps 2-4.

 

6) Now when you get to the very last thing the character (non-playable) will say set the event up like so. After your SHOW TEXT turn off all switches you turned on. This will make the event repeat itself..

 

 

Important; Don't Forget

 

After you have made the last SHOW TEXT/MESSAGE for you person talking make sure you turn off all SWITCHES other wise the event will repeat the last thing it said. To better understand this I have made a demo, plus you can edit it so you can look at the events themselves to see how they are set up.

 

Demo/Download

 

Ultimate_Talk_Demo.zip

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...