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

Exactly how do i make a tresure chest work?

Question

anyways i made it so when i touch the chest i get 50 gold then it say you have 50 gold.

 

the real problem is that when i click on the same chest it gives me more gold!!!

 

i just want it so it gives gold 1 time in the whole entire game

 

help would be nice

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

first, create a new event page, make the image that of the open treasure chest

 

then, on the original page, set a self-switch to A

 

finally, the second page, set it so that it is active on self-switch A

Share this post


Link to post
Share on other sites
  • 0

uhhhhhhhh here have a look at what i am doing since its not working

 

 

1st Page:

 

Control Self Switch: A= OFF

 

2nd Page:

 

Change Gold: +50

Text:You Got 50 Gold!!!

Control Self Switch: A= ON

 

what did i do wrong?

Share this post


Link to post
Share on other sites
  • 0

I'll give you a quick crash course on switches:

 

Switches are exactly just that, a switch. Which is either on or off, and thus you can test whether the switch is on or off and create triggers with them.

 

Using Switches to make a chest:

 

Self switches are a little different then switches, switches can be called from anywhere and are shared between every event (including common events). Self switches are local, and can only be accessed by the event that contains the self switch (hence self)

 

CHEST PAGE ONE: (Note the sections outlined in blue)

gallery_18872_188_22313.png

1. This is the conditions section. Essentially these are the conditions that are required for that page to be used as opposed to any other. (For the first part of the chest no conditions will be required)

2. This is the event's trigger conditions.

Action Button - Player must hit enter to trigger event commands

Player Touch - Player must walk in/on to the event

Event Touch - Either the player must touch the event (like player touch) OR if the event touches the player

Auto Run - The commands will automatically run and keep running (all other processes are paused during the loop)

Parallel Process - The same thing as auto run, except other processes will not be paused.

 

Notice after the event commands finish the self switch A is turned ON, this will trigger the second page.

 

CHEST PAGE TWO: (Note the section outlined in red)

gallery_18872_188_50565.png

1. The condition is set for Self Switch A in ON, this means that when the switch is on, this page will be active.

 

The graphic has also been changed to represent an open chest.

 

And that is the easiest and simplest way to make a chest.

 

Note: You can spruce up the open page by making it display a message like: "Empty!" or whatever you feel fit.

 

Hope this helps!

Share this post


Link to post
Share on other sites
  • 0

Oh cool, no problem :D

Self Switches work exactly like any other switch, except like I said they are only available to that exact event.

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...