twinblade-infinity/objects/obj_player_control/Keyboard_32.gml

38 lines
539 B
Plaintext
Raw Normal View History

action_set_relative(0);
action_sound(snd_powerup, 0);
var __b__;
__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;
action_set_relative(0);