Collect The Gems
What is this?
Collect the gems is a mini-game that I made in my game Celistrial Lore. What you have to do is collect a certain amount of gems before the time runs out. In my game you have to collect a total of 5. This will give you the Speed key. The 1st key to unlock a tomb.
My game: Celistrial Lore
The Knowledge:
You need to know how to do the following:
Conditional Branches
Switches
Timer
NO VARIABLES needed. This means you can have variables and it will run things easier but it is simple.
How to do it:
1st
Go into your database and make you gems in the item tab. Since you are not using variables you will need to have more than one. I have 5 different gems that you collect.
2nd
Have a lever event set up in your map. The set-up should look something like this:
[Show/Hide] Example 1
As you can see I have the event asking you to pull the lever. In the choice Yes it will start your timer. 23 secs was the needed time for my game so this will VARY in your game! The change encounter was set to disable because if you have encounters you will not have enough time. You do not need it. Just remember to set your timer accordingly. Lastly the event says control switches 0007:EP3 = On. This is the name of the switch I am using. THIS WILL VARY AS WELL.
3rd
Your 2nd event page of the lever should look like this:
[Show/Hide] Example 2
As you can see I have one conditional branch at the top. THIS HAS TO BE HERE!
It is reading when the timer is set to 0 to play the SE GAMEOVER and then to turn the switch off.
This happens if you do not collect them in time.
Now the huge mess of branches. Those 5 branches is making sure that you have all 5 gems in your inventory.
At the final one it stops the timer and you can see the rest. The control switch at the end is just making the lever unusable after you have completed the minigame.
Finally
The event page of your gems. This should look like this:
[Show/Hide] Example 3
Now there are 3 pages. The 2 other pages you are not seeing are blank pages. The 3rd page works after the self switch A = ON.
As you can see it adds one gem to your inventory. There is 5 different ones so there are 4 more after this. Same concept just make sure it adds the other gems or what nots to your inventory. THE EVENT TRIGGER HAS TO BE ON PLAYER TOUCH SO YOU PICK IT UP AS SOON AS YOU TOUCH IT.
You are done! If you want a demo you play my game's demo or just a demo by itself I might put up on request.
Have fun...
~Any questions ask. Any problems tell.
Ghun


