///click_slot(value)

own = argument0;

spr_plus = 0.75;
    
color = get_color3(own, true);

global.selected[dex.own] = own;
global.savedata[idno] = own;

// Auto-Saves
if (file_exists("save.ini"))
{
    ini_open("save.ini");
        ini_write_real("Pokemon", string(idno), own)
        //ini_write_real("Progress","count",global.count)
        show_debug_message("Saved "+pokemon+" as "+string(own)+".");
    ini_close();
}
else
    show_debug_message("ERROR: Save file somehow went missing.");
