Calculator

A place where the portal levels are posted.

Calculator

Postby AwesomeJRFD » Tue May 19, 2015 6:01 am

Portal link
A completely functional calculator with Multiplication, Division, Modulo, and Square functions

See here for full description:

http://new.lastlegacy.us/forums/viewtopic.php?f=16&t=35

Code: Select all
55x16~bX.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX2.53bX166~~8;128;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%3E%u25C0%3C/font%3E|8;192;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%3E%u25B6%3C/font%3E|8;296;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E0%3C/font%3E|8;360;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E1%3C/font%3E|8;424;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E2%3C/font%3E|8;488;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E3%3C/font%3E|8;552;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E4%3C/font%3E|8;616;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E5%3C/font%3E|8;680;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E6%3C/font%3E|8;744;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E7%3C/font%3E|8;808;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E8%3C/font%3E|8;872;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E9%3C/font%3E|8;968;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E+%3C/font%3E|8;1032;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E-%3C/font%3E|8;1096;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E%u2715%3C/font%3E|8;1160;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E%F7%3C/font%3E|8;1480;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E%3D%3C/font%3E|8;1576;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3EC%3C/font%3E|8;1312;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E%7C%7C%3C/font%3E~5;1104;416;0;8;0;set,g_OP,3:sleep,20:turnon,this|5;1168;416;0;8;0;set,g_OP,4:sleep,20:turnon,this|5;1040;416;0;8;0;set,g_OP,2:sleep,20:turnon,this|5;976;416;0;8;0;set,g_OP,1:sleep,20:turnon,this|5;304;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,0:goto,12:set,g_NUML2,0:goto,12:set,g_NUMR1,0:goto,12:set,g_NUMR2,0:sleep,20:turnon,this|5;144;416;0;5;0;branch,1,3,g_SEL,1:set,g_SEL,4:goto,4:sub,g_SEL,g_SEL,1:sleep,20:turnon,this|5;208;416;0;5;0;branch,2,3,g_SEL,4:set,g_SEL,1:goto,4:add,g_SEL,g_SEL,1:sleep,20:turnon,this|5;368;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,1:goto,12:set,g_NUML2,1:goto,12:set,g_NUMR1,1:goto,12:set,g_NUMR2,1:sleep,20:turnon,this|5;432;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,2:goto,12:set,g_NUML2,2:goto,12:set,g_NUMR1,2:goto,12:set,g_NUMR2,2:sleep,20:turnon,this|5;496;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,3:goto,12:set,g_NUML2,3:goto,12:set,g_NUMR1,3:goto,12:set,g_NUMR2,3:sleep,20:turnon,this|5;560;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,4:goto,12:set,g_NUML2,4:goto,12:set,g_NUMR1,4:goto,12:set,g_NUMR2,4:sleep,20:turnon,this|5;624;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,5:goto,12:set,g_NUML2,5:goto,12:set,g_NUMR1,5:goto,12:set,g_NUMR2,5:sleep,20:turnon,this|5;688;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,6:goto,12:set,g_NUML2,6:goto,12:set,g_NUMR1,6:goto,12:set,g_NUMR2,6:sleep,20:turnon,this|5;752;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,7:goto,12:set,g_NUML2,7:goto,12:set,g_NUMR1,7:goto,12:set,g_NUMR2,7:sleep,20:turnon,this|5;816;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,8:goto,12:set,g_NUML2,8:goto,12:set,g_NUMR1,8:goto,12:set,g_NUMR2,8:sleep,20:turnon,this|5;880;416;0;1;0;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:set,g_NUML1,9:goto,12:set,g_NUML2,9:goto,12:set,g_NUMR1,9:goto,12:set,g_NUMR2,9:sleep,20:turnon,this|8;1376;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E%5E2%3C/font%3E|8;1224;352;1;1;0;;%3Cfont%20color%3D%22%23FFFFFF%22%20face%3D%22Lucida%20Console%22%3E%25%3C/font%3E|5;1584;416;0;4;0;stoptrigger,equals:turnon,equalsbutton:set,g_NUML1,0:set,g_NUML2,0:set,g_NUMR1,0:set,g_NUMR2,0:set,g_NUM1,0:set,g_NUM2,0:set,g_ANS,0:set,g_displayANS,0:set,g_OP,1:set,g_doAbsVal,0:set,g_doSquare,0:set,g_SEL,1:set,g_M1,0:set,g_M2,0:set,g_M3,0:set,g_D1,0:set,g_D2,0:set,g_D3,0:sleep,20:turnon,this|5:equalsbutton;1488;416;0;7;0;activate,equals|5;1328;416;0;2;0;branch,5,2,g_doAbsVal,0:branch,5,4,g_doAbsVal,1:set,g_doAbsVal,1:goto,5:set,g_doAbsVal,0:sleep,20:turnon,this|5;1392;416;0;2;0;branch,5,2,g_doSquare,0:branch,5,4,g_doSquare,1:set,g_doSquare,1:goto,5:set,g_doSquare,0:sleep,20:turnon,this|5;1232;416;0;8;0;set,g_OP,5:sleep,20:turnon,this~0;72;416;1;0;0|2;1680;416~6:Divide;1160;512;16;16;0;1;c,%20--%20USAGE%20--%20%0D%0DUse%20the%20following%20sequence%20of%20functions%20in%20your%20trigger%20to%20divide%20two%20numbers/variables%3A%0D%0D%28%22x%22%20is%20the%20dividend%3B%20%22y%22%20is%20the%20divisor%29%0D%0D1.%20%20Set%20g_D1%20%3D%20x%0D2.%20%20Set%20g_D2%20%3D%20y%0D3.%20%20Activate%3A%20%22Divide%22%0D4.%20%20Sleep%201%0D%0DYou%20should%20now%20have%20the%20quotient%20%28x/y%29%20stored%20in%20g_D3.%0D%0D:branch,5,12,g_D1,0:branch,5,12,g_D2,0:branch,4,14,g_D1,g_D2:set,a,g_D1:set,b,g_D2:set,c,1:sub,a,a,g_D2:add,c,c,1:branch,1,7,a,g_D2:set,g_D3,c:exit:set,g_D3,0:exit:set,g_D3,1|6:display;-16;480;16;16;0;1;branch,5,6,g_OP,1:branch,5,8,g_OP,2:branch,5,10,g_OP,3:branch,5,12,g_OP,4:branch,5,14,g_OP,5:exit:subtitle,3,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7B%24g_NUML1%7D%7B%24g_NUML2%7D%20+%20%7B%24g_NUMR1%7D%7B%24g_NUMR2%7D%3C/font%3E,0:goto,15:subtitle,3,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7B%24g_NUML1%7D%7B%24g_NUML2%7D%20-%20%7B%24g_NUMR1%7D%7B%24g_NUMR2%7D%3C/font%3E,0:goto,15:subtitle,3,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7B%24g_NUML1%7D%7B%24g_NUML2%7D%20X%20%7B%24g_NUMR1%7D%7B%24g_NUMR2%7D%3C/font%3E,0:goto,15:subtitle,3,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7B%24g_NUML1%7D%7B%24g_NUML2%7D%20%F7%20%7B%24g_NUMR1%7D%7B%24g_NUMR2%7D%3C/font%3E,0:goto,15:subtitle,3,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7B%24g_NUML1%7D%7B%24g_NUML2%7D%20%25%20%7B%24g_NUMR1%7D%7B%24g_NUMR2%7D%3C/font%3E,0:sleep,10:subtitle_off:goto,0|6;40;352;64;64;0;1;set,g_NUM1,0:set,g_NUM2,0:set,g_ANS,0:set,g_SEL,1:set,g_OP,1:set,g_doAbsVal,0:activate,select:activate,display:activate,answerdisplay:activate,absvaldisplay:activate,squaredisplay|6:select;-16;448;16;16;0;1;branch,5,5,g_SEL,1:branch,5,7,g_SEL,2:branch,5,9,g_SEL,3:branch,5,11,g_SEL,4:exit:subtitle,3,%3Cfont%20size%3D%2216%22%20color%3D%22%23FFFF44%22%20face%3D%22Courier%20New%22%3E%u2588%3C/font%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.,0:goto,12:subtitle,3,%3Cfont%20size%3D%2216%22%20color%3D%22%23FFFF44%22%20face%3D%22Courier%20New%22%3E%u2588%3C/font%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.,0:goto,12:subtitle,3,.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cfont%20size%3D%2216%22%20color%3D%22%23FFFF44%22%20face%3D%22Courier%20New%22%3E%u2588%3C/font%3E,0:goto,12:subtitle,3,.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cfont%20size%3D%2216%22%20color%3D%22%23FFFF44%22%20face%3D%22Courier%20New%22%3E%u2588%3C/font%3E,0:sleep,4:goto,0|6:answerdisplay;-16;496;16;16;0;1;subtitle,0,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%3D%0D%0D%7B%24g_displayANS%7D%3C/font%3E,0:sleep,10:subtitle_off:goto,0|6:compile;1472;512;16;16;0;1;set,g_M1,g_NUML1:set,g_M2,10:activate,Multiply:sleep,1:add,g_NUM1,g_M3,g_NUML2:sleep,1:set,g_M1,g_NUMR1:set,g_M2,10:activate,Multiply:sleep,1:add,g_NUM2,g_M3,g_NUMR2:set,g_M3,0|6:equals;1488;512;16;16;0;1;activate,compile:sleep,4:branch,5,8,g_OP,1:branch,5,10,g_OP,2:branch,5,12,g_OP,3:branch,5,18,g_OP,4:branch,5,24,g_OP,5:exit:add,g_ANS,g_NUM1,g_NUM2:goto,29:sub,g_ANS,g_NUM1,g_NUM2:goto,29:set,g_M1,g_NUM1:set,g_M2,g_NUM2:activate,Multiply:sleep,3:set,g_ANS,g_M3:goto,29:set,g_D1,g_NUM1:set,g_D2,g_NUM2:activate,Divide:sleep,1:set,g_ANS,g_D3:goto,29:set,g_MOD1,g_NUM1:set,g_MOD2,g_NUM2:activate,Modulo:sleep,1:set,g_ANS,g_MOD3:branch,5,34,g_doAbsVal,0:set,g_ABS,g_ANS:activate,AbsoluteValue:sleep,1:set,g_ANS,g_ABS:branch,5,42,g_doSquare,0:set,g_SQ,g_ANS:activate,Square:sleep,5:branch,5,42,g_ANS,0:branch,5,42,g_ANS,1:branch,5,37,g_SQ,g_ANS:set,g_ANS,g_SQ:set,g_displayANS,g_ANS:sleepground:turnon,equalsbutton|6:AbsoluteValue;1320;512;16;16;0;1;c,%20--%20USAGE%20--%20%0D%0DUse%20the%20following%20sequence%20of%20functions%20in%20your%20trigger%20to%20find%20the%20absolute%20value%20of%20a%20number/variable%3A%0D%0D%28%22x%22%20is%20the%20number/variable%20you%20want%20to%20find%20the%20absolute%20value%20of%29%0D%0D1.%20%20Set%20g_ABS%20%3D%20x%0D2.%20%20Activate%3A%20%22AbsoluteValue%22%0D3.%20%20Sleep%201%0D%0DYou%20should%20now%20have%20the%20absolute%20value%20stored%20in%20g_ABS.%0D%0D:branch,2,3,g_ABS,0:exit:add,a,g_ABS,g_ABS:sub,g_ABS,g_ABS,a|6:absvaldisplay;-16;464;16;16;0;1;branch,5,2,g_doAbsVal,0:subtitle,3,%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7C%3C/font%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%7C%3C/font%3E,0:sleep,10:subtitle_off:goto,0|6:Multiply;1096;512;16;16;0;1;c,%20--%20USAGE%20--%20%0D%0DUse%20the%20following%20sequence%20of%20functions%20in%20your%20trigger%20to%20divide%20two%20numbers/variables%3A%0D%0D%28%22x%22%20and%20%22y%22%20are%20the%20numbers/variables%20you%20want%20to%20multiply%29%0D%0D%28%22z%22%20is%20the%20amount%20of%20frames%20you%20sleep.%20it%20depends%20on%20what%20you%20are%20multiplying%20by.%20You%20can%20fit%20about%20n*41%20per%20frame%29%0D%0D1.%20%20Set%20g_M1%20%3D%20x%0D2.%20%20Set%20g_M2%20%3D%20y%0D3.%20%20Activate%3A%20%22Multiply%22%0D4.%20%20Sleep%20z%0D%0DYou%20should%20now%20have%20the%20product%20%28x*y%29%20stored%20in%20g_M3.%0D%0D:branch,5,16,g_M1,0:branch,5,16,g_M2,0:branch,5,14,g_M1,1:branch,5,12,g_M2,1:set,a,g_M1:set,b,g_M2:add,a,a,g_M1:sub,b,b,1:branch,1,7,b,1:set,g_M3,a:exit:set,g_M3,g_M1:exit:set,g_M3,g_M2:exit:set,g_M3,0|6:Square;1384;512;16;16;0;1;c,%20--%20USAGE%20--%20%0D%0DUse%20the%20following%20sequence%20of%20functions%20in%20your%20trigger%20to%20square%20a%20number/variable%3A%0D%0D%28%22x%22%20is%20the%20number/variable%20you%20want%20to%20square%29%0D%0D%28%22z%22%20is%20the%20amount%20of%20frames%20you%20sleep.%20it%20depends%20on%20what%20you%20are%20multiplying%20by.%20You%20can%20fit%20about%20n*41%20per%20frame%29%0D%0D1.%20%20Set%20g_SQ%20%3D%20x%0D2.%20%20Activate%3A%20%22Square%22%0D3.%20%20Sleep%20z%0D%0DYou%20should%20now%20have%20the%20product%20%28x%5E2%29%20stored%20in%20g_SQ.%0D%0D:branch,3,4,g_SQ,0:add,abs,g_SQ,g_SQ:sub,g_SQ,g_SQ,abs:branch,5,15,g_SQ,0:branch,5,15,g_SQ,1:set,a,g_SQ:set,b,g_SQ:set,c,2:add,a,a,g_SQ:sub,b,b,1:branch,1,9,b,1:sub,c,c,1:branch,1,9,c,1:set,g_SQ,a:exit|6:squaredisplay;-32;464;16;16;0;1;branch,5,2,g_doSquare,0:subtitle,3,%20%20%20%20%20%20%20%20%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%28%3C/font%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cfont%20size%3D%2220%22%20color%3D%22%23FFFFFF%22%20face%3D%22Courier%20New%22%3E%29%5E2%3C/font%3E,0:sleep,10:subtitle_off:goto,0|6:Modulo;1224;512;16;16;0;1;c,%20--%20USAGE%20--%20%0D%0DUse%20the%20following%20sequence%20of%20functions%20in%20your%20trigger%20to%20find%20the%20modulo%20of%20two%20numbers/variables%3A%0D%0D%28%22x%22%20is%20the%20first%20number/variable%3B%20%22y%22%20is%20the%20second%20number/variable%29%0D%0D1.%20%20Set%20g_MOD1%20%3D%20x%0D2.%20%20Set%20g_MOD2%20%3D%20y%0D3.%20%20Activate%3A%20%22Mod%22%0D4.%20%20Sleep%201%0D%0DYou%20should%20now%20have%20the%20modulo%20%28x%25y%29%20stored%20in%20g_MOD3.%0D%0D:set,a,g_MOD1:set,b,g_MOD2:branch,5,9,a,b:branch,2,7,a,b:sub,a,a,b:goto,4:set,g_MOD3,a:exit:set,g_MOD3,0~Calculator~AwesomeJRFD~0~0;0;0~1~13;0~0;0;3~1387589738~0.4
ImageImage
User avatar
AwesomeJRFD
 
Posts: 101
Joined: Mon Jul 21, 2014 2:42 am
Location: Sixteenth Dimension: Hyperspace

Return to Portal

Who is online

Users browsing this forum: No registered users and 5 guests

cron