Also, figured I'd include the two scripts (release and release confirm). Here is first:
///mev_pause_monsters_release() function mev_pause_monsters_release() { with(instance_create_depth(x,y,depth-1,obj_gguimenu)){ daddy = other.id my_monster = other.my_monster ggui_frame(other.ggui_frame_l[0] + 96,other.ggui_frame_t[0] + 48,128,64,spr_messagebox) ggui_menu_preallocate(1,2) ggui_element_text_settings(font_mainmsg,c_white,0,0) ggui_menu_add_option_text(mev_pause_monsters_release_confirm, "Release", "") ggui_menu_add_option_text(mev_cancel, "Cancel", "") } }
and the second:
///mev_pause_monsters_release_confirm() function mev_pause_monsters_release_confirm() { show_debug_message("Update:" + string(daddy.daddy)) with(obj_gguimenu){ show_debug_message(tsprintf("ID: %, %x%",id,menu_w,menu_h)) } daddy = other.id message_spawn(tsprintf("You released %.",amp_get_monster_name(my_monster))) array_delete(global.active_monster_party,my_monster,1) array_insert(global.active_monster_party,AMP_FIRST_ACTIVE + PARTYSIZE_ACTIVE - 1,[]) amp_clear_monster(AMP_FIRST_ACTIVE + PARTYSIZE_ACTIVE - 1) with(daddy.daddy){ msh_spawn_monster_list(mev_pause_monsters) } instance_destroy(daddy) instance_destroy() }