Hi Yal, hope you had a great Summer. I've been trying to setup a 'shop' that displays the monsters seen, and purchase/craft monsters from a list that of them you've caught.
I've taken your UI of mev_pause_moncyclopedia for the shop layout, and am attempting to use the item purchasing goodness from msh_spawn_shop_list and its menu event accomplish this.
The thing I think I'm currently stuck on is using the proper code to set up the var it which I want to be the specific ID of the monster you're hovering over .Then carrying over that info with shop_item variable to the shop menu event.
I've been using it = global.monsters_seen[d] but after starting to use the debug feature, I realized this is not giving me what I need lol.
Here's the code block I'm struggling with to accomplish that. Its the block for the mon's you've caught and thus should be purchasable. I'll link the full script code in a comment below if that helps. Thanks!!!
//Add meta data as well, based on how much info the player has about the monster.
var d, mev, it;
draw_set_font(font_n)//Needed by string_wrap
for(d = 0; d <= maxmon; d++){
vev= d
yy = lerp(0.05,0.95,d/cmax)
hh = lerp(0.05,0.95,(d+1)/cmax) - yy
// ggui_menu_region(0,vev,mev,0.05,yy,0.95,yy+hh)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if(global.monsters_caught[d]){
//Wrap flavor text so it fits the box we add below
mev = argument0
it = global.monsters_seen[d] //global.monsters_caught[d]
ggui_fill_meta(0,d,global.monster_data[d,mond_SPRITE_BATTLE],0,global.monster_data[d,mond_NAME],string_wrap(global.monster_data[d,mond_CRAFT_SLOT_SOUL_STRING],VIEW_W*0.6*0.8))
var soul = global.monster_data[d,mond_CRAFT_SLOT_SOUL]
shop_item = it
shop_cost = soul
}