local sv = root.ScriptVars;

sv.SW_TOTALPLAYTIME = 990;
sv.SW_GAMESTATE = 1012;
sv.SW_TITLEDISPCT = 1014;
sv.SW_TITLEMASKALPHA = 1033;
sv.SW_TITLEMASKCOLOR = 1034;
sv.SW_SYSSEL = 1028;
sv.SW_SYSTEMMENUCHG = 1040;
sv.SW_SYSTEMMENUALPHA = 1041;
sv.SW_SYSMENUCT = 1042;
sv.SW_FILEALPHA = 1043;
sv.SW_MOVIEMODE_ALPHA = 1100;
sv.SW_MOVIEMODE_CUR = 1101;
sv.SW_ALBUM_ALPHA = 1105;
sv.SW_MASK1ALPHA_OFS = 1586;
sv.SW_MASK2ALPHA_OFS = 1587;
sv.SW_MASK3ALPHA_OFS = 1588;
sv.SW_MAINTHDP = 1704;
sv.SW_SAVEERRORCODE = 1733;
sv.SW_SYSMENUCNO = 1738;
sv.SW_TITLECUR1 = 1741;
sv.SW_TITLECUR2 = 1742;
sv.SW_SVSENO = 2001;
sv.SW_SVBGMNO = 2005;
sv.SW_SVSCRNO1 = 2006;
sv.SW_SVSCRNO2 = 2007;
sv.SW_SVSCRNO3 = 2008;
sv.SW_SVSCRNO4 = 2009;
sv.SW_SVBGNO1 = 2010;
sv.SW_SVCHANO1 = 2018;
sv.SW_TITLE = 2300;
sv.SW_PLAYTIME = 2304;
sv.SW_MESWINDOW_COLOR = 2308;
sv.SW_BGMREQNO = 2310;
sv.SW_SEREQNO = 2311;
sv.SW_BGMVOL = 2314;
sv.SW_SEVOL = 2315;
sv.SW_SCRIPTNO0 = 2320;
sv.SW_SCRIPTNO1 = 2321;
sv.SW_SCRIPTNO2 = 2322;
sv.SW_SCRIPTNO3 = 2323;
sv.SW_SCRIPTNO4 = 2324;
sv.SW_SCRIPTNO5 = 2325;
sv.SW_SCRIPTNO6 = 2326;
sv.SW_SCRIPTNO7 = 2327;
sv.SW_MASK1COLOR = 2329;
sv.SW_MASK1ALPHA = 2330;
sv.SW_MASK1PRI = 2331;
sv.SW_MASK1POSX = 2332;
sv.SW_MASK1POSY = 2333;
sv.SW_MASK1SIZEX = 2334;
sv.SW_MASK1SIZEY = 2335;
sv.SW_MESWIN0TYPE = 3172;
sv.SW_MESMODE0 = 3173;
sv.SW_CHA1POSX = 2600;
sv.SW_CHA1POSY = 2601;
sv.SW_CHA1ROTX = 2602;
sv.SW_CHA1ROTY = 2603;
sv.SW_CHA1ROTZ = 2604;
sv.SW_CHA1SIZEX = 2605;
sv.SW_CHA1SIZEY = 2606;
sv.SW_CHA1ALPHA = 2607;
sv.SW_CHA1FILTER = 2608;
sv.SW_CHA1NO = 2609;
sv.SW_CHA1PRI = 2610;
sv.SW_CHA1PRI2 = 2610;
sv.SW_CHA1POSE = 2611;
sv.SW_CHA1FACE = 2612;
sv.SW_CHA1EX = 2613;
sv.SW_CHA1FADECT = 2614;
sv.SW_CHA1FADETYPE = 2615;
sv.SW_CHA1ANIME_EYE = 2618;
sv.SW_CHA1ANIME_MOUTH = 2619;
sv.SW_CHA1SURF = 1850;
sv.SW_BG1POSX = 2400;
sv.SW_BG1POSY = 2401;
sv.SW_BG1SX = 2402;
sv.SW_BG1SY = 2403;
sv.SW_BG1SIZE = 2404;
sv.SW_BG1LX = 2405;
sv.SW_BG1LY = 2406;
sv.SW_BG1NO = 2407;
sv.SW_BG1PRI = 2408;
sv.SW_BG1PRI2 = 2408; -- Effectively disable
sv.SW_BG1DISPMODE = 2409;
sv.SW_BG1FADECT = 2410;
sv.SW_BG1FADETYPE = 2411;
sv.SW_BG1ROTZ = 2412;
sv.SW_BG1ALPHA = 2413;
sv.SW_BG1MASKNO = 2414;
sv.SW_BG1MASKFADERANGE = 2415;
sv.SW_BG1FILTER = 0; -- CHLCC has no bg filter
sv.SW_BG1POSX_OFS = 1200;
sv.SW_BG1POSY_OFS = 1201;
sv.SW_BG1SX_OFS = 1202;
sv.SW_BG1SY_OFS = 1203;
sv.SW_BG1SIZE_OFS = 1204;
sv.SW_BG1LX_OFS = 1205;
sv.SW_BG1LY_OFS = 1206;
sv.SW_BG1ROTZ_OFS = 0; -- CHLCC has no RotZ offset
sv.SW_BG1ALPHA_OFS = 1208;
sv.SW_CAP1POSX = sv.SW_BG1POSX;
sv.SW_CAP1POSY = sv.SW_BG1POSY;
sv.SW_CAP1SX = sv.SW_BG1SX;
sv.SW_CAP1SY = sv.SW_BG1SY;
sv.SW_CAP1SIZE = sv.SW_BG1SIZE;
sv.SW_CAP1LX = sv.SW_BG1LX;
sv.SW_CAP1LY = sv.SW_BG1LY;
sv.SW_CAP1DISPMODE = sv.SW_BG1DISPMODE;
sv.SW_CAP1FADECT = sv.SW_BG1FADECT;
sv.SW_CAP1FADETYPE = sv.SW_BG1FADETYPE;
sv.SW_CAP1ROTZ = sv.SW_BG1ROTZ;
sv.SW_CAP1ALPHA = sv.SW_BG1ALPHA;
sv.SW_CAP1MASKNO = sv.SW_BG1MASKNO;
sv.SW_CAP1MASKFADERANGE = sv.SW_BG1MASKFADERANGE;
sv.SW_CAP1FILTER = sv.SW_BG1FILTER;
sv.SW_CAP1NO = sv.SW_BG1NO;
sv.SW_CAP1PRI = sv.SW_BG1PRI;
sv.SW_CAP1PRI2 = sv.SW_BG1PRI2;
sv.SW_CAP1POSX_OFS = sv.SW_BG1POSX_OFS;
sv.SW_CAP1POSY_OFS = sv.SW_BG1POSY_OFS;
sv.SW_CAP1SX_OFS = sv.SW_BG1SX_OFS;
sv.SW_CAP1SY_OFS = sv.SW_BG1SY_OFS;
sv.SW_CAP1SIZE_OFS = sv.SW_BG1SIZE_OFS;
sv.SW_CAP1LX_OFS = sv.SW_BG1LX_OFS;
sv.SW_CAP1LY_OFS = sv.SW_BG1LY_OFS;
sv.SW_CAP1ROTZ_OFS = sv.SW_BG1ROTZ_OFS;
sv.SW_CAP1ALPHA_OFS = sv.SW_BG1ALPHA_OFS;
sv.SW_CHA1POSX_OFS = 1300;
sv.SW_CHA1POSY_OFS = 1301;
sv.SW_CHA1ROTX_OFS = 1302;
sv.SW_CHA1ROTY_OFS = 1303;
sv.SW_CHA1ROTZ_OFS = 1304;
sv.SW_CHA1SIZEX_OFS = 1305;
sv.SW_CHA1SIZEY_OFS = 1306;
sv.SW_CHA1ALPHA_OFS = 1307;
sv.SW_INTROVOICE = 1717
sv.SW_BG1SURF = 1800;
sv.SW_SAVEFILESTATUS = 2122;
sv.SW_SAVEFILENO = 2123;
sv.SW_BGLINK = 2580;
sv.SW_BGLINK2 = 2581;
sv.SW_EFF_CAP_PRI = 3268;
sv.SW_EFF_CAP_BUF = 3269;
sv.SW_EFF_CAP_PRI2 = 3270;
sv.SW_EFF_CAP_BUF2 = 3271;
sv.SW_MOVIEALPHA = 3411;
sv.SW_MOVIEPRI = 3410;
sv.SW_MOVIEALPHA = 3411;
sv.SW_MOVIEPRI2 = 3400;
sv.SW_MOVIEALPHA2 = 3421;
sv.SW_DELUSION_STATE = 3430;
--FlagWork
sv.SF_BACKLOGMENU = 1350;
sv.SF_SAVEMENU = 1351;
sv.SF_OPTIONMENU = 1352;
sv.SF_SYSTEMMENU = 1353;
sv.SF_TIPSMENU = 1354;
sv.SF_ALBUMMENU = 1355;
sv.SF_CLEARLISTMENU = 1356;
sv.SF_SOUNDMENU = 1357;
sv.SF_MOVIEMENU = 1358;
sv.SF_ACHIEVEMENTMENU = 1359;
sv.SF_MOVIEPLAY = 1819;
sv.SF_EXTRA_ENA = 860;
sv.SF_CAP1DISP = sv.SF_BG1DISP;
