<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>&lt;undefined&gt;</spriteName>
  <solid>0</solid>
  <visible>0</visible>
  <depth>-10000</depth>
  <persistent>0</persistent>
  <parentName>&lt;undefined&gt;</parentName>
  <maskName>&lt;undefined&gt;</maskName>
  <events>
    <event eventtype="0" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>audio_play_sound(sndpattack,0,0)
done = 0
rounds = 1;
lifeup = 0
s = global.item[ds_list_find_value(global.inv[global.current_inv],global.itemtouse[global._pl]),1]; //The name of the item
custom_lifeup = global.item[ds_list_find_value(global.inv[global.current_inv],global.itemtouse[global._pl]),21]

with instance_create(0,0,objBattleMsg) {
    if !global.s_strange[global._pl] {
        strno = 0;
        if global.pl_count = 1 {
            str[0] = global.s_name[global._pl] + " had the "+objItemLifeupAll.s+"!"
        } else {
            str[0] = global.s_name[global._pl] + " took the "+objItemLifeupAll.s+"#   and shared it with everyone!"
        }
        objItemLifeupAll.alarm[0] = 1;
    } else {
        strno = 1;
        str[0] = global.s_name[global._pl] + " is feeling a little strange..."
        if random(100)&lt;= 33 {
            strno = 2;
            if global.pl_count = 1 {
                str[1] = global.s_name[global._pl] + " tried to have the "+objItemLifeupAll.s+"!"
            } else {
                str[1] = global.s_name[global._pl] + " took the "+objItemLifeupAll.s+"#   and tried to share it with everyone!"
            }
            str[2] = global.s_name[global._pl] + " threw it away instead!"
            objItemLifeupAll.alarm[1] = 1;
        } else {
            if global.pl_count = 1 {
                str[1] = global.s_name[global._pl] + " tried to have the "+objItemLifeupAll.s+"!"
            } else {
                str[1] = global.s_name[global._pl] + " took the "+objItemLifeupAll.s+"#   and tried to share it with everyone!"
            }
            objItemLifeupAll.alarm[0] = 1;
        }
        
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="1">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if instance_exists(objBattleMsg) {
    alarm[1] = 1
} else {
    del_item_inv(global.itemtouse[global._pl],global._pl-1)
    with objTurnMaster { event_perform(ev_other,ev_user0) }
    with objVarDamage { instance_destroy() }
    instance_destroy()
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if instance_exists(objBattleMsg) {
    alarm[0] = 1
} else {
    if !global.dead[rounds] {
        if global.s_hp[rounds] != global.s_hpmax[rounds] {
            switch act[global._pl] {
                case "item_lifeup_a_all":
                    lifeup = lifeup_effect(0);
                    break;
                case "item_lifeup_b_all":
                    lifeup = lifeup_effect(1);
                    break;
                case "item_lifeup_g_all":
                    lifeup = lifeup_effect(2);
                    break;
                case "item_lifeup_o":
                    lifeup = lifeup_effect(3);
                    break;
                case "item_lifeup_custom":
                    lifeup = custom_lifeup;
                    //lifeup += choose(-1,1)*ceil(lifeup*0.25)
                    break;
            }

            if (lifeup+global.s_hp[rounds]) &gt; global.s_hpmax[rounds] {
                lifeup = global.s_hpmax[rounds]-global.s_hp[rounds];
            }
            
            done = 1
            direction = 90
            speed = 4
            
            if global.s_hp[rounds] &gt;= 0 {
                global.s_hp[rounds] += lifeup
            } else {
                if lifeup &gt; global.s_hpmax[rounds] {
                    global.s_hp[rounds] = global.s_hpmax[rounds]
                } else {
                    global.s_hp[rounds] = lifeup
                }
            }
            audio_play_sound(sndheal1,0,0)
            with instance_create(global.healthbar[rounds].x,global.healthbar[rounds].y,objHealthBarRed) { 
                color = make_color_rgb(8,240,96);
            } 
            x = global.healthbar[rounds].x+30
            y = global.healthbar[rounds].y
            
            var a = instance_create(0,0,objBattleMsg);
            a.strno = 0
                if global.s_hp[rounds] == global.s_hpmax[rounds]{
                    a.str[0] = global.s_name[rounds] + "'s HP are#   maxed out!"
                } else {
                    a.str[0] = global.s_name[rounds] + " recovered#   "+string(lifeup)+" HP!"
                }
            
            
            rounds++
            if rounds &gt; global.pl_count {
                alarm[1] = 40
            } else {
                alarm[0] = 40
            }
        } else {
            with instance_create(0,0,objBattleMsg) {
                strno = 0;
                str[0] = "It had no effect on "+global.s_name[objItemLifeupAll.rounds] + "!"
            }   
            rounds++
            if rounds &gt; global.pl_count {
                alarm[1] = 1
            } else {
                alarm[0] = 1
            }
        }
    } else {
        rounds++
        if rounds &gt; global.pl_count {
            alarm[1] = 1
        } else {
            alarm[0] = 1
        }
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="3" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>if done {
    if speed &gt; 0 {
        speed -= 0.4
    } else {
        speed = 0
    }
}

visible = lifeup &gt; 0
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="8" enumb="0">
      <action>
        <libid>1</libid>
        <id>603</id>
        <kind>7</kind>
        <userelative>0</userelative>
        <isquestion>0</isquestion>
        <useapplyto>-1</useapplyto>
        <exetype>2</exetype>
        <functionname></functionname>
        <codestring></codestring>
        <whoName>self</whoName>
        <relative>0</relative>
        <isnot>0</isnot>
        <arguments>
          <argument>
            <kind>1</kind>
            <string>/*draw_set_halign(fa_center)
draw_set_font(global.thedfont)
draw_set_color(c_white)
//if y != 0 { draw_text_color(x,y,lifeup,make_color_rgb(8,240,96),make_color_rgb(8,240,96),make_color_rgb(8,240,96),make_color_rgb(8,240,96),1) }
</string>
          </argument>
        </arguments>
      </action>
    </event>
  </events>
  <PhysicsObject>0</PhysicsObject>
  <PhysicsObjectSensor>0</PhysicsObjectSensor>
  <PhysicsObjectShape>0</PhysicsObjectShape>
  <PhysicsObjectDensity>0.5</PhysicsObjectDensity>
  <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
  <PhysicsObjectGroup>0</PhysicsObjectGroup>
  <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
  <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
  <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
  <PhysicsObjectAwake>-1</PhysicsObjectAwake>
  <PhysicsObjectKinematic>0</PhysicsObjectKinematic>
  <PhysicsShapePoints/>
</object>
