[CH2] Large Square Counter.

Designed a really awesome, amazing, complicated contraption? Show it off here!

[CH2] Large Square Counter.

Postby Triple J » Fri Sep 05, 2014 8:07 pm

WARNING: If your level already lags, this will make it worse, depending on how rapidly the sleep duration refreshes the Counter.

So, it looks like I finally got this thing working right.

Below, I have a custom-made Counter that is, by default, set to work with a total of five different Large Squares (MAKE SURE IT IS PLACED WITHIN EACH SECTION OF THE LEVEL DIVIDED BY LEVEL SPLITTERS):
Code: Select all
llitem:6:LargeSquareCounter;256;3648;16;16;0;1;branch,5,6,s_largesquares,0:branch,5,8,s_largesquares,1:branch,5,10,s_largesquares,2:branch,5,12,s_largesquares,3:branch,5,14,s_largesquares,4:branch,5,16,s_largesquares,5:subtitle,1,%3CP%20ALIGN%3D%22LEFT%22%3E%3CFONT%20SIZE%3D%2230%22%20COLOR%3D%22%23FFCC33%22%3E%u0394%3C/FONT%3E%20%3CFONT%20SIZE%3D%2218%22%20COLOR%3D%22%23808080%22%3E0/5%3C/FONT%3E%3C/P%3E,0:goto,17:subtitle,1,%3CP%20ALIGN%3D%22LEFT%22%3E%3CFONT%20SIZE%3D%2230%22%20COLOR%3D%22%23FFCC33%22%3E%u0394%3C/FONT%3E%20%3CFONT%20SIZE%3D%2218%22%20COLOR%3D%22%23FFFFFF%22%3E1/5%3C/FONT%3E%3C/P%3E,0:goto,17:subtitle,1,%3CP%20ALIGN%3D%22LEFT%22%3E%3CFONT%20SIZE%3D%2230%22%20COLOR%3D%22%23FFCC33%22%3E%u0394%3C/FONT%3E%20%3CFONT%20SIZE%3D%2218%22%20COLOR%3D%22%23FFFFFF%22%3E2/5%3C/FONT%3E%3C/P%3E,0:goto,17:subtitle,1,%3CP%20ALIGN%3D%22LEFT%22%3E%3CFONT%20SIZE%3D%2230%22%20COLOR%3D%22%23FFCC33%22%3E%u0394%3C/FONT%3E%20%3CFONT%20SIZE%3D%2218%22%20COLOR%3D%22%23FFFFFF%22%3E3/5%3C/FONT%3E%3C/P%3E,0:goto,17:subtitle,1,%3CP%20ALIGN%3D%22LEFT%22%3E%3CFONT%20SIZE%3D%2230%22%20COLOR%3D%22%23FFCC33%22%3E%u0394%3C/FONT%3E%20%3CFONT%20SIZE%3D%2218%22%20COLOR%3D%22%23FFFFFF%22%3E4/5%3C/FONT%3E%3C/P%3E,0:goto,17:subtitle,1,%3CP%20ALIGN%3D%22LEFT%22%3E%3CFONT%20SIZE%3D%2230%22%20COLOR%3D%22%23FFCC33%22%3E%u0394%3C/FONT%3E%20%3CFONT%20SIZE%3D%2218%22%20COLOR%3D%22%23FFCC33%22%3E5/5%3C/FONT%3E%3C/P%3E,0:sleep,15:subtitle_off:goto,0



This activates it (MAKE SURE THE PLAYER IS FORCED TO AUTOMATICALLY TOUCH THIS, BE IT THE START POSITION OR RESPAWN POINTS, PLUS one of these should be at both sides of any level splitters, to make sure the Counter is activated at all times. This even includes going through doors or passages, plus wherever any Move Character trigger takes the player to, especially when across level splitters, and maybe more):
Code: Select all
llitem:6:LargeSquareCounterstart;160;3528;32;64;0;1;activate,LargeSquareCounter



...And the 5 Large Squares (these are already set up to work the way they should):

One:
Code: Select all
llitem:44:LargeSquare1;2064;2952;branch,3,4,s_largesquare1,1:add,s_largesquare1,s_largesquare1,1:add,s_largesquares,s_largesquares,1:goto,4:exit


Two:
Code: Select all
llitem:44:LargeSquare2;3888;3520;branch,3,4,s_largesquare2,1:add,s_largesquare2,s_largesquare2,1:add,s_largesquares,s_largesquares,1:goto,4:exit


Three:
Code: Select all
llitem:44:LargeSquare3;72;3440;branch,3,4,s_largesquare3,1:add,s_largesquare3,s_largesquare3,1:add,s_largesquares,s_largesquares,1:goto,4:exit


Four:
Code: Select all
llitem:44:LargeSquare4;72;3488;branch,3,4,s_largesquare4,1:add,s_largesquare4,s_largesquare4,1:add,s_largesquares,s_largesquares,1:goto,4:exit


Five:
Code: Select all
llitem:44:LargeSquare5;72;3536;branch,3,4,s_largesquare5,1:add,s_largesquare5,s_largesquare5,1:add,s_largesquares,s_largesquares,1:goto,4:exit


