Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   RPGMaker (http://zelaron.com/forum/forumdisplay.php?f=188)
-   -   Caan anyone help?plz~ (http://zelaron.com/forum/showthread.php?t=44285)

Meganroid_6 2008-01-01 09:06 AM

Caan anyone help?plz~
 
I have a problem of rpg maker switch, if i do an event and activate it,and then erase event...'kapoosh' aafter that i went to another room and get back to the event room... the event still there! how do i wanna destroy it forever..? use switch? tell me about it..i'm new so, i dunno..~~plz~~

Lenny 2008-01-01 09:42 AM

First of all - which RPG Maker are you using?

Secondly - how much do you know about Conditions for events, and the use of switches?

Meganroid_6 2008-01-03 02:44 AM

Using rpg maker 2003
 
Quote:

Originally Posted by Lenny
First of all - which RPG Maker are you using?

Secondly - how much do you know about Conditions for events, and the use of switches?

i'm using rpg maker 2003
conditions? a little... .switch? dont even found the switch window, but in this site i interested of it... so i need help..

Lenny 2008-01-03 08:26 AM

Ah, good. I like RM2K3. :)

I do believe that setting switches can be done within the event window - create a new event (1), double click in the event window to bring up the event menu (2), click Switch Operations on the first page (3), set the switch options in the box (4) - to name the switch, click the three dots next to the switch name (5) and name it in the input box on the new window (6).

http://i3.photobucket.com/albums/y97...2/switches.png

---

So you're main aim is to disable an event once it has been used, yes?

What type of event is it - activates automatically, activates when the hero touches it, activates at a button press? Just curious. :p

The way to do it is to use a conditional branch in the event. Do you know how to find them and use them?

Meganroid_6 2008-01-03 09:25 PM

soory i dont know how
 
Quote:

Originally Posted by Lenny
Ah, good. I like RM2K3. :)

I do believe that setting switches can be done within the event window - create a new event (1), double click in the event window to bring up the event menu (2), click Switch Operations on the first page (3), set the switch options in the box (4) - to name the switch, click the three dots next to the switch name (5) and name it in the input box on the new window (6).

http://i3.photobucket.com/albums/y97...2/switches.png

---

So you're main aim is to disable an event once it has been used, yes?

What type of event is it - activates automatically, activates when the hero touches it, activates at a button press? Just curious. :p

The way to do it is to use a conditional branch in the event. Do you know how to find them and use them?

.............................soory i dont know how

Lenny 2008-01-04 07:21 AM

A conditional branch is basically an If statement:

<> If a variable = TRUE Then
<> Do actionA
<> Else
<> Do actionB

In this case, you want an event to not happen once it's happened once. As switches are global (that is, they work for all maps, not just the one they are used in), you can turn it on in the first map, go to a second map, go back to the first map, and it will be still on.

I'll pseudocode your event, just to demonstrate:

<> If Switch0001 is OFF Then
<> Event Actions Occur
<> Turn Switch0001 ON
<> Else
<> Do nothing

In the above code - the event checks if the switch is OFF. If it is, then the event takes place. At the end of the event, the switch is turned ON. Next time you run the event, it will check to see if the swtich is OFF. It will find it ON, and skip the event action. This effectively disables it.

---

Create a new event (1). Double click the event box (2) to bring up the commands menu, and go to page 3 (3). A third of the way down the second column, click Conditional Branch (4). In the switches 'tutorial', we created a switch called "Name it here". Use the dots to bring up the switches screen to select it (or make a new switch), OK it, and select OFF from the drop-down menu (5). Make sure the custom handler box is ticked (6) and click OK (7).

Back in the Event screen, double click the first blank line starting with "<>" (8) and add the event actions that you wish to do.

Directly after the actions, bring up the commands menu by double clicking the next blank line starting with "<>", go to page 1 (9), and click Switch Operations (10) halfway down the first column. Select the switch that you've used for the event by clickin the dots (11) to bring up the Switch menu, and set it to Turn On (12), then click OK (13), and save the event.

http://i3.photobucket.com/albums/y97...82/conbra1.png

http://i3.photobucket.com/albums/y97...82/conbra2.png

http://i3.photobucket.com/albums/y97...82/conbra3.png

---

Now BlueCube will probably pop up and tell me that it's easier to do with Preconditions and extra pages, but I prefer the above method as it keeps it all on one page, and to me is easier to work.

Meganroid_6 2008-01-04 11:10 PM

Wow, thanx very much... but i think i prefer extra pages... another one is i dint understand about the parralel ...(something) ... what it is used for?

Lenny 2008-01-05 10:05 AM

The Event Trigger - Parallel Process?

I'll explain all of them, if you want.

---

http://i3.photobucket.com/albums/y97/Lenny1882/trig.gif

Action Key
You stand next to or on the event and press the action key (Enter)

Touch by Hero
The event is triggered the moment the hero stands on it

Collision with Hero
Not too sure - I believe that the event moves towards the hero, or is moving, and if it touches the hero, then the event is triggered

Auto-Start
Starts automatically

Parallel Process
Usually used with loops and conditional branches in the event - the moment a variable is changed, the event takes note of it, and may be triggered if the variable is correct (a switch turning on, for example)


All times are GMT -6. The time now is 10:45 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.