The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Solundor on April 22, 2010, 09:53:02 AM

Title: Chest open
Post by: Solundor on April 22, 2010, 09:53:02 AM
I can't remember how to make the Chest open
the only thing I can think is to use self switch for each opening sprite
can one one help?
Title: Re: Chest open
Post by: Zeriab on April 22, 2010, 11:00:15 AM
You need to make it turn.
Try choosing a chest as your hero. (the one you can see on the map)
That way you can easily derive how to move the chest with a Set Move Route to animate it opening.
I believe you will also remember it better than if I just give you the solution.

*hugs*
Title: Re: Chest open
Post by: Solundor on April 22, 2010, 11:38:30 AM
Man i just did 18 events all with self switches and all with different sprites,
I'm going to leave it, unless you can tell me your way is better and why
but thank you for the response
Title: Re: Chest open
Post by: Grafikal on April 22, 2010, 02:18:51 PM
HAHAHA 18 EVENTS?! that's the most retarded way I've ever heard.

Zeriab told you the basics. He's not into telling you the answer, he's into helping you find it for yourself so that it sinks in more.

But unfortunately he is gone, and since you're doing it just a dumb way, then I will tell you how.

ONE EVENT.

Make an event for your chest.
Make it 2 pages.
On the SECOND PAGE, turn on one of the conditions as a self switch (which ever letter you want, I use 'A' first.)
Back on the 1st page, make the event player activated.
In the event commands you only need 2 things. A movement command and a selfswitch trigger.

Movement:
      Face LEFT
      Wait: 5 Frames
      Face RIGHT
      Wait: 5 Frames
SelfSwitch A: ON

On your second page of the event, make sure that it's set to PARALLEL PROCESS. Make sure that the graphic for the second page is set as the chest that you want to open at COMPLETELY OPEN. (The last frame of the open chest.)

Now in the event commands, place whatever you need in there. The chest is open now. To end the second page, either end the event commands with a SelfSwitch A: OFF, or SelfSwitch B: ON and create new page that is the chest open and empty, or Exit Event Processing.




There you go. 1 event and maybe 4 different commands. Easier.

But if you still think making 18 different events to do this same thing is easier for you, then have fun, cause it's probably going to be similar to taking it up the butt for the first time...every time.
Title: Re: Chest open
Post by: modern algebra on April 22, 2010, 02:55:42 PM
I think he meant that he made 18 chest events, not that he used 18 events to make one chest :P
Title: Re: Chest open
Post by: Solundor on April 22, 2010, 04:30:35 PM
Yes I made 18 chest events each with 5 pages long
so if I keep my chest events the way they are it will lag up the game?
If it doesn't I will just Keep Them

EDIT....................................

I tried it your way but it doesn't work with what I'm trying to do
what im doing is this
Spoiler for:
First page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg219.imageshack.us%2Fimg219%2F9725%2F53877800.th.png&hash=cc789ee25e8472648b4398656c4b3d3c64e9b1ec) (http://img219.imageshack.us/i/53877800.png/)
Second page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg339.imageshack.us%2Fimg339%2F5853%2F48455107.th.png&hash=31579b38b7f74f94368e6841bbac102b5f90c1bb) (http://img339.imageshack.us/i/48455107.png/)
Third page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg683.imageshack.us%2Fimg683%2F354%2F78414214.th.png&hash=707dfcfb58cb5f883a056a25328adda7c753fabc) (http://img683.imageshack.us/i/78414214.png/)
Forth page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg202.imageshack.us%2Fimg202%2F3396%2F34414989.th.png&hash=37e09a1dca564804b22e712cba08c602efc82831) (http://img202.imageshack.us/i/34414989.png/)
Fifth Page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg35.imageshack.us%2Fimg35%2F8829%2F21433945.th.png&hash=31e0b8293847cc37617003e9b0b2095007f8d021) (http://img35.imageshack.us/i/21433945.png/)

Title: Re: Chest open
Post by: Grafikal on April 22, 2010, 09:31:23 PM
haha, well you only need 3 pages then. and if what i said didn't work for you, then you didn't do it right.

1st:

Condition: IF [Master Key] in inventory
  Text: Do you wish to use the master key on this chest?
  Choices:
          Yes
               Change Items [Master Key] -1
               SOUND EFFECT
               MoveCommand
                   Face LEFT
                   Wait: 5 Frames
                   Face RIGHT
                   Wait: 5 Frames
               SelfSwitch A = ON
          No
               >
               Else: N/A

2nd:

(If selfswitch A is ON)
(Make sure Parallel Process is checked)
(Event graphic as fully open chest)


Change Item [Your new shit] +1
SOUND EFFECT (item get!)
Text
       You just received a new item.
SelfSwitch B = ON

3rd:
(If selfswitch B is ON)
(Make sure Action Button is checked)
(Event graphic as closed or fully open chest)


Text
      This chest has already been looted
Title: Re: Chest open
Post by: Solundor on April 23, 2010, 04:37:00 AM
What the hell is wrong with me,
I followed yours to a T but it still doesn't work,
can you make a game to show me how it is spores to work
Title: Re: Chest open
Post by: Grafikal on April 23, 2010, 04:47:25 AM
You might have direction fix on or something. Your graphic will constantly face the same direction, so in the movement commands, turn that stuff off, then turn it back on when it's done.
Title: Re: Chest open
Post by: Solundor on April 23, 2010, 05:32:33 AM
yes did it  ;8
So what i got is

Spoiler for:
First page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg535.imageshack.us%2Fimg535%2F8901%2F48612510.th.png&hash=f7f7d174d4dc670c3bc8c943d178238d3089136c) (http://img535.imageshack.us/i/48612510.png/)
Second page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F5532%2F47397112.th.png&hash=babfac345e092e492dde6d48192b09a908f7f6e0) (http://img38.imageshack.us/i/47397112.png/)
Third page
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg26.imageshack.us%2Fimg26%2F7442%2F95083296.th.png&hash=2a0f9685466930aa7041959ac3b7998a6f043dbc) (http://img26.imageshack.us/i/95083296.png/)

Is this ok or can it be done better