|
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_queuescr_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_queuescr_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_queuescr_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_queuescr_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_queuescr_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_queuescr_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_fontscr_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_fontscr_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] = 100;
|
|
104
|
dojoEncounter[1] = 72;
|
|
105
|
dojoEncounter[2] = 71;
|
|
106
|
dojoEncounter[3] = 0;
|
|
107
|
dojoEncounter[4] = 0;
|
|
108
|
dojoName[0] = stringsetloc(Jigsaw Joe"Jigsaw Joe", "obj_fusionmenu_slash_Step_0_gml_140_0_b" );
|
|
109
|
dojoName[1] = stringsetloc(Graze Challenge 1"Graze Challenge 1", "obj_fusionmenu_slash_Step_0_gml_139_0" );
|
|
110
|
dojoName[2] = stringsetloc(Clover Rematch"Clover Rematch", "obj_fusionmenu_slash_Step_0_gml_140_0" );
|
|
111
|
dojoName[3] = stringsetloc(-------------"-------------", "obj_fusionmenu_slash_Step_0_gml_141_0" );
|
|
112
|
dojoName[4] = stringsetloc(-------------"-------------", "obj_fusionmenu_slash_Step_0_gml_142_0" );
|
|
113
|
dojoTopComment[0] = stringsetloc(Learn how to spare like a champ."Learn how to spare like a champ.", "obj_fusionmenu_slash_Step_0_gml_146_0_b" );
|
|
114
|
dojoTopComment[1] = stringsetloc(Get 100Close Message TP without getting hit!#You can do it, boss!"Get 100% TP without getting hit!#You can do it, boss!", "obj_fusionmenu_slash_Step_0_gml_144_0" );
|
|
115
|
dojoTopComment[2] = stringsetloc(It's not Clover's birthday anymore!#She won't go easy on you now!"It's not Clover's birthday anymore!#She won't go easy on you now!", "obj_fusionmenu_slash_Step_0_gml_145_0" );
|
|
116
|
dojoTopComment[3] = stringsetloc( " ", "obj_fusionmenu_slash_Step_0_gml_146_0" );
|
|
117
|
dojoTopComment[4] = stringsetloc( " ", "obj_fusionmenu_slash_Step_0_gml_147_0" );
|
|
118
|
dojoPrizeName[0] = stringsetloc(Joe's Life Savings"Joe's Life Savings", "obj_fusionmenu_slash_Step_0_gml_153_0_b" );
|
|
119
|
dojoPrizeName[1] = stringsetloc($100"$100", "obj_fusionmenu_slash_Step_0_gml_150_0" );
|
|
120
|
dojoPrizeName[2] = stringsetloc(ClubsSandwich"ClubsSandwich", "obj_fusionmenu_slash_Step_0_gml_151_0" );
|
|
121
|
dojoPrizeName[3] = stringsetloc(---"---", "obj_fusionmenu_slash_Step_0_gml_152_0" );
|
|
122
|
dojoPrizeName[4] = stringsetloc(---"---", "obj_fusionmenu_slash_Step_0_gml_153_0" );
|
|
123
|
dojoPrizeValue[0] = 1;
|
|
124
|
dojoPrizeValue[1] = 100;
|
|
125
|
dojoPrizeValue[2] = 11;
|
|
126
|
dojoPrizeValue[3] = 250;
|
|
127
|
dojoPrizeValue[4] = 28;
|
|
128
|
dojoPrizeType[0] = "money";
|
|
129
|
dojoPrizeType[1] = "money";
|
|
130
|
dojoPrizeType[2] = "item";
|
|
131
|
dojoPrizeType[3] = "money";
|
|
132
|
dojoPrizeType[4] = "item";
|
|
133
|
dojoFlag[0] = 814;
|
|
134
|
dojoFlag[1] = 810;
|
|
135
|
dojoFlag[2] = 811;
|
|
136
|
dojoFlag[3] = 812;
|
|
137
|
dojoFlag[4] = 813;
|
|
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[814 beat_joe] != 0)
|
|
163
|
dojoPrizeName[0] = stringClaimed;
|
|
164
|
if (global.flag[810 beat_grazing] != 0)
|
|
165
|
dojoPrizeName[1] = stringClaimed;
|
|
166
|
if (global.flag[811 beat_dojo_clover] != 0)
|
|
167
|
dojoPrizeName[2] = stringClaimed;
|
|
168
|
if (global.flag[812 beat_tm_says] != 0)
|
|
169
|
dojoPrizeName[3] = stringClaimed;
|
|
170
|
if (global.flag[813 beat_allstars] != 0)
|
|
171
|
dojoPrizeName[4] = stringClaimed;
|
|
172
|
menuMax = 2;
|
|
173
|
menuHeight[0] = 5;
|
|
174
|
menuWidth[0] = 1;
|
|
175
|
menuMinimumID[0] = 0;
|
|
176
|
menuMaximumID[0] = 4;
|
|
177
|
menuVEdgeBehavior[0] = 1;
|
|
178
|
menuHEdgeBehavior[0] = 0;
|
|
179
|
menuPageSize[0] = 5;
|
|
180
|
menuScrollAdd[0] = menuPageSize[0];
|
|
181
|
menuX[0] = (xx + 129) - 15 - 15;
|
|
182
|
menuY[0] = (yy + 220) - 5;
|
|
183
|
menuBoxDraw[0] = 1;
|
|
184
|
menuBoxDrawX1[0] = 60;
|
|
185
|
menuBoxDrawY1[0] = 158;
|
|
186
|
menuBoxDrawX2[0] = 580;
|
|
187
|
menuBoxDrawY2[0] = 434;
|
|
188
|
menuSpacingX[0] = 0;
|
|
189
|
menuSpacingY[0] = 44;
|
|
190
|
menuTextXScale[0] = 150;
|
|
191
|
menuHeaderTextAmount[0] = 2;
|
|
192
|
menuHeaderText[0][0] = stringsetloc(Challenge"Challenge", "obj_fusionmenu_slash_Step_0_gml_215_0" );
|
|
193
|
menuHeaderX[0][0] = (xx + 120 + 30) - 21;
|
|
194
|
menuHeaderY[0][0] = ((yy + 200) - 5 - 10 - 10 - 10) + 2;
|
|
195
|
menuHeaderHeight[0][0] = 1;
|
|
196
|
menuHeaderColor[0][0] = c_gray;
|
|
197
|
menuHeaderText[0][1] = stringsetloc(Prize"Prize", "obj_fusionmenu_slash_Step_0_gml_220_0" );
|
|
198
|
menuHeaderX[0][1] = (xx + 320 + 30) - 21;
|
|
199
|
menuHeaderY[0][1] = ((yy + 200) - 5 - 10 - 10 - 10) + 2;
|
|
200
|
menuHeaderHeight[0][1] = 1;
|
|
201
|
menuHeaderColor[0][1] = c_gray;
|
|
202
|
wrap = 0;
|
|
203
|
vwrap = 0;
|
|
204
|
for (j = 0; j <= menuMaximumID[0]; j++)
|
|
205
|
{
|
|
206
|
optionID[0][j] = 6;
|
|
207
|
optionText[0][j] = dojoName[j];
|
|
208
|
optionSelectable[0][j] = 0;
|
|
209
|
if (dojoEncounter[j] > 0)
|
|
210
|
optionSelectable[0][j] = 1;
|
|
211
|
optionCommentA[0][j] = dojoPrizeName[j];
|
|
212
|
optionCommentAWidth[0][j] = 200;
|
|
213
|
optionCommentAXOffset[0][j] = 200;
|
|
214
|
optionCommentAYOffset[0][j] = 0;
|
|
215
|
optionCommentAColor[0][j] = c_white;
|
|
216
|
if (global.flag[dojoFlag[j]] >= 1)
|
|
217
|
{
|
|
218
|
optionCommentAColor[0][j] = c_yellow;
|
|
219
|
optionCommentA[0][j] += stringsetloc(!"!", "obj_fusionmenu_slash_Step_0_gml_244_0" );
|
|
220
|
}
|
|
221
|
optionTopComment[0][j] = dojoTopComment[j];
|
|
222
|
}
|
|
223
|
menuHeight[1] = 1;
|
|
224
|
menuWidth[1] = 2;
|
|
225
|
menuMinimumID[1] = 0;
|
|
226
|
menuMaximumID[1] = 1;
|
|
227
|
menuVEdgeBehavior[1] = 0;
|
|
228
|
menuHEdgeBehavior[1] = 1;
|
|
229
|
menuPageSize[1] = 2;
|
|
230
|
menuX[1] = xx + 350;
|
|
231
|
menuY[1] = yy + 400;
|
|
232
|
menuBoxDraw[1] = 1;
|
|
233
|
menuBoxDrawX1[1] = -10;
|
|
234
|
menuBoxDrawY1[1] = 375;
|
|
235
|
menuBoxDrawX2[1] = 650;
|
|
236
|
menuBoxDrawY2[1] = 490;
|
|
237
|
menuSpacingX[1] = 100;
|
|
238
|
menuSpacingY[1] = 0;
|
|
239
|
menuHeaderTextAmount[1] = 1;
|
|
240
|
menuHeaderText[1][0] = stringsetloc(Challenge?"Challenge?", "obj_fusionmenu_slash_Step_0_gml_275_0" );
|
|
241
|
menuHeaderX[1][0] = xx + 60;
|
|
242
|
menuHeaderY[1][0] = yy + 400;
|
|
243
|
optionID[1][0] = 1;
|
|
244
|
optionText[1][0] = stringsetloc(Yes"Yes", "obj_fusionmenu_slash_Step_0_gml_280_0" );
|
|
245
|
optionSelectable[1][0] = 1;
|
|
246
|
optionEffect[1][0] = 1;
|
|
247
|
optionID[1][1] = 1;
|
|
248
|
optionText[1][1] = stringsetloc(No"No", "obj_fusionmenu_slash_Step_0_gml_285_0" );
|
|
249
|
optionSelectable[1][1] = 1;
|
|
250
|
optionEffect[1][1] = 2;
|
|
251
|
}
|
|
252
|
if (type == 3)
|
|
253
|
{
|
|
254
|
if (subtype == 2 || subtype == 1)
|
|
255
|
{
|
|
256
|
if (subtype == 1)
|
|
257
|
scr_recruit_info_allscr_recruit_info_all
function scr_recruit_info_all()
{
if (argument_count <= 1)
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
|
if (subtype == 2)
|
|
259
|
scr_recruit_info_allscr_recruit_info_all
function scr_recruit_info_all()
{
if (argument_count <= 1)
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", 2);
|
|
260
|
alternateMenu = 1;
|
|
261
|
}
|
|
262
|
else
|
|
263
|
{
|
|
264
|
alternateMenu = 0;
|
|
265
|
scr_recruit_info_allscr_recruit_info_all
function scr_recruit_info_all()
{
if (argument_count <= 1)
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");
|
|
266
|
}
|
|
267
|
menuMax = 3;
|
|
268
|
menuWidth[0] = 1;
|
|
269
|
menuMinimumID[0] = 0;
|
|
270
|
menuMaximumID[0] = allrecruits - 1;
|
|
271
|
menuVEdgeBehavior[0] = 1;
|
|
272
|
menuHEdgeBehavior[0] = 2;
|
|
273
|
menuHeight[0] = min(menuMaximumID[0] + 1, 9);
|
|
274
|
menuPageSize[0] = menuHeight[0];
|
|
275
|
if (menuMaximumID[0] < menuPageSize[0])
|
|
276
|
menuHEdgeBehavior[0] = 0;
|
|
277
|
menuScrollAdd[0] = menuPageSize[0];
|
|
278
|
menuNext[0] = 1;
|
|
279
|
menuX[0] = xx + 50;
|
|
280
|
menuY[0] = yy + 90;
|
|
281
|
menuBoxDraw[0] = 1;
|
|
282
|
menuBoxDrawX1[0] = 30;
|
|
283
|
menuBoxDrawY1[0] = 10;
|
|
284
|
menuBoxDrawX2[0] = 300;
|
|
285
|
if (alternateMenu == 1)
|
|
286
|
menuBoxDrawX2[0] = 620;
|
|
287
|
menuBoxDrawY2[0] = 440;
|
|
288
|
menuSpacingX[0] = 0;
|
|
289
|
menuSpacingY[0] = 35;
|
|
290
|
menuTextXScale[0] = 180;
|
|
291
|
menuTextYScale[0] = 1;
|
|
292
|
menuTextOffsetY[0] = 2;
|
|
293
|
menuDisplayCondition[0] = 1;
|
|
294
|
menuWidth[1] = 1;
|
|
295
|
menuHeight[1] = 1;
|
|
296
|
menuBoxDraw[1] = 1;
|
|
297
|
menuBoxDrawX1[1] = 30;
|
|
298
|
menuBoxDrawY1[1] = 10;
|
|
299
|
menuBoxDrawX2[1] = 610;
|
|
300
|
menuBoxDrawY2[1] = 450;
|
|
301
|
menuX[1] = xx + 50;
|
|
302
|
menuY[1] = yy + 400;
|
|
303
|
menuSpacingY[1] = 0;
|
|
304
|
menuMaximumID[1] = menuMaximumID[0];
|
|
305
|
menuVEdgeBehavior[1] = 0;
|
|
306
|
menuHEdgeBehavior[1] = 2;
|
|
307
|
menuPageSize[1] = 1;
|
|
308
|
menuScrollAdd[1] = menuPageSize[1];
|
|
309
|
menuDisplayCondition[1] = 1;
|
|
310
|
for (j = 0; j <= menuMaximumID[1]; j++)
|
|
311
|
{
|
|
312
|
optionText[0][j] = recruitName[j];
|
|
313
|
optionText[1][j] = " ";
|
|
314
|
optionSelectable[0][j] = 1;
|
|
315
|
optionSelectable[1][j] = recruitPlaceable[j];
|
|
316
|
if (alternateMenu)
|
|
317
|
{
|
|
318
|
optionSelectable[0][j] = 1;
|
|
319
|
optionSelectable[1][j] = 0;
|
|
320
|
if (recruitFullyRecruited[j] == 1)
|
|
321
|
{
|
|
322
|
optionCommentA[0][j] = stringsetloc(Recruited!"Recruited!", "obj_fusionmenu_slash_Step_0_gml_377_0" );
|
|
323
|
optionCommentAColor[0][j] = c_lime;
|
|
324
|
optionCommentAXOffset[0][j] = 195;
|
|
325
|
optionCommentAYOffset[0][j] = 0;
|
|
326
|
optionCommentAWidth[0][j] = squished;
|
|
327
|
}
|
|
328
|
else
|
|
329
|
{
|
|
330
|
optionCommentAColor[0][j] = c_ltgray;
|
|
331
|
optionCommentAXOffset[0][j] = 200;
|
|
332
|
optionCommentAYOffset[0][j] = 0;
|
|
333
|
optionCommentAWidth[0][j] = 1;
|
|
334
|
optionCommentA[0][j] = string(recruitCountCurrent[j]) + " / " + string(recruitCountMax[j]);
|
|
335
|
}
|
|
336
|
}
|
|
337
|
}
|
|
338
|
menuWidth[2] = 4;
|
|
339
|
menuHeight[2] = 1;
|
|
340
|
menuBoxDraw[2] = 0;
|
|
341
|
menuX[2] = xx + 50;
|
|
342
|
menuY[2] = yy + 300;
|
|
343
|
menuSpacingY[2] = 0;
|
|
344
|
menuMaximumID[2] = 3;
|
|
345
|
menuVEdgeBehavior[2] = 0;
|
|
346
|
menuHEdgeBehavior[2] = 1;
|
|
347
|
menuDisplayCondition[2] = 1;
|
|
348
|
customxy = 1;
|
|
349
|
scr_custommenu_optionxyscr_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++;
}
}
}
} ();
|
|
350
|
menuSpacingOverride[2] = 1;
|
|
351
|
_n = 2;
|
|
352
|
var _seatcheck = 0;
|
|
353
|
if (alternateMenu == 0)
|
|
354
|
{
|
|
355
|
for (j = 0; j < 4; j++)
|
|
356
|
{
|
|
357
|
_seatcheck = j;
|
|
358
|
with (obj_npc_cafe)
|
|
359
|
{
|
|
360
|
if (_seatcheck == seat)
|
|
361
|
obj_fusionmenu.cafenpc[_seatcheck] = id;
|
|
362
|
}
|
|
363
|
optionX[_n][j] = cafenpc[j].x + 40;
|
|
364
|
optionY[_n][j] = cafenpc[j].y + 35;
|
|
365
|
optionText[_n][j] = " ";
|
|
366
|
if (global.is_console || obj_gamecontroller.gamepad_active)
|
|
367
|
{
|
|
368
|
optionTopComment[_n][j] = stringsetloc( Place Return" Place Return", "obj_fusionmenu_slash_Step_0_gml_462_0" );
|
|
369
|
display_buttons = true;
|
|
370
|
}
|
|
371
|
else
|
|
372
|
{
|
|
373
|
optionTopComment[_n][j] = stringsetsubloc("~1: Place ~2: Return", scr_get_input_namescr_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_namescr_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");
|
|
374
|
}
|
|
375
|
optionSelectable[_n][j] = 1;
|
|
376
|
optionEffect[_n][j] = 1;
|
|
377
|
}
|
|
378
|
}
|
|
379
|
}
|
|
380
|
if (type == 4)
|
|
381
|
{
|
|
382
|
depth = -40000;
|
|
383
|
scr_custommenu_item_info_refreshscr_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];
}
} ();
|
|
384
|
wrap = 0;
|
|
385
|
vwrap = 0;
|
|
386
|
menuMax = 2;
|
|
387
|
menuSprite = spr_heartsmall;
|
|
388
|
menuHeight[0] = 6;
|
|
389
|
menuWidth[0] = 2;
|
|
390
|
menuMinimumID[0] = 0;
|
|
391
|
menuMaximumID[0] = 11;
|
|
392
|
menuVEdgeBehavior[0] = 1;
|
|
393
|
menuHEdgeBehavior[0] = 1;
|
|
394
|
menuPageSize[0] = 12;
|
|
395
|
menuScrollAdd[0] = menuPageSize[0];
|
|
396
|
menuX[0] = xx + 140;
|
|
397
|
if (jp)
|
|
398
|
menuX[0] = xx + 160;
|
|
399
|
menuY[0] = yy + 140;
|
|
400
|
menuBoxDraw[0] = 1;
|
|
401
|
menuBoxDrawX1[0] = 40;
|
|
402
|
menuBoxDrawY1[0] = 120;
|
|
403
|
menuBoxDrawX2[0] = 600;
|
|
404
|
menuBoxDrawY2[0] = 280;
|
|
405
|
menuSpacingX[0] = 220;
|
|
406
|
if (jp)
|
|
407
|
menuSpacingX[0] = 180;
|
|
408
|
menuSpacingY[0] = 20;
|
|
409
|
menuTextOffsetX[0] = 14;
|
|
410
|
menuTextOffsetY[0] = 4;
|
|
411
|
menuTextOffsetX[1] = 14;
|
|
412
|
menuTextOffsetY[1] = 4;
|
|
413
|
menuTextScaleType[0] = 1;
|
|
414
|
menuTextXScale[0] = 0.5;
|
|
415
|
menuTextScaleType[1] = 1;
|
|
416
|
menuTextYScale[1] = 0.5;
|
|
417
|
menuDisplayCondition[1] = 0;
|
|
418
|
menuHeight[1] = 6;
|
|
419
|
menuWidth[1] = 2;
|
|
420
|
menuMinimumID[1] = 0;
|
|
421
|
menuMaximumID[1] = global.flag[64 storage_size] - 1;
|
|
422
|
menuVEdgeBehavior[1] = 1;
|
|
423
|
menuHEdgeBehavior[1] = 2;
|
|
424
|
menuPageSize[1] = 12;
|
|
425
|
menuScrollAdd[1] = menuPageSize[1];
|
|
426
|
menuX[1] = xx + 140;
|
|
427
|
if (jp)
|
|
428
|
menuX[1] = xx + 110;
|
|
429
|
menuY[1] = yy + 290;
|
|
430
|
menuBoxDraw[1] = 1;
|
|
431
|
menuBoxDrawX1[1] = 40;
|
|
432
|
menuBoxDrawY1[1] = 275;
|
|
433
|
menuBoxDrawX2[1] = 600;
|
|
434
|
menuBoxDrawY2[1] = 430;
|
|
435
|
menuSpacingX[1] = 220;
|
|
436
|
if (global.lang == "ja")
|
|
437
|
menuSpacingX[1] = xx + 240;
|
|
438
|
menuSpacingY[1] = 20;
|
|
439
|
if (jp)
|
|
440
|
{
|
|
441
|
menuTextScaleType[0] = 1;
|
|
442
|
menuTextScaleType[1] = 1;
|
|
443
|
menuTextXScale[0] = 1;
|
|
444
|
menuTextYScale[0] = 1;
|
|
445
|
menuTextXScale[1] = 1;
|
|
446
|
menuTextYScale[1] = 1;
|
|
447
|
menuTextFont[0] = scr_84_get_fontscr_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");
|
|
448
|
menuTextFont[1] = scr_84_get_fontscr_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");
|
|
449
|
menuTextXScale[0] = 1;
|
|
450
|
menuTextYScale[0] = 1;
|
|
451
|
menuTextXScale[1] = 1;
|
|
452
|
menuTextYScale[1] = 1;
|
|
453
|
menuTextFont[0] = 12;
|
|
454
|
menuTextFont[1] = 12;
|
|
455
|
menuTextScaleType[1] = 1;
|
|
456
|
menuX[1] = xx + 160;
|
|
457
|
menuSpacingX[1] = 180;
|
|
458
|
}
|
|
459
|
else
|
|
460
|
{
|
|
461
|
menuTextScaleType[0] = 1;
|
|
462
|
menuTextScaleType[1] = 1;
|
|
463
|
menuTextXScale[0] = 1;
|
|
464
|
menuTextYScale[0] = 1;
|
|
465
|
menuTextXScale[1] = 1;
|
|
466
|
menuTextYScale[1] = 1;
|
|
467
|
menuTextFont[0] = scr_84_get_fontscr_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");
|
|
468
|
menuTextFont[1] = scr_84_get_fontscr_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");
|
|
469
|
}
|
|
470
|
}
|
|
471
|
if (type == 5)
|
|
472
|
{
|
|
473
|
menuMax = 1;
|
|
474
|
menuHeight[0] = 6;
|
|
475
|
menuWidth[0] = 1;
|
|
476
|
menuMinimumID[0] = 0;
|
|
477
|
menuMaximumID[0] = 0;
|
|
478
|
menuVEdgeBehavior[0] = 1;
|
|
479
|
menuHEdgeBehavior[0] = 2;
|
|
480
|
menuPageSize[0] = 6;
|
|
481
|
menuScrollAdd[0] = 6;
|
|
482
|
songCount = 0;
|
|
483
|
songPlaying = " ";
|
|
484
|
songPlayingName = " ";
|
|
485
|
chosenSongName = " ";
|
|
486
|
tickerTimer = 0;
|
|
487
|
scr_musicmenu_songaddscr_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" ));
|
|
488
|
scr_musicmenu_songaddscr_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" ));
|
|
489
|
scr_musicmenu_songaddscr_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" ));
|
|
490
|
scr_musicmenu_songaddscr_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" ));
|
|
491
|
scr_musicmenu_songaddscr_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" ));
|
|
492
|
scr_musicmenu_songaddscr_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" ));
|
|
493
|
scr_musicmenu_songaddscr_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" ));
|
|
494
|
scr_musicmenu_songaddscr_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" ));
|
|
495
|
scr_musicmenu_songaddscr_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" ));
|
|
496
|
scr_musicmenu_songaddscr_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" ));
|
|
497
|
scr_musicmenu_songaddscr_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" ));
|
|
498
|
scr_musicmenu_songaddscr_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" ));
|
|
499
|
scr_musicmenu_songaddscr_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" ));
|
|
500
|
scr_musicmenu_songaddscr_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" ));
|
|
501
|
scr_musicmenu_songaddscr_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" ));
|
|
502
|
scr_musicmenu_songaddscr_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" ));
|
|
503
|
scr_musicmenu_songaddscr_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" ));
|
|
504
|
scr_musicmenu_songaddscr_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" ));
|
|
505
|
menuMaximumID[0] = songCount - 1;
|
|
506
|
menuX[0] = xx + 40;
|
|
507
|
menuY[0] = yy + 260;
|
|
508
|
menuBoxDraw[0] = 1;
|
|
509
|
menuBoxDrawX1[0] = 10;
|
|
510
|
menuBoxDrawY1[0] = 250;
|
|
511
|
menuBoxDrawX2[0] = 630;
|
|
512
|
menuBoxDrawY2[0] = 470;
|
|
513
|
menuSpacingX[0] = 0;
|
|
514
|
menuSpacingY[0] = 34;
|
|
515
|
menuTextXScale[0] = 320;
|
|
516
|
menuHeaderTextAmount[0] = 0;
|
|
517
|
wrap = 0;
|
|
518
|
vwrap = 0;
|
|
519
|
for (j = 0; j < songCount; j++)
|
|
520
|
{
|
|
521
|
optionID[0][j] = songOgg[j];
|
|
522
|
optionText[0][j] = songName[j];
|
|
523
|
optionSelectable[0][j] = 1;
|
|
524
|
optionEffect[0][j] = 1;
|
|
525
|
}
|
|
526
|
}
|
|
527
|
if (customxy == 0)
|
|
528
|
scr_custommenu_optionxyscr_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++;
}
}
}
} ();
|
|
529
|
heartX = menuX[0];
|
|
530
|
heartY = menuY[0];
|
|
531
|
init = 1;
|
|
532
|
}
|
|
533
|
event_inherited();
|
|
534
|
if (type == 1)
|
|
535
|
{
|
|
536
|
if (menu == 1 && menuCoord[menu] == 0 && confirm_custom == 1)
|
|
537
|
{
|
|
538
|
scr_itemremove_anytypescr_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]]);
|
|
539
|
scr_itemremove_anytypescr_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]]);
|
|
540
|
scr_itemget_anytypescr_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]]);
|
|
541
|
snd_play(snd_select);
|
|
542
|
if (instance_exists(obj_npc_hammerguy))
|
|
543
|
{
|
|
544
|
obj_npc_hammerguy.con = 70;
|
|
545
|
obj_npc_hammerguy.fusionResultName = fusionResultName[menuCoord[0]];
|
|
546
|
obj_npc_hammerguy.fusionResultType = fusionResultType[menuCoord[0]];
|
|
547
|
if (fusionIngredientType1[menuCoord[0]] == "armor")
|
|
548
|
obj_npc_hammerguy.item1 = 0;
|
|
549
|
else if (fusionIngredientType1[menuCoord[0]] == "weapon")
|
|
550
|
obj_npc_hammerguy.item1 = 1;
|
|
551
|
else
|
|
552
|
obj_npc_hammerguy.item1 = 2;
|
|
553
|
if (fusionIngredientType2[menuCoord[0]] == "armor")
|
|
554
|
obj_npc_hammerguy.item2 = 0;
|
|
555
|
else if (fusionIngredientType2[menuCoord[0]] == "weapon")
|
|
556
|
obj_npc_hammerguy.item2 = 1;
|
|
557
|
else
|
|
558
|
obj_npc_hammerguy.item2 = 2;
|
|
559
|
if (fusionResultType[menuCoord[0]] == "armor")
|
|
560
|
obj_npc_hammerguy.item3 = 0;
|
|
561
|
else if (fusionResultType[menuCoord[0]] == "weapon")
|
|
562
|
obj_npc_hammerguy.item3 = 1;
|
|
563
|
else
|
|
564
|
obj_npc_hammerguy.item3 = 2;
|
|
565
|
}
|
|
566
|
instance_destroy();
|
|
567
|
}
|
|
568
|
}
|
|
569
|
if (type == 2)
|
|
570
|
{
|
|
571
|
if (menu == 1 && menuCoord[menu] == 0 && confirm_custom == 1)
|
|
572
|
{
|
|
573
|
global.ambush = dojoEncounterAmbush[menuCoord[0]];
|
|
574
|
global.encounterno = dojoEncounter[menuCoord[0]];
|
|
575
|
global.flag[35 gameover_mode] = 1;
|
|
576
|
global.flag[37 dojo_active] = 1;
|
|
577
|
global.flag[38 no_battle_end_msg] = 1;
|
|
578
|
global.flag[61 disable_recruiting] = 1;
|
|
579
|
scr_battlescr_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;
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);
|
|
580
|
with (obj_npc_dojo)
|
|
581
|
con = 10;
|
|
582
|
if (instance_exists(obj_npc_dojo))
|
|
583
|
{
|
|
584
|
obj_npc_dojo.dojoPrizeValue = dojoPrizeValue[menuCoord[0]];
|
|
585
|
obj_npc_dojo.dojoPrizeType = dojoPrizeType[menuCoord[0]];
|
|
586
|
obj_npc_dojo.dojoFlag = dojoFlag[menuCoord[0]];
|
|
587
|
obj_npc_dojo.dojoPrizeName = dojoPrizeName[menuCoord[0]];
|
|
588
|
}
|
|
589
|
instance_destroy();
|
|
590
|
}
|
|
591
|
}
|
|
592
|
if (type == 3)
|
|
593
|
{
|
|
594
|
if (confirm_moved == 1 && menu == 1)
|
|
595
|
{
|
|
596
|
menuCoord[1] = menuCoord[0];
|
|
597
|
menuScrollCurrent[1] = menuCoord[1];
|
|
598
|
}
|
|
599
|
if (cancel_press == 1 && menu == 0 && i_ex(id))
|
|
600
|
{
|
|
601
|
menuCoord[0] = menuCoord[1];
|
|
602
|
menuScrollCurrent[0] = floor(menuCoord[0] / menuPageSize[0]) * menuPageSize[0];
|
|
603
|
}
|
|
604
|
if (cancel_press == 1 && menu == 1)
|
|
605
|
{
|
|
606
|
with (obj_npc_cafe)
|
|
607
|
{
|
|
608
|
mode = 0;
|
|
609
|
fsiner = 0;
|
|
610
|
_sprite = remsprite;
|
|
611
|
}
|
|
612
|
}
|
|
613
|
if (menu == 2)
|
|
614
|
{
|
|
615
|
with (obj_npc_cafe)
|
|
616
|
{
|
|
617
|
mode = 0;
|
|
618
|
_sprite = remsprite;
|
|
619
|
}
|
|
620
|
cafenpc[menuCoord[2]].mode = 1;
|
|
621
|
cafenpc[menuCoord[2]]._sprite = recruitSprite[menuCoord[1]];
|
|
622
|
if (confirm_custom == 1)
|
|
623
|
{
|
|
624
|
global.flag[800 + menuCoord[2]] = recruitID[menuCoord[1]];
|
|
625
|
with (obj_npc_cafe)
|
|
626
|
event_user(6);
|
|
627
|
snd_play(snd_select);
|
|
628
|
with (obj_npc_cafe)
|
|
629
|
{
|
|
630
|
mode = 0;
|
|
631
|
fsiner = 0;
|
|
632
|
_sprite = remsprite;
|
|
633
|
}
|
|
634
|
menu = 1;
|
|
635
|
}
|
|
636
|
}
|
|
637
|
}
|
|
638
|
if (type == 4)
|
|
639
|
{
|
|
640
|
if (menu == 1)
|
|
641
|
{
|
|
642
|
if (confirm_custom == 1)
|
|
643
|
{
|
|
644
|
var swapItemId = menuitemid[menuCoord[0]];
|
|
645
|
var swapItemDesc = menuitemdesc[menuCoord[0]];
|
|
646
|
var swapItemName = menuitemname[menuCoord[0]];
|
|
647
|
var swapPocketId = pocketitemid[menuCoord[1]];
|
|
648
|
var swapPocketDesc = pocketitemdesc[menuCoord[1]];
|
|
649
|
var swapPocketName = pocketitemname[menuCoord[1]];
|
|
650
|
if (swapPocketId > 0 && swapItemId > 0)
|
|
651
|
{
|
|
652
|
global.item[menuCoord[0]] = swapPocketId;
|
|
653
|
global.pocketitem[menuCoord[1]] = swapItemId;
|
|
654
|
optionID[0][menuCoord[0]] = swapPocketId;
|
|
655
|
optionText[0][menuCoord[0]] = swapPocketName;
|
|
656
|
optionTopComment[0][menuCoord[0]] = swapPocketDesc;
|
|
657
|
optionID[1][menuCoord[1]] = swapItemId;
|
|
658
|
optionText[1][menuCoord[1]] = swapItemName;
|
|
659
|
optionTopComment[1][menuCoord[1]] = swapItemDesc;
|
|
660
|
menuitemid[menuCoord[0]] = swapPocketId;
|
|
661
|
menuitemdesc[menuCoord[0]] = swapPocketDesc;
|
|
662
|
menuitemname[menuCoord[0]] = swapPocketName;
|
|
663
|
pocketitemid[menuCoord[1]] = swapItemId;
|
|
664
|
pocketitemdesc[menuCoord[1]] = swapItemDesc;
|
|
665
|
pocketitemname[menuCoord[1]] = swapItemName;
|
|
666
|
}
|
|
667
|
else if (swapPocketId <= 0 && swapItemId > 0)
|
|
668
|
{
|
|
669
|
scr_itemshiftscr_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);
|
|
670
|
global.pocketitem[menuCoord[1]] = swapItemId;
|
|
671
|
scr_custommenu_item_info_refreshscr_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];
}
} ();
|
|
672
|
}
|
|
673
|
else if (swapPocketId > 0 && swapItemId <= 0)
|
|
674
|
{
|
|
675
|
scr_itemgetscr_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)
{
global.pocketitem[__j] = arg0;
_pocketed = 1;
noroom = 0;
break;
}
}
break;
}
__i += 1;
}
script_execute(scr_iteminfo_all);
} (swapPocketId);
|
|
676
|
global.pocketitem[menuCoord[1]] = 0;
|
|
677
|
scr_custommenu_item_info_refreshscr_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];
}
} ();
|
|
678
|
}
|
|
679
|
snd_play(snd_select);
|
|
680
|
optionSelected[0][menuCoord[0]] = 0;
|
|
681
|
optionSelected[1][menuCoord[1]] = 0;
|
|
682
|
menu = 0;
|
|
683
|
}
|
|
684
|
}
|
|
685
|
}
|
|
686
|
if (type == 5)
|
|
687
|
{
|
|
688
|
if (confirm_custom == 1)
|
|
689
|
{
|
|
690
|
tickerTimer = 0;
|
|
691
|
snd_free_all();
|
|
692
|
mus_initloop(songOgg[menuCoord[0]]);
|
|
693
|
songPlaying = songOgg[menuCoord[0]];
|
|
694
|
songPlayingName = songName[menuCoord[0]];
|
|
695
|
chosenSongName = songPlayingName;
|
|
696
|
if (subtype == 1)
|
|
697
|
global.tempflag[11] = songPlaying;
|
|
698
|
}
|
|
699
|
for (j = 0; j < songCount; j++)
|
|
700
|
{
|
|
701
|
if (songPlaying == songOgg[j])
|
|
702
|
optionSelected[0][j] = 1;
|
|
703
|
else
|
|
704
|
optionSelected[0][j] = 0;
|
|
705
|
}
|
|
706
|
}
|
|
707
|
|
|
708
|
enum e__VW
|
|
709
|
{
|
|
710
|
XView,
|
|
711
|
YView,
|
|
712
|
WView,
|
|
713
|
HView,
|
|
714
|
Angle,
|
|
715
|
HBorder,
|
|
716
|
VBorder,
|
|
717
|
HSpeed,
|
|
718
|
VSpeed,
|
|
719
|
Object,
|
|
720
|
Visible,
|
|
721
|
XPort,
|
|
722
|
YPort,
|
|
723
|
WPort,
|
|
724
|
HPort,
|
|
725
|
Camera,
|
|
726
|
SurfaceID
|
|
727
|
}
|