<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
  <spriteName>sprATM</spriteName>
  <solid>-1</solid>
  <visible>-1</visible>
  <depth>0</depth>
  <persistent>0</persistent>
  <parentName>parNpc</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>answer = 0
money = 0
text = 0
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="11">
      <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>event_user(0)
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="4">
      <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>///Deposit
if instance_exists(objATMDisplay) {
    alarm[4] = 1
} else {
    var a = instance_create(0,0,objTextBox);
    a.strno = 1
    if money &lt; 1 {
        a.str[0] = "@ The operation was cancelled by the user."
        a.str[1] = "@ Would you like anything else?" 
        question(3,"Withdraw","Deposit","Exit","","")
        alarm[0] = 1
    } else {
        a.str[0] = "@ Your account was just credited $"+string(money)+"."
        a.str[1] = "@ Would you like anything else?" 
        question(3,"Withdraw","Deposit","Exit","","")
        alarm[0] = 1
    }
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="3">
      <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>///Deposit
if instance_exists(objTextBox) {
    alarm[3] = 1
} else {
    objPlayer.canmove = 0
    var atm;
    atm = instance_create(x,y,objATMDisplay) 
    atm.mode = 1
    atm.object = object_index
    atm.text = text;
    alarm[4] = 1
}
</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>///Withdraw
if instance_exists(objATMDisplay) {
    alarm[2] = 1
} else {
    var a = instance_create(0,0,objTextBox);
    a.strno = 1
    if money &lt; 1 {
        a.str[0] = "@ The operation was cancelled by the user."
        a.str[1] = "@ Would you like anything else?" 
        question(3,"Withdraw","Deposit","Exit","","")
        alarm[0] = 1
    } else {
        a.str[0] = "@ Your account was just debited $"+string(money)+"."
        a.str[1] = "@ Would you like anything else?" 
        question(3,"Withdraw","Deposit","Exit","","")
        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>///Withdraw
if instance_exists(objTextBox) {
    alarm[1] = 1
} else {
    objPlayer.canmove = 0
    var atm;
    atm = instance_create(x,y,objATMDisplay) 
    atm.mode = 0
    atm.object = object_index
    atm.text = text;
    alarm[2] = 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(objQuestion) { alarm[0] = 1 }
else {
    var a = instance_create(0,0,objTextBox);
    a.strno = 0
    switch answer {
        case 0:
            if global.money_saved = 0 {
                a.str[0] = "@ We're sorry, but your account has no funds."
            } else {
                a.str[0] = "@ Enter the amount to withdraw."
                text = a.str[0]
                alarm[1] = 1
            }
            break;
        case 1:
            if global.money = 0 {
                a.str[0] = "@ We're sorry, but you aren't carrying any money with you."
            } else {
                a.str[0] = "@ Enter the amount to deposit."
                text = a.str[0]
                alarm[3] = 1
            }
            break;
        case 2:
            a.str[0] = "@ Thank you for choosing us."
            break;
    } 
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="7" 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>var a = instance_create(0,0,objTextBox);
a.strno = 1;
a.str[0] = "@ Welcome, "+global.s_name[1]+".#@ We're here for your money needs, no matter where you are." 
a.str[1] = "@ Do you want to withdraw or deposit?" 
question(3,"Withdraw","Deposit","Exit","","")
alarm[0] = 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>
    <point>8,8</point>
    <point>8,8</point>
  </PhysicsShapePoints>
</object>
