Page 1 of 1

UI_close_gumps

Posted: Fri Oct 28, 2016 10:04 am
by agentorangeguy
Anyone else having trouble getting the gumps to close automatically when they should? I was making an egg for "something on" to alert sleeping dragons when the avatar is looting their goodie stash. I've used UI_close_gumps but having no luck getting it working.

Code: Select all

void DragonAttack 3029()
	{
	var dragon_list = UI_find_nearby_avatar(504); //dragon shape
	UI_close_gumps(); //added this to see if it would work
	if (event == EGG)
		{
		UI_close_gumps(); //added both versions to see if one would work
		UI_close_gump();
		for (npc in dragon_list)
			{
			UI_close_gumps();
			npc->set_schedule_type(IN_COMBAT);	
			}
		}
	}
Maybe i'm doing something wrong since I'm a bit rusty?

Re: UI_close_gumps

Posted: Fri Oct 28, 2016 5:46 pm
by marzo
UI_close_gump closes a single gump, which MUST me passed as a parameter; UI_close_gumps closes all active gumps.

Your issue is another: eggs don't trigger when gumps are showing.

Re: UI_close_gumps

Posted: Sat Oct 29, 2016 1:09 am
by Paulon
Relating to closing gumps and dragons, a suggestion for a SI mod would be to close all gumps when using the ritual blooding device on an NPC, assuming one of the current mods or Exult doesn't already do so at this point. It's been quite a while since I played.

The nickel and dime them to death approach of using the ritual blooding device with a gump open was always a tempting cheat against a powerful foe like a dragon in SI.

Re: UI_close_gumps

Posted: Sat Oct 29, 2016 11:26 pm
by agentorangeguy
Ohhhh okay, I kept thinking the "something on" eggs that trigger combat if you take the item off of the egg closed the gumps, but thinking back I guess that was the "Bad avatar" function where they'd call the guards or the Guardian would say his spiel?

Re: UI_close_gumps

Posted: Tue Nov 01, 2016 8:29 am
by Knight Captain
Would a delay and then the command work?

Re: UI_close_gumps

Posted: Wed Nov 02, 2016 7:15 pm
by marzo
It will make no difference; the delay will start ticking away once the gumps are closed.