<!--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
noheal = 0;
s = global.item[ds_list_find_value(global.inv[global.current_inv],global.itemtouse[global._pl]),1]; //The name of the item
tocure = global.item[ds_list_find_value(global.inv[global.current_inv],global.itemtouse[global._pl]),23]; 
str = ""
str_str = ""
alarm[2] = 1
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="10">
      <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[10] = 1
} else {
    del_item_inv(global.itemtouse[global._pl],global._pl-1)
    with objTurnMaster { event_perform(ev_other,ev_user0) }
    instance_destroy()
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="2">
      <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 global.target[global._pl] = global._pl {
    str = global.s_name[global._pl] + " used the "+objItemHealing.s+"!"
    str_str = global.s_name[global._pl] + " tried to use the "+objItemHealing.s+"!"
} else {
    str = global.s_name[global._pl] + " used the "+objItemHealing.s+" on "+ global.s_name[global.target[global._pl]]+"!"
    str_str = global.s_name[global._pl] + " tried to use the "+objItemHealing.s+" on "+global.s_name[global.target[global._pl]]+" !"
}

with instance_create(0,0,objBattleMsg) {
    if !global.s_strange[global._pl] {
        strno = 0;
        str[0] = objItemHealing.str
    } else {
        if random(100) &lt;= 33 {
            strno = 2;
            objItemHealing.noheal = 1
        } else {
            strno = 1;
        }
        str[0] = global.s_name[global._pl] + " is feeling a little strange..."
        str[1] = objItemHealing.str_str
        str[2] = global.s_name[global._pl] + " threw the "+objItemHealing.s+" away instead!"
    }
}
if !noheal { alarm[0] = 1 } else { alarm[10] = 1 }
</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 {
    var msg, failed;
    msg = ""
    var a = instance_create(0,0,objBattleMsg);
    a.strno = 0
    failed = 0
    //0: None; 1: Crying; 2: Poison; 3: Infection; 4: Sleep; 5: Numbness; 6: Solidification; 7: Strangeness; 8: Shock; 9: Can't concentrate; 10: Death (Half); 11: Death (Full)
    switch tocure {
        case 1:
            if global.s_crying[global.target[global._pl]] { 
                global.s_crying[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + " finally stopped crying!" 
            } else {
                failed = 1
            }
            break;
        case 2:
            if global.s_poison[global.target[global._pl]] { 
                global.s_poison[global.target[global._pl]] = 0
                msg = "The poison was removed from#   " + global.s_name[global.target[global._pl]] + "'s body!"
            } else {
                failed = 1
            }
            break;
        case 3:
            if global.s_infected[global.target[global._pl]] { 
                global.s_infected[global.target[global._pl]] = 0
                msg = "The "+choose("biohazard","infection","infectious agent","pathogen")+" was removed from#   " + global.s_name[global.target[global._pl]] + "'s body!"
            } else {
                failed = 1
            }
            break;
        case 4:
            if global.s_asleep[global.target[global._pl]] { 
                global.s_asleep[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + " woke up!"
            } else {
                failed = 1
            }
            break;
        case 5:
            if global.s_shocked[global.target[global._pl]] { 
                global.s_shocked[global.target[global._pl]] = 0
                msg = "The "+choose("numbness","paralysis")+" faded from#   "+global.s_name[global.target[global._pl]] + "'s body!"
            } else {
                failed = 1
            }
            break;
        case 7:
            if global.s_strange[global.target[global._pl]] { 
                global.s_strange[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + " stopped feeling strange!"
            } else {
                failed = 1
            }
            break;
        case 8:
            if global.s_shocked[global.target[global._pl]] { 
                global.s_shocked[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + " got over the shock!"
            } else {
                failed = 1
            }
            break;
        case 9:
            if global.s_cantconcentrate[global.target[global._pl]] { 
                global.s_cantconcentrate[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + " was able to concentrate!"
            } else {
                failed = 1
            }
            break;
        case 10:
            if global.dead[global.target[global._pl]] { 
                global.dead[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + choose(" was revived!"," is back!")
                global.s_hp[global.target[global._pl]] = ceil(global.s_hpmax[global.target[global._pl]]/2)
            } else {
                failed = 1
            }
            break;
        case 11:
            if global.dead[global.target[global._pl]] { 
                global.dead[global.target[global._pl]] = 0
                msg = global.s_name[global.target[global._pl]] + choose(" was revived!"," is back!")
                global.s_hp[global.target[global._pl]] = global.s_hpmax[global.target[global._pl]]
            } else {
                failed = 1
            }
            break;
    }
    
    if msg != "" and !failed {
        with instance_create(global.healthbar[global.target[global._pl]].x,global.healthbar[global.target[global._pl]].y,objHealthBarRed) { 
            color = make_color_rgb(8,240,96);
        } 
        a.str[0] = msg
        audio_play_sound(sndheal2,0,0)
    } else {
        a.str[0] = "It had no effect on "+global.s_name[global.target[global._pl]] + "!";
    }
    alarm[10] = 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
    }
}
</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>
