void defense(int type, int defense_force)
{
         

        void self = getlocalvar("self");
        
       
        



         if (type==0)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL3" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL4" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL5" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL6" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL7" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL8" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL9" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL10" ), defense_force); 
         changeentityproperty(self, "defense", openborconstant("ATK_BLAST" ), defense_force); 
         }

        if (type==1)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL" ), defense_force); 
         }


         if (type==2)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2" ), defense_force); 
         }

         if (type==3)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL3" ), defense_force); 
         }



         if (type==4)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL4" ), defense_force); 
         }

         if (type==5)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL5" ), defense_force); 
         }


         if (type==6)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL6" ), defense_force); 
         }


         if (type==7)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL7" ), defense_force); 
         }


         if (type==8)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL8" ), defense_force); 
         }


         if (type==9)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL9" ), defense_force); 
         }

         if (type==10)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_NORMAL10" ), defense_force); 
         }


         if (type==11)
         {
         changeentityproperty(self, "defense", openborconstant("ATK_BLAST" ), defense_force); 
         }
       

}


