<!--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(sndppsi,0,0)
rounds = 1
failed = 0
type = 0
backfire = 0
dmg = 0
pp = 0
b = 0
alarm[0] = 1;
</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>if instance_exists(objBattleMsg) {
    alarm[11] = 1
} else {
    with objTurnMaster { event_perform(ev_other,ev_user0) }
    instance_destroy()
}
</string>
          </argument>
        </arguments>
      </action>
    </event>
    <event eventtype="2" enumb="9">
      <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[9] = 1
} else {
    var a;
    a = instance_create(0,0,objBattleMsg); 
    a.strno = 0;
    a.str[0] = "...But it didn't work very well!"
    alarm[11] = 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>if instance_exists(objMagnetFx) or instance_exists(objBattleMsg) {
    alarm[3] = 1
} else {
    if type = 0 {
        pp = irandom_range(5,10)
        failed = 0
        
        var a = instance_create(0,0,objBattleMsg);
        a.strno = 0
        
        en_random_choser()
        if tgt = global._pl {
            failed = 2
        } else {
            if global.s_pp[tgt]&gt;= pp {
                global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
                global.s_pp[tgt] -= pp
            } else if global.s_pp[tgt] &gt; 0 and global.s_pp[tgt] &lt; pp {
                pp = global.s_pp[tgt]
                global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
                global.s_pp[tgt] = 0
            } else { 
                failed = 1
            }
        }
        
        if failed = 0 {
            a.str[0] = "Drained "+string(pp)+" PP#   from "+global.s_name[tgt]+"!"
        } else if failed = 2 {
            a.str[0] = "It had no effect on "+global.s_name[tgt] + "!"
        } else {
            a.str[0] = global.s_name[tgt] + " didn't have any PP!"
        }
        alarm[11] = 1
    } else {
        if rounds &gt; global.pl_count {
            alarm[11] = 1
            exit
        } else {
            if global.dead[rounds] {
                alarm[3] = 1
                rounds++
                exit
            }
            pp = irandom_range(5,10)
            failed = 0
            
            var a = instance_create(0,0,objBattleMsg);
            a.strno = 0
            
            if rounds = global._pl {
                failed = 2
            } else {
                if global.s_pp[rounds]&gt;= pp {
                    global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
                    global.s_pp[rounds] -= pp
                } else if global.s_pp[rounds] &gt; 0 and global.s_pp[rounds] &lt; pp {
                    pp = global.s_pp[rounds]
                    global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
                    global.s_pp[rounds] = 0
                } else { 
                    failed = 1
                }
            }
            
            if failed = 0 {
                a.str[0] = "Drained "+string(pp)+" PP#   from "+global.s_name[rounds]+"!"
            } else if failed = 2 {
                a.str[0] = "It had no effect on "+global.s_name[rounds] + "!"
            } else {
                a.str[0] = global.s_name[rounds] + " didn't have any PP!"
            }
            rounds++
            alarm[3] = 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>if instance_exists(objMagnetFx) or instance_exists(objBattleMsg) {
    alarm[2] = 1
} else {
    if type = 0 {
        pp = irandom_range(5,10)
        failed = 0
        
        var a = instance_create(0,0,objBattleMsg);
        a.strno = 0
        
        if global.target[global._pl].e_pp&gt;= pp {
            global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
            global.target[global._pl].e_pp -= pp
        } else if global.target[global._pl].e_pp &gt; 0 and global.target[global._pl].e_pp &lt; pp {
            pp = global.target[global._pl].e_pp
            global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
            global.target[global._pl].e_pp = 0
        } else { 
            failed = 1
        }
        
        if !failed {
            a.str[0] = "Drained "+string(pp)+" PP#   from "+global.target[global._pl].e_art + global.target[global._pl].e_name +"!"
        } else {
            a.str[0] = upper(global.target[global._pl].e_art) + global.target[global._pl].e_name + " didn't have any PP!"
        }
        alarm[11] = 1
    } else {
        if rounds &gt; global.en_count {
            alarm[11] = 1
            exit
        } else {
            if global.enemy[rounds] = 0 {
                alarm[2] = 1
                rounds++
                exit
            }
            pp = irandom_range(5,10)
            failed = 0
            
            var a = instance_create(0,0,objBattleMsg);
            a.strno = 0
            
            if global.enemy[rounds].e_pp&gt;= pp {
                global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
                global.enemy[rounds].e_pp -= pp
            } else if global.enemy[rounds].e_pp &gt; 0 and global.target[global._pl].e_pp &lt; pp {
                pp = global.enemy[rounds].e_pp
                global.s_pp[global._pl] = min(global.s_pp[global._pl]+pp,global.s_ppmax[global._pl])
                global.enemy[rounds].e_pp = 0
            } else { 
                failed = 1
            }
            
            if !failed {
                a.str[0] = "Drained "+string(pp)+" PP#   from "+global.enemy[rounds].e_art + global.enemy[rounds].e_name +"!"
            } else {
                a.str[0] = upper(global.enemy[rounds].e_art) + global.enemy[rounds].e_name + " didn't have any PP!"
            }
            rounds++
            alarm[2] = 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 {
    if global.s_strange[global._pl] and random(100)&lt;50 {
        backfire = 1
    } 
    with instance_create(global.target[global._pl].x,global.target[global._pl].y,objMagnetFx) {
        type = objMagnet.type
        backfire = objMagnet.backfire
    }
    if !backfire {
        alarm[2] = 1
    } else {
        alarm[3] = 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>///Damage goes here
var a,b;
a = instance_create(0,0,objBattleMsg);
switch type{
    case 0: b = "["; break;
    case 1: b = "_"; break;
}

if !global.s_strange[global._pl] {
    a.strno = 0;
    a.str[0] = global.s_name[global._pl] + " tried PSI Magnet "+b+"!"
} else {
    a.strno = 1;
    a.str[0] = global.s_name[global._pl] + " is feeling a little strange..."
    a.str[1] = global.s_name[global._pl] + " tried PSI Magnet "+b+"!"
}

if !global.s_cantconcentrate[global._pl] {
    alarm[1] = 1
} else {
    alarm[9] = 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>0,0</point>
    <point>160,160</point>
  </PhysicsShapePoints>
</object>