IMPORTANT: The Counter will not reset upon respawning. I have not tested this using global variables. This uses static variables.



If you want to change the total number of Large Squares that work with this, it isn't all that complicated, as long as you pay attention to how the functions differ. (AKA, I'm lazy atm.)




EDIT: Looks like I need to make a few changes. The Counter blocks dialog boxes...
EDIT2: Fixed. Simplified and no longer overlaps dialog boxes.
Image
My biggest Last Legacy project!
It all comes together right here!
Join the fun and make the list!
User avatar
Triple J
 
Posts: 348
Joined: Wed Aug 13, 2014 6:46 pm
Location: Withheld.

Re: [CH2] Large Square Counter.

Postby Niicola » Sat Sep 13, 2014 8:07 pm

I did this ↓ :P
Code: Select all
150x50~.5421ad2aaad.145abadah2ad2acad2.140adabah.3ad5.139aaah.ad.3aead4.138ad.2ad2.2ad6.136ad2.ad4.2ad5.136ad.ad2.ah2.3ad3.126ad7.3ad.ad2.ad.2ad6.125ad2aaadaa3ac2.2ad3.2ad.2ad7.124aa8ac3.2ad.2ad.6ad5.118ad4aa12.4ad6.122aa18.ae.aa2ad8aa2ae7aa128.ahaeaa8ad2aa137.aa131~.5571ae5.144ae8.141ae8.ae.140ah2ae9.138ah2ae10.136ahafah2ae10.136ah3ae11.135ah4ae12.133ah5ae11ah4.131ah2ae16ah3.130ae17ah3.130ae17ah2.131ae6~~9:block;1164;1475;;6,3;ad6abad3ac2.af3ag;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;-1;0;0;1|2:End;1170;1680~0;59;1432;1;0;0|9;624;1103;100,100,100,0;1,9;bX9;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1|44;304;1361;add,g_S,g_S,1:activate,system|44;768;1256;add,g_S,g_S,1:activate,system|44;664;1488;add,g_S,g_S,1:activate,system|44;864;1464;add,g_S,g_S,1:activate,system|x40:S1;1104;1480;1;1;0;100,100,100,50,0,0,0,100,-100|x40:S2;1136;1480;1;1;0;100,100,100,50,0,0,0,100,-100|x40:S3;1168;1480;1;1;0;100,100,100,50,0,0,0,100,-100|x40:S4;1200;1480;1;1;0;100,100,100,50,0,0,0,100,-100|x40:S5;1232;1480;1;1;0;100,100,100,50,0,0,0,100,-100|9:block;1001;1487;100,100,100,0;1,1;ae;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1~44;528;1407;add,g_S,g_S,1:activate,system|6;33;1377;64;64;0;1;activate,system:subtitle,1,%3Cp%20align%3D%22left%22%3E%3Cfont%20color%3D%22%23FFFF00%22%20face%3D%22vrinda%22%20size%3D%2220%22%3E%3Cb%3E%u0394%3C/font%3E%20x%20%7B%24g_S%7D/5%3C/b%3E%20%20%20%20%20%20%20%20%20%20%20%20%20,0:sleep,15:goto,1|6:system;-17;1584;16;16;1;1;branch,5,6,g_S,1:branch,5,9,g_S,2:branch,5,12,g_S,3:branch,5,15,g_S,4:branch,5,18,g_S,5:goto,0:move,S1,0,64,0,0:move,s1,0,-64,0,0:exit:move,S2,0,64,0,0:move,s2,0,-64,0,0:exit:move,S3,0,64,0,0:move,s3,0,-64,0,0:exit:move,S4,0,64,0,0:move,s4,0,-64,0,0:exit:sleepground:cinemamode:sleep,15:camera,1,0,0,0,Camera,200,0,15:sleep,30:move,block,0,1,0,0:playsound,46,0.1:sleep,1:spawnquake,10,5:add,move,move,1:branch,2,23,move,100:move,S5,0,64,0,0:move,s5,0,-64,0,0:sleep,30:playsound,79,1:move,End,1161,1508,1,0:cinemaoff:exit|40:s1;1104;1544;|40:s2;1136;1544;|40:s3;1168;1544;|40:s4;1200;1544;|40:s5;1232;1544;|615:Camera;1161;1467|9;1071;1328;100,100,100,0;1,9;bX9;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1|9;1297;1367;100,100,100,0;1,9;bX9;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1~Large%20square%20counter%20test%20level~Niicola~1~1;0;0~1~16;0~0;0;3~1410638805~0.5~8,0,41,41,41,47,0,0,0,0,0,0
"There is no good or evil, only Akuma."
~ Akuma the raging Demon


Follow me in The Topic of "Coming Soon" Levels/Projects.
First page have been updated to make it look more professional, check it out!
Last update 02/07/16
User avatar
Niicola
 
Posts: 179
Joined: Sun Sep 07, 2014 3:26 pm
Location: /Not Found/


Return to Trigger creations

Who is online

Users browsing this forum: No registered users and 0 guests

cron