[TUTORIAL] Add ZONE function #22
SweetSea-ButImNotSweet
started this conversation in
General
Replies: 1 comment
-
Ok, even I though I can touch the checkbox which is not edit anything. Bruh |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know when I open this discussion, the game still in heavily development, so I CAN'T make sure everything will be okay through updates
HOW TO ADD ZONE FUNCTION INTO GAME MODE?
Honestly there are some requirements (very eazy):
If you meet these requirements then we will go to next step
First open /assets/game/mode/mino
Ex: if you put the game in
D:\Techmino_Galaxy\
then you will openD:\Techmino_Galaxy\assets\game\mode\mino
(on Windows)The path may different depends on platform which you are using
Now open a game mode file which you want to add Zone function
Ex: if you want to add Zone function into Marathon mode then edit
marathon.lua
You can open it with Notepad because they are plain text 😸
Note: For Android: if your file manager tell that there is no app to open, you can download a code editor (ex: Pocket Editor) then open the app and open the code file inside
Edit time
UPDATE: Now it's easier to make, just by editing something like:
eventsets={ -- Some codes will go here + "P:setAction('func1',mechLib.mino.stack.switch_auto)", -- More code will go here, maybe? }
Since old tutorial still working, I will keep it here for who want to make a mode with advanced choices
In this tutorial, I will pick Sprint 200 mode file as example:
We will add this into
playerInit
. But how?Yea, I know someone may ask me. Remember this is Lua code, and we can't do something like:
It will return an error like this

It's not funny to see this. So how to fix
We will need to make an list this time
In Lua, this is how you make a list:
So in this case we will do like this
Let me explain:
P:setAction("func1",mechLib.mino.stack.switch)
will assign the Function 1 (F1) key to Stack switch (which you can turn on/off Stack (Zone) modeNote: if it is a list already then just add
function(P) P:setAction("func1",mechLib.mino.stack.switch) end,
right after the last itemOne more thing you should remember, if you see something like:
Then just add like this
playerInit={ -- Some codes will goes here function(P) -- Some codes will goes here + P:setAction("func1",mechLib.mino.stack.switch) end -- More code will goes here }
Next, we will add this into
afterLock
:You may notice there is no
afterLock
in the code right? Well, we can just make thing simple, don't need to make a listFinally, you should add this:
This is very important because it will trigger when you are "BLOCK OUT!" (it will turn the Zone switch off, clear all stacked lines)
If you have done 3 steps above, then the code should be like this
Now you will see you can turn on or off Zone by pressing Function 1 (F1) key any time you want
https://user-images.githubusercontent.com/106439598/231941398-d2941aa0-5126-48e4-9e9f-77336d8bf08a.mp4
But we still need a thing: animation for the number
You will have to add
mechLib.mino.stack.event_always_animated
andmechLib.mino.stack.event_drawOnPlayer_animated
into thedrawOnPlayer
It should be like this:
Finally the new code will be like this
After done this, you can experience Zone in Sprint 200
You can apply this tutorial to any mode you want, remember you may have to modify some depends on mode you are modding
Here is my run for 200 lines with Zone(no video now)Enjoy, Zone - no time limit
Beta Was this translation helpful? Give feedback.
All reactions