In this tut, we will set up a good looking/working Treasure chest that will give the actor +100 gold.
First create a new event where you want the chest to be by right clicking on the map in event layer and clicking "new event"
Now double click the right where it says "graphic" and find a CLOSED chest picture.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg442.imageshack.us%2Fimg442%2F2716%2Fchest1hm1.png&hash=bf79ab3f889ada1eead8d7db09356b6c458ee1d2)
1-Event layer
2-Where I clicked to make the event
3-Event graphic
Next double click on the right open white spot. Then staying on page one, find "Change gold" command and click on it. Then set it to increase and change it to 100
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg442.imageshack.us%2Fimg442%2F8550%2Fchest21pf1.png&hash=76e042b630bbd7936221c39ca98ca840b0e620de)
The X on the image is where to double click
Now again double anywhere in the box under your add gold command, and again on page one click "control self switch" and set it to turn self switch A - on.
Now go to the top of the event page and click "add new event page" oon the new page, again click on the grapic box, this time selecting a picture of the OPEN CHEST. also go down to the bottom of the event page and click "Parallel process" now at the top of the event page above the grapic, select the box for self switch and make sure its A. Now leave the right side empty and your done!
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg442.imageshack.us%2Fimg442%2F4521%2Fchestdonenf2.png&hash=a739fb243fe486f5c1fcfc970385b57b7d45a695)
Great tut, this will be helpful for some people.
Quote from: Dr_Zal on February 12, 2007, 12:55:46 AM
Great tut, this will be helpful for some people.
thanks ya I hope people will use the search function, but if not you can always link to this. ;D
You add how to animate it, but a nice basic chest tutorial
YAY !!
You finnaly made it !
Now i know how it works.
Lol kidding this was needed though.
Maybe you could edit and add the graphic changing thingy to make it animated to satisfy the perfectionists?
Wow...some people needed this.
THANK YOU! Lol, I was actually looking for something like this...
yep no problem ;)
feel free to point others with this question to this topic by linking them here, or to the tut index (at the top of this section) my tut is also linked there
In 2k3 i used:
<>Branch if This Event Down Facing
<>Move Event: This Event, Turn 90" Left, Turn 90" Left, Turn 90" Left
<>Change Money: 100 Add
<>
: Else Handler
<>Message: It's empty.
<>
: End
<>
In XP i used:
@>Conditional Branch: Self Switch A == Off
@>Set Move Route: This Event
: : $>Change Speed: 1
: : $>Turn 90 Right
: : $>Turn 90 Right
: : $>Turn 90 Right
@>Control Self Switch: A =On
@> Change Gold: + 100
@>
: Else
@>Text: It's Empty.
@>
: Branch End
@>
Wouldn't the thing change if you moved out/back into a screen?
Quote from: deadly_diablo on February 24, 2007, 03:19:01 AM
Wouldn't the thing change if you moved out/back into a screen?
O.o i never thought to try that....>_< it does thx....so now i need to figure out a way to fix that...with 2k3 at least.
Switches do the magic. You just can't use the same one for multiple chests. Unless you cheat with variables.
yeah i did exactly what it said, but when it opens, i dont get any gold lol
Nevermind. its all good
Ok, one thing Nouman, you forgot to take off "Move Animation", if you keep it on, it'll move thought the animations.
Oh, it's the pictures.
Lol. I just noticed it said "ZeldaSK" as the title. Are you going to be putting chests in the SK along with the ME? Na na na naaaa~~~~~
xD it's because I made stuff in the same project file before. But yea I will make tresure test and provide the song.
Nice. No more talk about that because this is about your tut. This is good. Maybe you should add a side-tut where it teaches them about move events/change self-graphic so that it opens up?
good idea. I will try and re-make this whole baby this month when I get time.
When Nouman made this I made mine at the same exact time. Mine had animation to it so the chest actually opened. I'm not sure if I deleted that thread or not though.
Edit: I can't find it. Nevermind. :(
Ok...
I can't wait. ;)
Imade this a while ago....I can do better I think. :'(
Oh it wasn't that long ago. I remember because I got into a big argument over it with you. :P
-----------
I couldn't find it. I must of deleted it. :(
Oh! Also, upload demo, maybe. Kind of retarded, but if anyone has troubles, they can refer to it. And so sad that it's gone.
thank's for this^_^
P-A GAMES
Pujeda Adlawan Games
no problem, sorry for it being so darn simple xD I never got around to make the advanced more detailed one.
Simple is good. Don't teach anymore than this and let them learn the other ways of doing things and such. :V
Quote from: mastermoo420 on August 21, 2007, 02:08:49 PM
Simple is good. Don't teach anymore than this and let them learn the other ways of doing things and such. :V
I totally agree.