Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_fusionmenu_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    xx = __view_get(e__VW.XView, 0);
4
    yy = __view_get(e__VW.YView, 0);
5
    customxy = 0;
6
    if (type == 1)
7
    {
8
        fusioncount = 0;
9
        
scr_fusion_queue
scr_fusion_queue

function
scr_fusion_queue(arg0)
{
scr_fusion_info(arg0);
fusionIngredient1[fusioncount] = ingredient[0]; fusionIngredient2[fusioncount] = ingredient[1]; fusionIngredientName1[fusioncount] = "--"; fusionIngredientName2[fusioncount] = "--"; fusionIngredientType1[fusioncount] = ingredienttype[0]; fusionIngredientType2[fusioncount] = ingredienttype[1]; fusionDesc[fusioncount] = resultdesc; fusionResult[fusioncount] = result; fusionResultType[fusioncount] = resulttype; fusionResultName[fusioncount] = "--"; fusionResultTopComment[fusioncount] = "--"; fusionHaveIngredient1[fusioncount] = 0; fusionHaveIngredient2[fusioncount] = 0; fusionCanMake[fusioncount] = 0; if (fusionIngredientType1[fusioncount] == "item") {
scr_iteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } identicalcheck = 0; if (fusionIngredientType2[fusioncount] == fusionIngredientType2[fusioncount]) { if (fusionIngredient1[fusioncount] == fusionIngredient2[fusioncount]) identicalcheck = 1; } if (fusionIngredientType2[fusioncount] == "item") {
scr_iteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionResultType[fusioncount] == "item") {
scr_iteminfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = itemnameb; fusionResultTopComment[fusioncount] =
scr_itemdesc_single(fusionResult[fusioncount]);
} if (fusionResultType[fusioncount] == "weapon") {
scr_weaponinfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = weaponnametemp; ...
(1);
10
        
scr_fusion_queue
scr_fusion_queue

function
scr_fusion_queue(arg0)
{
scr_fusion_info(arg0);
fusionIngredient1[fusioncount] = ingredient[0]; fusionIngredient2[fusioncount] = ingredient[1]; fusionIngredientName1[fusioncount] = "--"; fusionIngredientName2[fusioncount] = "--"; fusionIngredientType1[fusioncount] = ingredienttype[0]; fusionIngredientType2[fusioncount] = ingredienttype[1]; fusionDesc[fusioncount] = resultdesc; fusionResult[fusioncount] = result; fusionResultType[fusioncount] = resulttype; fusionResultName[fusioncount] = "--"; fusionResultTopComment[fusioncount] = "--"; fusionHaveIngredient1[fusioncount] = 0; fusionHaveIngredient2[fusioncount] = 0; fusionCanMake[fusioncount] = 0; if (fusionIngredientType1[fusioncount] == "item") {
scr_iteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } identicalcheck = 0; if (fusionIngredientType2[fusioncount] == fusionIngredientType2[fusioncount]) { if (fusionIngredient1[fusioncount] == fusionIngredient2[fusioncount]) identicalcheck = 1; } if (fusionIngredientType2[fusioncount] == "item") {
scr_iteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionResultType[fusioncount] == "item") {
scr_iteminfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = itemnameb; fusionResultTopComment[fusioncount] =
scr_itemdesc_single(fusionResult[fusioncount]);
} if (fusionResultType[fusioncount] == "weapon") {
scr_weaponinfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = weaponnametemp; ...
(2);
11
        
scr_fusion_queue
scr_fusion_queue

function
scr_fusion_queue(arg0)
{
scr_fusion_info(arg0);
fusionIngredient1[fusioncount] = ingredient[0]; fusionIngredient2[fusioncount] = ingredient[1]; fusionIngredientName1[fusioncount] = "--"; fusionIngredientName2[fusioncount] = "--"; fusionIngredientType1[fusioncount] = ingredienttype[0]; fusionIngredientType2[fusioncount] = ingredienttype[1]; fusionDesc[fusioncount] = resultdesc; fusionResult[fusioncount] = result; fusionResultType[fusioncount] = resulttype; fusionResultName[fusioncount] = "--"; fusionResultTopComment[fusioncount] = "--"; fusionHaveIngredient1[fusioncount] = 0; fusionHaveIngredient2[fusioncount] = 0; fusionCanMake[fusioncount] = 0; if (fusionIngredientType1[fusioncount] == "item") {
scr_iteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } identicalcheck = 0; if (fusionIngredientType2[fusioncount] == fusionIngredientType2[fusioncount]) { if (fusionIngredient1[fusioncount] == fusionIngredient2[fusioncount]) identicalcheck = 1; } if (fusionIngredientType2[fusioncount] == "item") {
scr_iteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionResultType[fusioncount] == "item") {
scr_iteminfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = itemnameb; fusionResultTopComment[fusioncount] =
scr_itemdesc_single(fusionResult[fusioncount]);
} if (fusionResultType[fusioncount] == "weapon") {
scr_weaponinfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = weaponnametemp; ...
(3);
12
        
scr_fusion_queue
scr_fusion_queue

function
scr_fusion_queue(arg0)
{
scr_fusion_info(arg0);
fusionIngredient1[fusioncount] = ingredient[0]; fusionIngredient2[fusioncount] = ingredient[1]; fusionIngredientName1[fusioncount] = "--"; fusionIngredientName2[fusioncount] = "--"; fusionIngredientType1[fusioncount] = ingredienttype[0]; fusionIngredientType2[fusioncount] = ingredienttype[1]; fusionDesc[fusioncount] = resultdesc; fusionResult[fusioncount] = result; fusionResultType[fusioncount] = resulttype; fusionResultName[fusioncount] = "--"; fusionResultTopComment[fusioncount] = "--"; fusionHaveIngredient1[fusioncount] = 0; fusionHaveIngredient2[fusioncount] = 0; fusionCanMake[fusioncount] = 0; if (fusionIngredientType1[fusioncount] == "item") {
scr_iteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } identicalcheck = 0; if (fusionIngredientType2[fusioncount] == fusionIngredientType2[fusioncount]) { if (fusionIngredient1[fusioncount] == fusionIngredient2[fusioncount]) identicalcheck = 1; } if (fusionIngredientType2[fusioncount] == "item") {
scr_iteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionResultType[fusioncount] == "item") {
scr_iteminfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = itemnameb; fusionResultTopComment[fusioncount] =
scr_itemdesc_single(fusionResult[fusioncount]);
} if (fusionResultType[fusioncount] == "weapon") {
scr_weaponinfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = weaponnametemp; ...
(4);
13
        
scr_fusion_queue
scr_fusion_queue

function
scr_fusion_queue(arg0)
{
scr_fusion_info(arg0);
fusionIngredient1[fusioncount] = ingredient[0]; fusionIngredient2[fusioncount] = ingredient[1]; fusionIngredientName1[fusioncount] = "--"; fusionIngredientName2[fusioncount] = "--"; fusionIngredientType1[fusioncount] = ingredienttype[0]; fusionIngredientType2[fusioncount] = ingredienttype[1]; fusionDesc[fusioncount] = resultdesc; fusionResult[fusioncount] = result; fusionResultType[fusioncount] = resulttype; fusionResultName[fusioncount] = "--"; fusionResultTopComment[fusioncount] = "--"; fusionHaveIngredient1[fusioncount] = 0; fusionHaveIngredient2[fusioncount] = 0; fusionCanMake[fusioncount] = 0; if (fusionIngredientType1[fusioncount] == "item") {
scr_iteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } identicalcheck = 0; if (fusionIngredientType2[fusioncount] == fusionIngredientType2[fusioncount]) { if (fusionIngredient1[fusioncount] == fusionIngredient2[fusioncount]) identicalcheck = 1; } if (fusionIngredientType2[fusioncount] == "item") {
scr_iteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionResultType[fusioncount] == "item") {
scr_iteminfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = itemnameb; fusionResultTopComment[fusioncount] =
scr_itemdesc_single(fusionResult[fusioncount]);
} if (fusionResultType[fusioncount] == "weapon") {
scr_weaponinfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = weaponnametemp; ...
(5);
14
        
scr_fusion_queue
scr_fusion_queue

function
scr_fusion_queue(arg0)
{
scr_fusion_info(arg0);
fusionIngredient1[fusioncount] = ingredient[0]; fusionIngredient2[fusioncount] = ingredient[1]; fusionIngredientName1[fusioncount] = "--"; fusionIngredientName2[fusioncount] = "--"; fusionIngredientType1[fusioncount] = ingredienttype[0]; fusionIngredientType2[fusioncount] = ingredienttype[1]; fusionDesc[fusioncount] = resultdesc; fusionResult[fusioncount] = result; fusionResultType[fusioncount] = resulttype; fusionResultName[fusioncount] = "--"; fusionResultTopComment[fusioncount] = "--"; fusionHaveIngredient1[fusioncount] = 0; fusionHaveIngredient2[fusioncount] = 0; fusionCanMake[fusioncount] = 0; if (fusionIngredientType1[fusioncount] == "item") {
scr_iteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } if (fusionIngredientType1[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient1[fusioncount]);
fusionIngredientName1[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient1[fusioncount]))
fusionHaveIngredient1[fusioncount] = 1; } identicalcheck = 0; if (fusionIngredientType2[fusioncount] == fusionIngredientType2[fusioncount]) { if (fusionIngredient1[fusioncount] == fusionIngredient2[fusioncount]) identicalcheck = 1; } if (fusionIngredientType2[fusioncount] == "item") {
scr_iteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = itemnameb; if (
scr_itemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "weapon") {
scr_weaponinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = weaponnametemp; if (
scr_weaponcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "armor") {
scr_armorinfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = armornametemp; if (
scr_armorcheck_inventory(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionIngredientType2[fusioncount] == "key") {
scr_keyiteminfo(fusionIngredient2[fusioncount]);
fusionIngredientName2[fusioncount] = tempkeyitemname; if (
scr_keyitemcheck(fusionIngredient2[fusioncount]))
{ if (identicalcheck == 0 || (identicalcheck == 1 && itemcount >= 2)) fusionHaveIngredient2[fusioncount] = 1; } } if (fusionResultType[fusioncount] == "item") {
scr_iteminfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = itemnameb; fusionResultTopComment[fusioncount] =
scr_itemdesc_single(fusionResult[fusioncount]);
} if (fusionResultType[fusioncount] == "weapon") {
scr_weaponinfo(fusionResult[fusioncount]);
fusionResultName[fusioncount] = weaponnametemp; ...
(6);
15
        menuMax = 2;
16
        menuHeight[0] = 2;
17
        menuWidth[0] = 1;
18
        menuMinimumID[0] = 0;
19
        menuMaximumID[0] = fusioncount - 1;
20
        menuVEdgeBehavior[0] = 1;
21
        menuHEdgeBehavior[0] = 2;
22
        menuPageSize[0] = 2;
23
        menuScrollAdd[0] = menuPageSize[0];
24
        menuX[0] = xx + 80;
25
        menuY[0] = yy + 190;
26
        menuBoxDraw[0] = 1;
27
        menuBoxDrawX1[0] = 30;
28
        menuBoxDrawY1[0] = 130;
29
        menuBoxDrawX2[0] = 610;
30
        menuBoxDrawY2[0] = 406;
31
        menuSpacingX[0] = 0;
32
        menuSpacingY[0] = 113;
33
        menuHeaderTextAmount[0] = 2;
34
        menuHeaderText[0][0] = stringsetloc(
Result
"Result", "obj_fusionmenu_slash_Step_0_gml_43_0"
);
35
        menuHeaderX[0][0] = ((xx + 120) - 20) + 14;
36
        menuHeaderY[0][0] = yy + 140;
37
        menuHeaderHeight[0][0] = 1;
38
        menuHeaderText[0][1] = stringsetloc(
Ingredients
"Ingredients", "obj_fusionmenu_slash_Step_0_gml_48_0"
);
39
        menuHeaderX[0][1] = (xx + 320 + 20) - 10;
40
        menuHeaderY[0][1] = yy + 140;
41
        menuHeaderHeight[0][1] = 1;
42
        wrap = 0;
43
        vwrap = 0;
44
        for (j = 0; j <= menuMaximumID[0]; j++)
45
        {
46
            optionID[0][j] = fusionResult[j];
47
            optionText[0][j] = fusionResultName[j];
48
            optionSelectable[0][j] = fusionCanMake[j];
49
            optionCommentA[0][j] = fusionIngredientName1[j];
50
            optionCommentAColor[0][j] = c_gray;
51
            if (fusionHaveIngredient1[j])
52
                optionCommentAColor[0][j] = c_white;
53
            optionCommentAWidth[0][j] = 250;
54
            optionCommentAXOffset[0][j] = 220;
55
            optionCommentAYOffset[0][j] = 0;
56
            optionCommentB[0][j] = fusionIngredientName2[j];
57
            optionCommentBColor[0][j] = c_gray;
58
            if (fusionHaveIngredient2[j])
59
                optionCommentBColor[0][j] = c_white;
60
            optionCommentBWidth[0][j] = 250;
61
            optionCommentBXOffset[0][j] = 220;
62
            optionCommentBYOffset[0][j] = 40;
63
            optionCommentC[0][j] = fusionDesc[j];
64
            optionCommentCColor[0][j] = c_black;
65
            optionCommentCWidth[0][j] = 160;
66
            optionCommentCXOffset[0][j] = 0;
67
            optionCommentCYOffset[0][j] = 40;
68
            optionTopComment[0][j] = fusionResultTopComment[j];
69
        }
70
        menuHeight[1] = 1;
71
        menuWidth[1] = 2;
72
        menuMinimumID[1] = 0;
73
        menuMaximumID[1] = 1;
74
        menuVEdgeBehavior[1] = 0;
75
        menuHEdgeBehavior[1] = 1;
76
        menuPageSize[1] = 2;
77
        menuX[1] = xx + 350;
78
        menuY[1] = yy + 400;
79
        menuBoxDraw[1] = 1;
80
        menuBoxDrawX1[1] = -10;
81
        menuBoxDrawY1[1] = 375;
82
        menuBoxDrawX2[1] = 650;
83
        menuBoxDrawY2[1] = 490;
84
        menuSpacingX[1] = 100;
85
        menuSpacingY[1] = 0;
86
        menuTextFont[0] = 
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("mainbig");
87
        menuTextFont[1] = 
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("mainbig");
88
        menuHeaderTextAmount[1] = 1;
89
        menuHeaderText[1][0] = stringsetloc(
Really fuse it?
"Really fuse it?", "obj_fusionmenu_slash_Step_0_gml_114_0"
);
90
        menuHeaderX[1][0] = xx + 60;
91
        menuHeaderY[1][0] = yy + 400;
92
        optionID[1][0] = 1;
93
        optionText[1][0] = stringsetloc(
Yes
"Yes", "obj_fusionmenu_slash_Step_0_gml_119_0"
);
94
        optionSelectable[1][0] = 1;
95
        optionEffect[1][0] = 1;
96
        optionID[1][1] = 1;
97
        optionText[1][1] = stringsetloc(
No
"No", "obj_fusionmenu_slash_Step_0_gml_124_0"
);
98
        optionSelectable[1][1] = 1;
99
        optionEffect[1][1] = 2;
100
    }
101
    if (type == 2)
102
    {
103
        dojoEncounter[0] = 178;
104
        dojoEncounter[1] = 0;
105
        dojoEncounter[2] = 0;
106
        dojoEncounter[3] = 0;
107
        dojoEncounter[4] = 0;
108
        dojoName[0] = stringsetloc(
Lanino
Elnina
"Lanino&Elnina", "obj_fusionmenu_slash_Step_0_gml_142_0_b"
);
109
        dojoName[1] = stringsetloc(
-------------
"-------------", "obj_fusionmenu_slash_Step_0_gml_143_0"
);
110
        dojoName[2] = stringsetloc(
-------------
"-------------", "obj_fusionmenu_slash_Step_0_gml_144_0_b"
);
111
        dojoName[3] = stringsetloc(
-------------
"-------------", "obj_fusionmenu_slash_Step_0_gml_145_0_b"
);
112
        dojoName[4] = stringsetloc(
-------------
"-------------", "obj_fusionmenu_slash_Step_0_gml_146_0_c"
);
113
        dojoTopComment[0] = stringsetloc(
The weather always sticks together!#Predict the forecast and win!
"The weather always sticks together!#Predict the forecast and win!", "obj_fusionmenu_slash_Step_0_gml_148_0"
);
114
        dojoTopComment[1] = stringsetloc(
" ", "obj_fusionmenu_slash_Step_0_gml_149_0"
);
115
        dojoTopComment[2] = stringsetloc(
" ", "obj_fusionmenu_slash_Step_0_gml_150_0_b"
);
116
        dojoTopComment[3] = stringsetloc(
" ", "obj_fusionmenu_slash_Step_0_gml_151_0_b"
);
117
        dojoTopComment[4] = stringsetloc(
" ", "obj_fusionmenu_slash_Step_0_gml_152_0_b"
);
118
        dojoPrizeName[0] = stringsetloc(
ExecBuffet
"ExecBuffet", "obj_fusionmenu_slash_Step_0_gml_155_0"
);
119
        dojoPrizeName[1] = stringsetloc(
---
"---", "obj_fusionmenu_slash_Step_0_gml_156_0"
);
120
        dojoPrizeName[2] = stringsetloc(
---
"---", "obj_fusionmenu_slash_Step_0_gml_157_0"
);
121
        dojoPrizeName[3] = stringsetloc(
---
"---", "obj_fusionmenu_slash_Step_0_gml_158_0"
);
122
        dojoPrizeName[4] = stringsetloc(
---
"---", "obj_fusionmenu_slash_Step_0_gml_159_0"
);
123
        dojoPrizeValue[0] = 38;
124
        dojoPrizeValue[1] = 0;
125
        dojoPrizeValue[2] = 0;
126
        dojoPrizeValue[3] = 0;
127
        dojoPrizeValue[4] = 0;
128
        dojoPrizeType[0] = "item";
129
        dojoPrizeType[1] = "money";
130
        dojoPrizeType[2] = "item";
131
        dojoPrizeType[3] = "item";
132
        dojoPrizeType[4] = "item";
133
        dojoFlag[0] = 815;
134
        dojoFlag[1] = 0;
135
        dojoFlag[2] = 0;
136
        dojoFlag[3] = 0;
137
        dojoFlag[4] = 0;
138
        if (global.chapter == 2)
139
        {
140
            tasqueRecruited = global.flag[642 recruit_task_manager];
141
            if (tasqueRecruited == 1)
142
            {
143
                dojoName[3] = stringsetloc(
Tasque Manager Says
"Tasque Manager Says", "obj_fusionmenu_slash_Step_0_gml_176_0"
);
144
                dojoPrizeName[3] = stringsetloc(
$250
"$250", "obj_fusionmenu_slash_Step_0_gml_178_0"
);
145
                dojoTopComment[3] = stringsetloc(
Winning's as easy as A-B-C!#You've got three chances, boss!
"Winning's as easy as A-B-C!#You've got three chances, boss!", "obj_fusionmenu_slash_Step_0_gml_180_0"
);
146
                dojoEncounter[3] = 89;
147
            }
148
            if (ch2_allrecruited == 1)
149
            {
150
                dojoName[4] = stringsetloc(
Ch2 All Stars
"Ch2 All Stars", "obj_fusionmenu_slash_Step_0_gml_177_0"
);
151
                dojoPrizeName[4] = stringsetloc(
TensionGem
"TensionGem", "obj_fusionmenu_slash_Step_0_gml_179_0"
);
152
                dojoTopComment[4] = stringsetloc(
Face everyone in a row!#It'll take some stamina...
"Face everyone in a row!#It'll take some stamina...", "obj_fusionmenu_slash_Step_0_gml_181_0"
);
153
                dojoEncounter[4] = 90;
154
            }
155
        }
156
        dojoEncounterAmbush[0] = 0;
157
        dojoEncounterAmbush[1] = 1;
158
        dojoEncounterAmbush[2] = 0;
159
        dojoEncounterAmbush[3] = 1;
160
        dojoEncounterAmbush[4] = 0;
161
        stringClaimed = stringsetloc(
Claimed
"Claimed", "obj_fusionmenu_slash_Step_0_gml_208_0"
);
162
        if (global.flag[815] != 0)
163
            dojoPrizeName[0] = stringClaimed;
164
        menuMax = 2;
165
        menuHeight[0] = 5;
166
        menuWidth[0] = 1;
167
        menuMinimumID[0] = 0;
168
        menuMaximumID[0] = 4;
169
        menuVEdgeBehavior[0] = 1;
170
        menuHEdgeBehavior[0] = 0;
171
        menuPageSize[0] = 5;
172
        menuScrollAdd[0] = menuPageSize[0];
173
        menuX[0] = (xx + 129) - 15 - 15;
174
        menuY[0] = (yy + 220) - 5;
175
        menuBoxDraw[0] = 1;
176
        menuBoxDrawX1[0] = 60;
177
        menuBoxDrawY1[0] = 158;
178
        menuBoxDrawX2[0] = 580;
179
        menuBoxDrawY2[0] = 434;
180
        menuSpacingX[0] = 0;
181
        menuSpacingY[0] = 44;
182
        menuTextXScale[0] = 150;
183
        menuHeaderTextAmount[0] = 2;
184
        menuHeaderText[0][0] = stringsetloc(
Challenge
"Challenge", "obj_fusionmenu_slash_Step_0_gml_215_0"
);
185
        menuHeaderX[0][0] = (xx + 120 + 30) - 21;
186
        menuHeaderY[0][0] = ((yy + 200) - 5 - 10 - 10 - 10) + 2;
187
        menuHeaderHeight[0][0] = 1;
188
        menuHeaderColor[0][0] = c_gray;
189
        menuHeaderText[0][1] = stringsetloc(
Prize
"Prize", "obj_fusionmenu_slash_Step_0_gml_220_0"
);
190
        menuHeaderX[0][1] = (xx + 320 + 30) - 21;
191
        menuHeaderY[0][1] = ((yy + 200) - 5 - 10 - 10 - 10) + 2;
192
        menuHeaderHeight[0][1] = 1;
193
        menuHeaderColor[0][1] = c_gray;
194
        wrap = 0;
195
        vwrap = 0;
196
        for (j = 0; j <= menuMaximumID[0]; j++)
197
        {
198
            optionID[0][j] = 6;
199
            optionText[0][j] = dojoName[j];
200
            optionSelectable[0][j] = 0;
201
            if (dojoEncounter[j] > 0)
202
                optionSelectable[0][j] = 1;
203
            optionCommentA[0][j] = dojoPrizeName[j];
204
            optionCommentAWidth[0][j] = 200;
205
            optionCommentAXOffset[0][j] = 200;
206
            optionCommentAYOffset[0][j] = 0;
207
            optionCommentAColor[0][j] = c_white;
208
            if (global.flag[dojoFlag[j]] >= 1)
209
            {
210
                optionCommentAColor[0][j] = c_yellow;
211
                optionCommentA[0][j] += stringsetloc(
!
"!", "obj_fusionmenu_slash_Step_0_gml_244_0"
);
212
            }
213
            optionTopComment[0][j] = dojoTopComment[j];
214
        }
215
        menuHeight[1] = 1;
216
        menuWidth[1] = 2;
217
        menuMinimumID[1] = 0;
218
        menuMaximumID[1] = 1;
219
        menuVEdgeBehavior[1] = 0;
220
        menuHEdgeBehavior[1] = 1;
221
        menuPageSize[1] = 2;
222
        menuX[1] = xx + 350;
223
        menuY[1] = yy + 400;
224
        menuBoxDraw[1] = 1;
225
        menuBoxDrawX1[1] = -10;
226
        menuBoxDrawY1[1] = 375;
227
        menuBoxDrawX2[1] = 650;
228
        menuBoxDrawY2[1] = 490;
229
        menuSpacingX[1] = 100;
230
        menuSpacingY[1] = 0;
231
        menuHeaderTextAmount[1] = 1;
232
        menuHeaderText[1][0] = stringsetloc(
Challenge?
"Challenge?", "obj_fusionmenu_slash_Step_0_gml_275_0"
);
233
        menuHeaderX[1][0] = xx + 60;
234
        menuHeaderY[1][0] = yy + 400;
235
        optionID[1][0] = 1;
236
        optionText[1][0] = stringsetloc(
Yes
"Yes", "obj_fusionmenu_slash_Step_0_gml_280_0"
);
237
        optionSelectable[1][0] = 1;
238
        optionEffect[1][0] = 1;
239
        optionID[1][1] = 1;
240
        optionText[1][1] = stringsetloc(
No
"No", "obj_fusionmenu_slash_Step_0_gml_285_0"
);
241
        optionSelectable[1][1] = 1;
242
        optionEffect[1][1] = 2;
243
    }
244
    if (type == 3)
245
    {
246
        if (subtype == 2 || subtype == 1)
247
        {
248
            if (subtype == 1)
249
                
scr_recruit_info_all
scr_recruit_info_all

function
scr_recruit_info_all()
{ if (argument_count < 1) allrecruits =
scr_recruits_to_array();
if (argument_count == 1) allrecruits =
scr_recruits_to_array(argument[0]);
if (argument_count == 1 && argument[0] == "total") allrecruits =
scr_recruits_to_array();
if (argument_count >= 2) allrecruits =
scr_recruits_to_array(argument[0], argument[1]);
if (argument_count >= 1) { if (argument[0] == "half") allrecruits = halfrecruits; if (argument[0] == "either") allrecruits = eitherrecruits; } for (__i = 0; __i < allrecruits; __i++) {
scr_recruit_info(recruit[__i]);
recruitID[__i] = recruit[__i]; recruitSprite[__i] = _sprite; recruitSpriteX[__i] = _spritex; recruitSpriteY[__i] = _spritey; recruitImageSpeed[__i] = _imagespeed; recruitName[__i] = _name; recruitDesc[__i] = _desc; recruitLike[__i] = _like; recruitDislike[__i] = _dislike; recruitChapter[__i] = _chapter; recruitLevel[__i] = _level; recruitAttack[__i] = _attack; recruitDefense[__i] = _defense; recruitElement[__i] = _element; recruitDialogueBoxes[__i] = _dialogueboxes; recruitCountMax[__i] = _recruitcount; recruitCountCurrent[__i] = _recruitcountcurrent; recruitFullyRecruited[__i] = 0; if (global.flag[600 + recruitID[__i]] == 1) recruitFullyRecruited[__i] = 1; if (recruitFullyRecruited[__i] == 0) { recruitDesc[__i] = stringsetloc(
Not yet fully recruited
"Not yet fully recruited", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_46_0"
);
recruitLike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_47_0"
);
recruitDislike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_48_0"
);
} recruitPlaceable[__i] = _placeable; } }
("total");
250
            if (subtype == 2)
251
                
scr_recruit_info_all
scr_recruit_info_all

function
scr_recruit_info_all()
{ if (argument_count < 1) allrecruits =
scr_recruits_to_array();
if (argument_count == 1) allrecruits =
scr_recruits_to_array(argument[0]);
if (argument_count == 1 && argument[0] == "total") allrecruits =
scr_recruits_to_array();
if (argument_count >= 2) allrecruits =
scr_recruits_to_array(argument[0], argument[1]);
if (argument_count >= 1) { if (argument[0] == "half") allrecruits = halfrecruits; if (argument[0] == "either") allrecruits = eitherrecruits; } for (__i = 0; __i < allrecruits; __i++) {
scr_recruit_info(recruit[__i]);
recruitID[__i] = recruit[__i]; recruitSprite[__i] = _sprite; recruitSpriteX[__i] = _spritex; recruitSpriteY[__i] = _spritey; recruitImageSpeed[__i] = _imagespeed; recruitName[__i] = _name; recruitDesc[__i] = _desc; recruitLike[__i] = _like; recruitDislike[__i] = _dislike; recruitChapter[__i] = _chapter; recruitLevel[__i] = _level; recruitAttack[__i] = _attack; recruitDefense[__i] = _defense; recruitElement[__i] = _element; recruitDialogueBoxes[__i] = _dialogueboxes; recruitCountMax[__i] = _recruitcount; recruitCountCurrent[__i] = _recruitcountcurrent; recruitFullyRecruited[__i] = 0; if (global.flag[600 + recruitID[__i]] == 1) recruitFullyRecruited[__i] = 1; if (recruitFullyRecruited[__i] == 0) { recruitDesc[__i] = stringsetloc(
Not yet fully recruited
"Not yet fully recruited", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_46_0"
);
recruitLike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_47_0"
);
recruitDislike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_48_0"
);
} recruitPlaceable[__i] = _placeable; } }
("either");
252
            alternateMenu = 1;
253
        }
254
        else
255
        {
256
            alternateMenu = 0;
257
            
scr_recruit_info_all
scr_recruit_info_all

function
scr_recruit_info_all()
{ if (argument_count < 1) allrecruits =
scr_recruits_to_array();
if (argument_count == 1) allrecruits =
scr_recruits_to_array(argument[0]);
if (argument_count == 1 && argument[0] == "total") allrecruits =
scr_recruits_to_array();
if (argument_count >= 2) allrecruits =
scr_recruits_to_array(argument[0], argument[1]);
if (argument_count >= 1) { if (argument[0] == "half") allrecruits = halfrecruits; if (argument[0] == "either") allrecruits = eitherrecruits; } for (__i = 0; __i < allrecruits; __i++) {
scr_recruit_info(recruit[__i]);
recruitID[__i] = recruit[__i]; recruitSprite[__i] = _sprite; recruitSpriteX[__i] = _spritex; recruitSpriteY[__i] = _spritey; recruitImageSpeed[__i] = _imagespeed; recruitName[__i] = _name; recruitDesc[__i] = _desc; recruitLike[__i] = _like; recruitDislike[__i] = _dislike; recruitChapter[__i] = _chapter; recruitLevel[__i] = _level; recruitAttack[__i] = _attack; recruitDefense[__i] = _defense; recruitElement[__i] = _element; recruitDialogueBoxes[__i] = _dialogueboxes; recruitCountMax[__i] = _recruitcount; recruitCountCurrent[__i] = _recruitcountcurrent; recruitFullyRecruited[__i] = 0; if (global.flag[600 + recruitID[__i]] == 1) recruitFullyRecruited[__i] = 1; if (recruitFullyRecruited[__i] == 0) { recruitDesc[__i] = stringsetloc(
Not yet fully recruited
"Not yet fully recruited", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_46_0"
);
recruitLike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_47_0"
);
recruitDislike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_48_0"
);
} recruitPlaceable[__i] = _placeable; } }
("total");
258
        }
259
        menuMax = 3;
260
        menuWidth[0] = 1;
261
        menuMinimumID[0] = 0;
262
        menuMaximumID[0] = allrecruits - 1;
263
        menuVEdgeBehavior[0] = 1;
264
        menuHEdgeBehavior[0] = 2;
265
        menuHeight[0] = min(menuMaximumID[0] + 1, 9);
266
        menuPageSize[0] = menuHeight[0];
267
        if (menuMaximumID[0] < menuPageSize[0])
268
            menuHEdgeBehavior[0] = 0;
269
        menuScrollAdd[0] = menuPageSize[0];
270
        menuNext[0] = 1;
271
        menuX[0] = xx + 50;
272
        menuY[0] = yy + 90;
273
        menuBoxDraw[0] = 1;
274
        menuBoxDrawX1[0] = 30;
275
        menuBoxDrawY1[0] = 10;
276
        menuBoxDrawX2[0] = 300;
277
        if (alternateMenu == 1)
278
            menuBoxDrawX2[0] = 620;
279
        menuBoxDrawY2[0] = 440;
280
        menuSpacingX[0] = 0;
281
        menuSpacingY[0] = 35;
282
        menuTextXScale[0] = 180;
283
        menuTextYScale[0] = 1;
284
        menuTextOffsetY[0] = 2;
285
        menuDisplayCondition[0] = 1;
286
        menuWidth[1] = 1;
287
        menuHeight[1] = 1;
288
        menuBoxDraw[1] = 1;
289
        menuBoxDrawX1[1] = 30;
290
        menuBoxDrawY1[1] = 10;
291
        menuBoxDrawX2[1] = 610;
292
        menuBoxDrawY2[1] = 450;
293
        menuX[1] = xx + 50;
294
        menuY[1] = yy + 400;
295
        menuSpacingY[1] = 0;
296
        menuMaximumID[1] = menuMaximumID[0];
297
        menuVEdgeBehavior[1] = 0;
298
        menuHEdgeBehavior[1] = 2;
299
        menuPageSize[1] = 1;
300
        menuScrollAdd[1] = menuPageSize[1];
301
        menuDisplayCondition[1] = 1;
302
        for (j = 0; j <= menuMaximumID[1]; j++)
303
        {
304
            optionText[0][j] = recruitName[j];
305
            optionText[1][j] = " ";
306
            optionSelectable[0][j] = 1;
307
            optionSelectable[1][j] = recruitPlaceable[j];
308
            if (recruitPlaceable[j] == 2)
309
            {
310
                var _is_seated = false;
311
                _seatcheck = recruitID[j];
312
                for (var i = 0; i < instance_number(obj_npc_cafe); i++)
313
                {
314
                    var patron = instance_find(obj_npc_cafe, i);
315
                    if (patron.myid == _seatcheck)
316
                    {
317
                        _is_seated = true;
318
                        break;
319
                    }
320
                }
321
                if (_is_seated)
322
                {
323
                    recruitPlaceable[j] = 0;
324
                    optionSelectable[1][j] = 0;
325
                }
326
            }
327
            if (alternateMenu)
328
            {
329
                optionSelectable[0][j] = 1;
330
                optionSelectable[1][j] = 0;
331
                if (recruitFullyRecruited[j] == 1)
332
                {
333
                    optionCommentA[0][j] = stringsetloc(
Recruited!
"Recruited!", "obj_fusionmenu_slash_Step_0_gml_377_0"
);
334
                    optionCommentAColor[0][j] = c_lime;
335
                    optionCommentAXOffset[0][j] = 195;
336
                    optionCommentAYOffset[0][j] = 0;
337
                    optionCommentAWidth[0][j] = squished;
338
                }
339
                else
340
                {
341
                    optionCommentAColor[0][j] = c_ltgray;
342
                    optionCommentAXOffset[0][j] = 200;
343
                    optionCommentAYOffset[0][j] = 0;
344
                    optionCommentAWidth[0][j] = 1;
345
                    optionCommentA[0][j] = string(recruitCountCurrent[j]) + "/" + string(recruitCountMax[j]);
346
                }
347
            }
348
        }
349
        menuWidth[2] = 4;
350
        menuHeight[2] = 1;
351
        menuBoxDraw[2] = 0;
352
        menuX[2] = xx + 50;
353
        menuY[2] = yy + 300;
354
        menuSpacingY[2] = 0;
355
        menuMaximumID[2] = 3;
356
        menuVEdgeBehavior[2] = 0;
357
        menuHEdgeBehavior[2] = 1;
358
        menuDisplayCondition[2] = 1;
359
        customxy = 1;
360
        
scr_custommenu_optionxy
scr_custommenu_optionxy

function
scr_custommenu_optionxy()
{ wrap = 0; vwrap = 0; for (_n = 0; _n < menuMax; _n++) { for (j = 0; j <= menuMaximumID[_n]; j++) { optionX[_n][j] = menuX[_n] + (wrap * menuSpacingX[_n]); optionY[_n][j] = menuY[_n] + (vwrap * menuSpacingY[_n]); wrap++; if (wrap >= menuWidth[_n]) { wrap = 0; vwrap++; } } } }
();
361
        menuSpacingOverride[2] = 1;
362
        _n = 2;
363
        var _seatcheck = 0;
364
        if (alternateMenu == 0)
365
        {
366
            for (j = 0; j < 4; j++)
367
            {
368
                _seatcheck = j;
369
                with (obj_npc_cafe)
370
                {
371
                    if (_seatcheck == seat)
372
                        obj_fusionmenu.cafenpc[_seatcheck] = id;
373
                }
374
                optionX[_n][j] = cafenpc[j].x + 40;
375
                optionY[_n][j] = cafenpc[j].y + 35;
376
                optionText[_n][j] = " ";
377
                if (global.is_console || obj_gamecontroller.gamepad_active)
378
                {
379
                    optionTopComment[_n][j] = stringsetloc(
Place Return
" Place Return", "obj_fusionmenu_slash_Step_0_gml_462_0"
);
380
                    display_buttons = true;
381
                }
382
                else
383
                {
384
                    optionTopComment[_n][j] = stringsetsubloc("~1: Place   ~2: Return", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(4),
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(5), "obj_fusionmenu_slash_Step_0_gml_434_0");
385
                }
386
                optionSelectable[_n][j] = 1;
387
                optionEffect[_n][j] = 1;
388
            }
389
        }
390
    }
391
    if (type == 4)
392
    {
393
        depth = -40000;
394
        
scr_custommenu_item_info_refresh
scr_custommenu_item_info_refresh

function
scr_custommenu_item_info_refresh()
{
scr_iteminfo_all();
scr_itemdesc();
for (i = 0; i < 12; i++) { menuitemid[i] = global.item[i]; menuitemdesc[i] = itemdesc[i]; menuitemname[i] = global.itemnameb[i]; if (menuitemname[i] == " ") menuitemname[i] = "---"; } for (i = 0; i < global.flag[64 storage_size]; i += 1) { pocketitemid[i] = global.pocketitem[i];
scr_iteminfo(pocketitemid[i]);
pocketitemname[i] = itemnameb; pocketitemdesc[i] =
scr_itemdesc_single(global.pocketitem[i]);
if (pocketitemname[i] == " ") pocketitemname[i] = "---"; } menuMaximumID[0] = 11; for (var _j = 0; _j <= menuMaximumID[0]; _j++) { optionID[0][_j] = menuitemid[_j]; optionText[0][_j] = menuitemname[_j]; optionTopComment[0][_j] = menuitemdesc[_j]; optionSelectable[0][_j] = 1; } menuMaximumID[1] = global.flag[64 storage_size] - 1; for (var _j = 0; _j <= menuMaximumID[1]; _j++) { optionID[1][_j] = pocketitemid[_j]; optionText[1][_j] = pocketitemname[_j]; optionSelectable[1][_j] = 1; optionEffect[1][_j] = 1; optionTopComment[1][_j] = pocketitemdesc[_j]; } }
();
395
        wrap = 0;
396
        vwrap = 0;
397
        menuMax = 2;
398
        menuSprite = spr_heartsmall;
399
        menuHeight[0] = 6;
400
        menuWidth[0] = 2;
401
        menuMinimumID[0] = 0;
402
        menuMaximumID[0] = 11;
403
        menuVEdgeBehavior[0] = 1;
404
        menuHEdgeBehavior[0] = 1;
405
        menuPageSize[0] = 12;
406
        menuScrollAdd[0] = menuPageSize[0];
407
        menuX[0] = xx + 140;
408
        if (jp)
409
            menuX[0] = xx + 160;
410
        menuY[0] = yy + 140;
411
        menuBoxDraw[0] = 1;
412
        menuBoxDrawX1[0] = 40;
413
        menuBoxDrawY1[0] = 120;
414
        menuBoxDrawX2[0] = 600;
415
        menuBoxDrawY2[0] = 280;
416
        menuSpacingX[0] = 220;
417
        if (jp)
418
            menuSpacingX[0] = 180;
419
        menuSpacingY[0] = 20;
420
        menuTextOffsetX[0] = 14;
421
        menuTextOffsetY[0] = 4;
422
        menuTextOffsetX[1] = 14;
423
        menuTextOffsetY[1] = 4;
424
        menuTextScaleType[0] = 1;
425
        menuTextXScale[0] = 0.5;
426
        menuTextScaleType[1] = 1;
427
        menuTextYScale[1] = 0.5;
428
        menuDisplayCondition[1] = 0;
429
        menuHeight[1] = 6;
430
        menuWidth[1] = 2;
431
        menuMinimumID[1] = 0;
432
        menuMaximumID[1] = global.flag[64 storage_size] - 1;
433
        menuVEdgeBehavior[1] = 1;
434
        menuHEdgeBehavior[1] = 2;
435
        menuPageSize[1] = 12;
436
        menuScrollAdd[1] = menuPageSize[1];
437
        menuX[1] = xx + 140;
438
        if (jp)
439
            menuX[1] = xx + 110;
440
        menuY[1] = yy + 290;
441
        menuBoxDraw[1] = 1;
442
        menuBoxDrawX1[1] = 40;
443
        menuBoxDrawY1[1] = 275;
444
        menuBoxDrawX2[1] = 600;
445
        menuBoxDrawY2[1] = 430;
446
        menuSpacingX[1] = 220;
447
        if (global.lang == "ja")
448
            menuSpacingX[1] = xx + 240;
449
        menuSpacingY[1] = 20;
450
        if (jp)
451
        {
452
            menuTextScaleType[0] = 1;
453
            menuTextScaleType[1] = 1;
454
            menuTextXScale[0] = 1;
455
            menuTextYScale[0] = 1;
456
            menuTextXScale[1] = 1;
457
            menuTextYScale[1] = 1;
458
            menuTextFont[0] = 
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("dotumche");
459
            menuTextFont[1] = 
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("dotumche");
460
            menuTextXScale[0] = 1;
461
            menuTextYScale[0] = 1;
462
            menuTextXScale[1] = 1;
463
            menuTextYScale[1] = 1;
464
            menuTextFont[0] = 18;
465
            menuTextFont[1] = 18;
466
            menuTextScaleType[1] = 1;
467
            menuX[1] = xx + 160;
468
            menuSpacingX[1] = 180;
469
        }
470
        else
471
        {
472
            menuTextScaleType[0] = 1;
473
            menuTextScaleType[1] = 1;
474
            menuTextXScale[0] = 1;
475
            menuTextYScale[0] = 1;
476
            menuTextXScale[1] = 1;
477
            menuTextYScale[1] = 1;
478
            menuTextFont[0] = 
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("dotumche");
479
            menuTextFont[1] = 
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("dotumche");
480
        }
481
    }
482
    if (type == 5)
483
    {
484
        menuMax = 1;
485
        menuHeight[0] = 6;
486
        menuWidth[0] = 1;
487
        menuMinimumID[0] = 0;
488
        menuMaximumID[0] = 0;
489
        menuVEdgeBehavior[0] = 1;
490
        menuHEdgeBehavior[0] = 2;
491
        menuPageSize[0] = 6;
492
        menuScrollAdd[0] = 6;
493
        songCount = 0;
494
        songPlaying = " ";
495
        songPlayingName = " ";
496
        chosenSongName = " ";
497
        tickerTimer = 0;
498
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("castletown.ogg", stringsetloc(
My Castle
"My Castle", "obj_fusionmenu_slash_Step_0_gml_568_0"
));
499
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("cyber.ogg", stringsetloc(
A CYBER'S WORLD?
"A CYBER'S WORLD?", "obj_fusionmenu_slash_Step_0_gml_569_0"
));
500
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("cyberhouse.ogg", stringsetloc(
Mini Studio
"Mini Studio", "obj_fusionmenu_slash_Step_0_gml_570_0"
));
501
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("cyber_shop.ogg", stringsetloc(
Sound Studio
"Sound Studio", "obj_fusionmenu_slash_Step_0_gml_571_0"
));
502
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("cybershop_christmas.ogg", stringsetloc(
Holiday Studio
"Holiday Studio", "obj_fusionmenu_slash_Step_0_gml_572_0"
));
503
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("cybercity.ogg", stringsetloc(
Welcome To The City
"Welcome To The City", "obj_fusionmenu_slash_Step_0_gml_573_0"
));
504
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("acid_tunnel.ogg", stringsetloc(
Acid Tunnel of Love
"Acid Tunnel of Love", "obj_fusionmenu_slash_Step_0_gml_574_0"
));
505
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("battle.ogg", stringsetloc(
Rude Buster
"Rude Buster", "obj_fusionmenu_slash_Step_0_gml_575_0"
));
506
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("berdly_chase.ogg", stringsetloc(
Smart Race
"Smart Race", "obj_fusionmenu_slash_Step_0_gml_576_0"
));
507
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("coolbeat.ogg", stringsetloc(
Cool Beat
"Cool Beat", "obj_fusionmenu_slash_Step_0_gml_577_0"
));
508
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("hip_shop.ogg", stringsetloc(
Hip Shop
"Hip Shop", "obj_fusionmenu_slash_Step_0_gml_578_0"
));
509
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("lancer.ogg", stringsetloc(
I'm The Bad Guy!
"I'm The Bad Guy!", "obj_fusionmenu_slash_Step_0_gml_579_0"
));
510
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("mansion.ogg", stringsetloc(
Pandora Palace
"Pandora Palace", "obj_fusionmenu_slash_Step_0_gml_580_0"
));
511
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("queen.ogg", stringsetloc(
Queen
"Queen", "obj_fusionmenu_slash_Step_0_gml_581_0"
));
512
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("queen_car_radio.ogg", stringsetloc(
Cool Mixtape
"Cool Mixtape", "obj_fusionmenu_slash_Step_0_gml_582_0"
));
513
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("ruruskaado.ogg", stringsetloc(
Rouxls Kaard
"Rouxls Kaard", "obj_fusionmenu_slash_Step_0_gml_583_0"
));
514
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("rouxls_battle.ogg", stringsetloc(
It's Pronounced "Rules"
"It's Pronounced \"Rules\"", "obj_fusionmenu_slash_Step_0_gml_584_0"
));
515
        
scr_musicmenu_songadd
scr_musicmenu_songadd

function
scr_musicmenu_songadd(arg0, arg1)
{ songOgg[songCount] = arg0; songName[songCount] = string(songCount + 1) + " - " + arg1; songCount++; }
("shop1.ogg", stringsetloc(
Lantern
"Lantern", "obj_fusionmenu_slash_Step_0_gml_585_0"
));
516
        menuMaximumID[0] = songCount - 1;
517
        menuX[0] = xx + 40;
518
        menuY[0] = yy + 260;
519
        menuBoxDraw[0] = 1;
520
        menuBoxDrawX1[0] = 10;
521
        menuBoxDrawY1[0] = 250;
522
        menuBoxDrawX2[0] = 630;
523
        menuBoxDrawY2[0] = 470;
524
        menuSpacingX[0] = 0;
525
        menuSpacingY[0] = 34;
526
        menuTextXScale[0] = 320;
527
        menuHeaderTextAmount[0] = 0;
528
        wrap = 0;
529
        vwrap = 0;
530
        for (j = 0; j < songCount; j++)
531
        {
532
            optionID[0][j] = songOgg[j];
533
            optionText[0][j] = songName[j];
534
            optionSelectable[0][j] = 1;
535
            optionEffect[0][j] = 1;
536
        }
537
    }
538
    if (customxy == 0)
539
        
scr_custommenu_optionxy
scr_custommenu_optionxy

function
scr_custommenu_optionxy()
{ wrap = 0; vwrap = 0; for (_n = 0; _n < menuMax; _n++) { for (j = 0; j <= menuMaximumID[_n]; j++) { optionX[_n][j] = menuX[_n] + (wrap * menuSpacingX[_n]); optionY[_n][j] = menuY[_n] + (vwrap * menuSpacingY[_n]); wrap++; if (wrap >= menuWidth[_n]) { wrap = 0; vwrap++; } } } }
();
540
    heartX = menuX[0];
541
    heartY = menuY[0];
542
    init = 1;
543
}
544
event_inherited();
545
if (type == 1)
546
{
547
    if (menu == 1 && menuCoord[menu] == 0 && confirm_custom == 1)
548
    {
549
        
scr_itemremove_anytype
scr_itemremove_anytype

function
scr_itemremove_anytype(arg0, arg1)
{ if (arg1 == "item")
scr_itemremove(arg0);
if (arg1 == "weapon")
scr_weaponremove(arg0);
if (arg1 == "armor")
scr_armorremove(arg0);
if (arg1 == "key")
scr_keyitemremove(arg0);
}
(fusionIngredient1[menuCoord[0]], fusionIngredientType1[menuCoord[0]]);
550
        
scr_itemremove_anytype
scr_itemremove_anytype

function
scr_itemremove_anytype(arg0, arg1)
{ if (arg1 == "item")
scr_itemremove(arg0);
if (arg1 == "weapon")
scr_weaponremove(arg0);
if (arg1 == "armor")
scr_armorremove(arg0);
if (arg1 == "key")
scr_keyitemremove(arg0);
}
(fusionIngredient2[menuCoord[0]], fusionIngredientType2[menuCoord[0]]);
551
        
scr_itemget_anytype
scr_itemget_anytype

function
scr_itemget_anytype(arg0, arg1)
{ noroom = 0; if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money") global.gold += arg0; }
(fusionResult[menuCoord[0]], fusionResultType[menuCoord[0]]);
552
        snd_play(snd_select);
553
        if (instance_exists(obj_npc_hammerguy))
554
        {
555
            obj_npc_hammerguy.con = 70;
556
            obj_npc_hammerguy.fusionResultName = fusionResultName[menuCoord[0]];
557
            obj_npc_hammerguy.fusionResultType = fusionResultType[menuCoord[0]];
558
            if (fusionIngredientType1[menuCoord[0]] == "armor")
559
                obj_npc_hammerguy.item1 = 0;
560
            else if (fusionIngredientType1[menuCoord[0]] == "weapon")
561
                obj_npc_hammerguy.item1 = 1;
562
            else
563
                obj_npc_hammerguy.item1 = 2;
564
            if (fusionIngredientType2[menuCoord[0]] == "armor")
565
                obj_npc_hammerguy.item2 = 0;
566
            else if (fusionIngredientType2[menuCoord[0]] == "weapon")
567
                obj_npc_hammerguy.item2 = 1;
568
            else
569
                obj_npc_hammerguy.item2 = 2;
570
            if (fusionResultType[menuCoord[0]] == "armor")
571
                obj_npc_hammerguy.item3 = 0;
572
            else if (fusionResultType[menuCoord[0]] == "weapon")
573
                obj_npc_hammerguy.item3 = 1;
574
            else
575
                obj_npc_hammerguy.item3 = 2;
576
        }
577
        instance_destroy();
578
    }
579
}
580
if (type == 2)
581
{
582
    if (menu == 1 && menuCoord[menu] == 0 && confirm_custom == 1)
583
    {
584
        global.ambush = dojoEncounterAmbush[menuCoord[0]];
585
        global.encounterno = dojoEncounter[menuCoord[0]];
586
        global.flag[35 gameover_mode] = 1;
587
        global.flag[37 dojo_active] = 1;
588
        global.flag[38 no_battle_end_msg] = 1;
589
        global.flag[61 disable_recruiting] = 1;
590
        
scr_battle
scr_battle

function
scr_battle(arg0, arg1, arg2, arg3, arg4)
{ global.specialbattle = arg1; global.encounterno = arg0; if (global.flag[9 battle_music] != 2) { global.flag[9 battle_music] = 1; if (global.chapter == 4 && room != room_dw_castle_dojo) global.batmusic[0] = snd_init("ch4_battle.ogg"); else global.batmusic[0] = snd_init("battle.ogg"); } instance_create(0, 0, obj_battleback); instance_create(0, 0, obj_encounterbasic); __enemymarker[0] = arg2; __enemymarker[1] = arg3; __enemymarker[2] = arg4; for (__ien = 0; __ien < 3; __ien++) { if (global.monstertype[__ien] != 0(None)) { if (!i_ex(__enemymarker[__ien])) { __enemymarker[__ien] =
scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien; } __enemymarker[__ien].__ien = __ien; with (__enemymarker[__ien]) {
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom); __doom.target = id; __doom.alarm[0] = 25; } } } }
(global.encounterno, 3, 0, 0, 0);
591
        with (obj_npc_dojo)
592
            con = 10;
593
        if (instance_exists(obj_npc_dojo))
594
        {
595
            obj_npc_dojo.dojoPrizeValue = dojoPrizeValue[menuCoord[0]];
596
            obj_npc_dojo.dojoPrizeType = dojoPrizeType[menuCoord[0]];
597
            obj_npc_dojo.dojoFlag = dojoFlag[menuCoord[0]];
598
            obj_npc_dojo.dojoPrizeName = dojoPrizeName[menuCoord[0]];
599
        }
600
        instance_destroy();
601
    }
602
}
603
if (type == 3)
604
{
605
    if (confirm_moved == 1 && menu == 1)
606
    {
607
        menuCoord[1] = menuCoord[0];
608
        menuScrollCurrent[1] = menuCoord[1];
609
    }
610
    if (cancel_press == 1 && menu == 0 && i_ex(id))
611
    {
612
        menuCoord[0] = menuCoord[1];
613
        menuScrollCurrent[0] = floor(menuCoord[0] / menuPageSize[0]) * menuPageSize[0];
614
    }
615
    if (cancel_press == 1 && menu == 1)
616
    {
617
        with (obj_npc_cafe)
618
        {
619
            mode = 0;
620
            fsiner = 0;
621
            _sprite = remsprite;
622
        }
623
    }
624
    if (menu == 2)
625
    {
626
        with (obj_npc_cafe)
627
        {
628
            mode = 0;
629
            _sprite = remsprite;
630
        }
631
        cafenpc[menuCoord[2]].mode = 1;
632
        cafenpc[menuCoord[2]]._sprite = recruitSprite[menuCoord[1]];
633
        if (confirm_custom == 1)
634
        {
635
            global.flag[800 + menuCoord[2]] = recruitID[menuCoord[1]];
636
            with (obj_npc_cafe)
637
                event_user(6);
638
            snd_play(snd_select);
639
            with (obj_npc_cafe)
640
            {
641
                mode = 0;
642
                fsiner = 0;
643
                _sprite = remsprite;
644
            }
645
            
scr_recruit_info_all
scr_recruit_info_all

function
scr_recruit_info_all()
{ if (argument_count < 1) allrecruits =
scr_recruits_to_array();
if (argument_count == 1) allrecruits =
scr_recruits_to_array(argument[0]);
if (argument_count == 1 && argument[0] == "total") allrecruits =
scr_recruits_to_array();
if (argument_count >= 2) allrecruits =
scr_recruits_to_array(argument[0], argument[1]);
if (argument_count >= 1) { if (argument[0] == "half") allrecruits = halfrecruits; if (argument[0] == "either") allrecruits = eitherrecruits; } for (__i = 0; __i < allrecruits; __i++) {
scr_recruit_info(recruit[__i]);
recruitID[__i] = recruit[__i]; recruitSprite[__i] = _sprite; recruitSpriteX[__i] = _spritex; recruitSpriteY[__i] = _spritey; recruitImageSpeed[__i] = _imagespeed; recruitName[__i] = _name; recruitDesc[__i] = _desc; recruitLike[__i] = _like; recruitDislike[__i] = _dislike; recruitChapter[__i] = _chapter; recruitLevel[__i] = _level; recruitAttack[__i] = _attack; recruitDefense[__i] = _defense; recruitElement[__i] = _element; recruitDialogueBoxes[__i] = _dialogueboxes; recruitCountMax[__i] = _recruitcount; recruitCountCurrent[__i] = _recruitcountcurrent; recruitFullyRecruited[__i] = 0; if (global.flag[600 + recruitID[__i]] == 1) recruitFullyRecruited[__i] = 1; if (recruitFullyRecruited[__i] == 0) { recruitDesc[__i] = stringsetloc(
Not yet fully recruited
"Not yet fully recruited", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_46_0"
);
recruitLike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_47_0"
);
recruitDislike[__i] = stringsetloc(
?
"?", "scr_recruit_info_all_slash_scr_recruit_info_all_gml_48_0"
);
} recruitPlaceable[__i] = _placeable; } }
("total");
646
            for (j = 0; j <= menuMaximumID[1]; j++)
647
            {
648
                if (recruitPlaceable[j] == 2)
649
                {
650
                    var _is_seated = false;
651
                    var _seatcheck = recruitID[j];
652
                    for (var i = 0; i < instance_number(obj_npc_cafe); i++)
653
                    {
654
                        var patron = instance_find(obj_npc_cafe, i);
655
                        if (patron.myid == _seatcheck)
656
                        {
657
                            _is_seated = true;
658
                            break;
659
                        }
660
                    }
661
                    if (_is_seated)
662
                    {
663
                        recruitPlaceable[j] = 0;
664
                        optionSelectable[1][j] = 0;
665
                    }
666
                    else
667
                    {
668
                        recruitPlaceable[j] = 1;
669
                        optionSelectable[1][j] = 1;
670
                    }
671
                }
672
            }
673
            menu = 1;
674
        }
675
    }
676
}
677
if (type == 4)
678
{
679
    if (menu == 1)
680
    {
681
        if (confirm_custom == 1)
682
        {
683
            var swapItemId = menuitemid[menuCoord[0]];
684
            var swapItemDesc = menuitemdesc[menuCoord[0]];
685
            var swapItemName = menuitemname[menuCoord[0]];
686
            var swapPocketId = pocketitemid[menuCoord[1]];
687
            var swapPocketDesc = pocketitemdesc[menuCoord[1]];
688
            var swapPocketName = pocketitemname[menuCoord[1]];
689
            if (swapPocketId > 0 && swapItemId > 0)
690
            {
691
                global.item[menuCoord[0]] = swapPocketId;
692
                global.pocketitem[menuCoord[1]] = swapItemId;
693
                optionID[0][menuCoord[0]] = swapPocketId;
694
                optionText[0][menuCoord[0]] = swapPocketName;
695
                optionTopComment[0][menuCoord[0]] = swapPocketDesc;
696
                optionID[1][menuCoord[1]] = swapItemId;
697
                optionText[1][menuCoord[1]] = swapItemName;
698
                optionTopComment[1][menuCoord[1]] = swapItemDesc;
699
                menuitemid[menuCoord[0]] = swapPocketId;
700
                menuitemdesc[menuCoord[0]] = swapPocketDesc;
701
                menuitemname[menuCoord[0]] = swapPocketName;
702
                pocketitemid[menuCoord[1]] = swapItemId;
703
                pocketitemdesc[menuCoord[1]] = swapItemDesc;
704
                pocketitemname[menuCoord[1]] = swapItemName;
705
            }
706
            else if (swapPocketId <= 0 && swapItemId > 0)
707
            {
708
                
scr_itemshift
scr_itemshift

function
scr_itemshift(arg0, arg1)
{ global.item[12] = arg1; for (i = arg0; i < 12; i += 1) global.item[i] = global.item[i + 1];
scr_iteminfo_all();
scr_itemname();
}
(menuCoord[0], 0);
709
                global.pocketitem[menuCoord[1]] = swapItemId;
710
                
scr_custommenu_item_info_refresh
scr_custommenu_item_info_refresh

function
scr_custommenu_item_info_refresh()
{
scr_iteminfo_all();
scr_itemdesc();
for (i = 0; i < 12; i++) { menuitemid[i] = global.item[i]; menuitemdesc[i] = itemdesc[i]; menuitemname[i] = global.itemnameb[i]; if (menuitemname[i] == " ") menuitemname[i] = "---"; } for (i = 0; i < global.flag[64 storage_size]; i += 1) { pocketitemid[i] = global.pocketitem[i];
scr_iteminfo(pocketitemid[i]);
pocketitemname[i] = itemnameb; pocketitemdesc[i] =
scr_itemdesc_single(global.pocketitem[i]);
if (pocketitemname[i] == " ") pocketitemname[i] = "---"; } menuMaximumID[0] = 11; for (var _j = 0; _j <= menuMaximumID[0]; _j++) { optionID[0][_j] = menuitemid[_j]; optionText[0][_j] = menuitemname[_j]; optionTopComment[0][_j] = menuitemdesc[_j]; optionSelectable[0][_j] = 1; } menuMaximumID[1] = global.flag[64 storage_size] - 1; for (var _j = 0; _j <= menuMaximumID[1]; _j++) { optionID[1][_j] = pocketitemid[_j]; optionText[1][_j] = pocketitemname[_j]; optionSelectable[1][_j] = 1; optionEffect[1][_j] = 1; optionTopComment[1][_j] = pocketitemdesc[_j]; } }
();
711
            }
712
            else if (swapPocketId > 0 && swapItemId <= 0)
713
            {
714
                
scr_itemget
scr_itemget

function
scr_itemget(arg0)
{ var __i = 0; var loop = 1; noroom = 0; _pocketed = 0; _noroominventory = 0; global.item[12] = 999; while (loop == 1) { if (global.item[__i] == 0) { global.item[__i] = arg0; break; } if (__i == 12) { _noroominventory = 1; noroom = 1; for (var __j = 0; __j < global.flag[64 storage_size]; __j++) { if (global.pocketitem[__j] == 0) { debug_message("Placed in pocket :" + string(__j)); global.pocketitem[__j] = arg0; _pocketed = 1; noroom = 0; break; } } break; } __i += 1; } script_execute(scr_iteminfo_all); debug_message("noroom=" + string(noroom)); debug_message("_pocketed=" + string(_pocketed)); debug_message("_noroominventory=" + string(_noroominventory)); }
(swapPocketId);
715
                global.pocketitem[menuCoord[1]] = 0;
716
                
scr_custommenu_item_info_refresh
scr_custommenu_item_info_refresh

function
scr_custommenu_item_info_refresh()
{
scr_iteminfo_all();
scr_itemdesc();
for (i = 0; i < 12; i++) { menuitemid[i] = global.item[i]; menuitemdesc[i] = itemdesc[i]; menuitemname[i] = global.itemnameb[i]; if (menuitemname[i] == " ") menuitemname[i] = "---"; } for (i = 0; i < global.flag[64 storage_size]; i += 1) { pocketitemid[i] = global.pocketitem[i];
scr_iteminfo(pocketitemid[i]);
pocketitemname[i] = itemnameb; pocketitemdesc[i] =
scr_itemdesc_single(global.pocketitem[i]);
if (pocketitemname[i] == " ") pocketitemname[i] = "---"; } menuMaximumID[0] = 11; for (var _j = 0; _j <= menuMaximumID[0]; _j++) { optionID[0][_j] = menuitemid[_j]; optionText[0][_j] = menuitemname[_j]; optionTopComment[0][_j] = menuitemdesc[_j]; optionSelectable[0][_j] = 1; } menuMaximumID[1] = global.flag[64 storage_size] - 1; for (var _j = 0; _j <= menuMaximumID[1]; _j++) { optionID[1][_j] = pocketitemid[_j]; optionText[1][_j] = pocketitemname[_j]; optionSelectable[1][_j] = 1; optionEffect[1][_j] = 1; optionTopComment[1][_j] = pocketitemdesc[_j]; } }
();
717
            }
718
            snd_play(snd_select);
719
            optionSelected[0][menuCoord[0]] = 0;
720
            optionSelected[1][menuCoord[1]] = 0;
721
            menu = 0;
722
        }
723
    }
724
}
725
if (type == 5)
726
{
727
    if (confirm_custom == 1)
728
    {
729
        tickerTimer = 0;
730
        snd_free_all();
731
        mus_initloop(songOgg[menuCoord[0]]);
732
        songPlaying = songOgg[menuCoord[0]];
733
        songPlayingName = songName[menuCoord[0]];
734
        chosenSongName = songPlayingName;
735
        if (subtype == 1)
736
            global.tempflag[11] = songPlaying;
737
    }
738
    for (j = 0; j < songCount; j++)
739
    {
740
        if (songPlaying == songOgg[j])
741
            optionSelected[0][j] = 1;
742
        else
743
            optionSelected[0][j] = 0;
744
    }
745
}
746
747
enum e__VW
748
{
749
    XView,
750
    YView,
751
    WView,
752
    HView,
753
    Angle,
754
    HBorder,
755
    VBorder,
756
    HSpeed,
757
    VSpeed,
758
    Object,
759
    Visible,
760
    XPort,
761
    YPort,
762
    WPort,
763
    HPort,
764
    Camera,
765
    SurfaceID
766
}