twinblade-infinity/objects/obj_player_control/Mouse_53.gml

51 lines
668 B
Plaintext
Raw Permalink Normal View History

action_set_relative(0);
if press < 2
{
press += 1
alarm[7] = 10
}
var __b__;
__b__ = action_if_variable(press, 2, 0);
if __b__
{
{
action_sound(snd_powerup, 0);
__b__ = action_if_variable(global.stock_item, 4, 0);
if __b__
{
{
global.nova_time = 300;
}
}
__b__ = action_if_variable(global.stock_item, 2, 0);
if __b__
{
{
global.shield = 300;
}
}
__b__ = action_if_variable(global.stock_item, 3, 0);
if __b__
{
{
{
action_set_relative(1);
global.player_hp += 1000;
action_set_relative(0);
}
}
}
__b__ = action_if_variable(global.stock_item, 1, 0);
if __b__
{
{
global.hypertime = 300;
}
}
global.stock_item = 0;
press = 0;
}
}
action_set_relative(0);