So finally I´m back again

, hope theres no unexpected trips anymore

and if there are then 1 or 2 days trips so its not problem
EDIT
@Arcones
I looked at your new codes and there are some things that fail.
1) the list of mini-games maps wont show, instead when you click on mini-games from the mini-games menu it shows regular menu with mini-games UI. I fixed the problem by simply typing minigames instead of mini-games at this place (4th line last word, behind "showgui ):
Code: Select all
newgui mini-games [
guitext "This is the Mini-Games menu!"
guibar
guibutton "Mini-Games" "showgui mini-games"
guibutton "About Mini-Games" "showgui about"
guibutton "Back" [showgui main] action
] "Mini-Games"
2)the UI for mini-games only loads If you press back while in mini-games menu (it loaded when pressing mini-games button too before I corrected the map loading). But it disappears when exiting menu and entering menu again.
3)Theres an extra "]" mark somewhere

, couldn´t find it tho
Now to things that we need to figure out.
1) As I wanted and you tried to do the UI now loads with selecting mini-games mode (needs a few fixes I talked about before). That leads to a problem. While you´re in the map the menu won´t count the coins you picked up etc. Also if we want to use variables like "coin" etc then we need to declare them. But if we declare a variable then we need to give it a value. which for example means typing
to the beginning of the map. But that means we can´t count total amount of coins but only the amount of coins collected in the current map. Now I have 2 solutions in mind, none of them might work.
First would be the use of pointers. We tell that the amount of coins at the beginning of the map is equal to the amount of coins total. That would require local and global variables, local would be the variable for current map and global for whole game. I don´t know if its possible with cubescript and sandbox.
Second and in my mind better would be like this: One variable counts the coins you have so far, excluding the coins collected on the current map. The other variable counts the coins you have on the current map. And when you finish the map your coins will be added to the total amount of coins you had. This would also require global and local variables, but if we want to have the menus connected to mini-games not certain map then global and local variables are necessary anyway.
2) The achievement showing needs to be fixed, and I think that this is better done with the second option, because then we could also have global and local achievements, for example achievement for collecting 20 coins in a level and achievement for collecting 200 coins total.
There are more but In my mind they all need the existence of global and local variables, there are local variables, they are the ones used in maps. Now we need to figure out if there are and how to access global variables.
Looking forward to know if you can found a place or person where or from whom we could learn sth about global variables of cubescript and sandbox.
Siimvuss
