Code/gml_Object_textx_Step_0.gml
2023-11-25 21:14:46 +02:00

81 lines
2.9 KiB
Plaintext

if (!instance_exists(recipebook))
instance_destroy()
if (global.indexphase != "home")
{
if (global.indexphase == "ex")
{
if (!instance_exists(exdrink_text))
instance_create(x, y, exdrink_text)
if (!instance_exists(exframe_3))
instance_create((x + 30), (y + 110), exframe_3)
if (global.stel1 == "right" && global.stel2 == "right" && global.cur_day >= 5)
{
if (!instance_exists(exframe_2))
instance_create((x + 170), (y + 40), exframe_2)
}
else if ((!instance_exists(exframe_1)) && global.cur_day >= 5)
instance_create((x + 30), (y + 40), exframe_1)
if global.shop_tea
{
if (!instance_exists(exframe_4))
instance_create((x + 170), (y + 110), exframe_4)
}
}
else
{
if (global.indexphase != "name")
{
if (!instance_exists(bb1))
instance_create((x + buttonxoffset), (y + 80), bb1)
if (!instance_exists(bb2))
instance_create((x + buttonxoffset), (y + 110), bb2)
if (!instance_exists(bb3))
instance_create((x + buttonxoffset), (y + 140), bb3)
if (!instance_exists(bb4))
instance_create((x + buttonxoffset), (y + 170), bb4)
if (!instance_exists(bb5))
instance_create((x + buttonxoffset), (y + 200), bb5)
}
else
{
if (!instance_exists(bc1))
instance_create(bc1x, bc1y, bc1)
if (!instance_exists(bc2))
instance_create(bc2x, bc2y, bc2)
if (!instance_exists(bc3))
instance_create(bc3x, bc3y, bc3)
if (!instance_exists(bc4))
instance_create(bc4x, bc4y, bc4)
if (!instance_exists(bc5))
instance_create(bc5x, bc5y, bc5)
if (!instance_exists(bc6))
instance_create(bc6x, bc6y, bc6)
if (!instance_exists(bc7))
instance_create(bc7x, bc7y, bc7)
}
if (!instance_exists(ba1))
instance_create((x + dboffset), (y + 50), ba1)
if (!instance_exists(ba2))
instance_create((x + dboffset), (y + 80), ba2)
if (!instance_exists(ba3))
instance_create((x + dboffset), (y + 110), ba3)
if (!instance_exists(ba4))
instance_create((x + dboffset), (y + 140), ba4)
if (!instance_exists(ba5))
instance_create((x + dboffset), (y + 170), ba5)
if (!instance_exists(ba6))
instance_create((x + dboffset), (y + 200), ba6)
}
}
else
{
drinknumber = global.recipeindex
if (global.recipeindex != 0)
{
if (!instance_exists(recipe_left))
instance_create(x, y, recipe_left)
if (!instance_exists(recipe_right))
instance_create(x, y, recipe_right)
}
}