mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-04-28 10:06:51 -05:00
23 lines
497 B
Plaintext
23 lines
497 B
Plaintext
///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.");
|