Any non-SKSE replacement for RegisterForMenu OnMenuClose?

Post » Wed Nov 02, 2016 4:16 pm

I need to port my mod to SE and since SKSE64 isn't out yet I'm trying to figure out how to detect when the character menu is closed. I have to run an itializing script that must run after the player has made his choices in the character screen. Any ideas?
User avatar
Emmanuel Morales
 
Posts: 3433
Joined: Sat Oct 06, 2007 2:03 pm

Post » Wed Nov 02, 2016 5:11 pm

Is this as in the Character Creation Screen?


If so, maybe you could get the Player's name, and wait until it's changed from "Prisoner" to something else?

User avatar
Calum Campbell
 
Posts: 3574
Joined: Tue Jul 10, 2007 7:55 am

Post » Wed Nov 02, 2016 4:41 pm

Maybe use the OnGetUp event on the chopping block? It's a bit later, but probably early enough, as the player controls haven't been released yet.

User avatar
Margarita Diaz
 
Posts: 3511
Joined: Sun Aug 12, 2007 2:01 pm

Post » Wed Nov 02, 2016 5:31 pm

Or maybe even a trigger around the chopping-block: parent it to something which gets disabled at the end of Helgen, and just check the one activating it is the Player.

User avatar
Jonathan Braz
 
Posts: 3459
Joined: Wed Aug 22, 2007 10:29 pm

Post » Wed Nov 02, 2016 9:43 pm

Yes, it's at the Character Creation Screen, and too bad the above solutions won't work with LAL or similar mods. And I'm not sure I could get the Prisoner name either without SKSE since GetName() requires it.
User avatar
Javier Borjas
 
Posts: 3392
Joined: Tue Nov 13, 2007 6:34 pm

Post » Wed Nov 02, 2016 3:05 pm

Ah, so it does. I thought GetDisplayName() was vanilla...



Hmm, could you check for Helgen being 'cleared'? I'd assume LAL modifies Helgen to the Post-CharGen State; I know that's what I did in my Alternate Start :shrug: you could check if something is enabled (like the ruined Inn), or if a suitable Quest Stage is set?

User avatar
Rich O'Brien
 
Posts: 3381
Joined: Thu Jun 14, 2007 3:53 am

Post » Wed Nov 02, 2016 11:16 pm

Hmm. Perhaps. That would be troublesome for those that do *not* use LAL until they've cleared Helgen though. Dang, who could have thought that life is so hard without SKSE, lol.
User avatar
luis ortiz
 
Posts: 3355
Joined: Sun Oct 07, 2007 8:21 pm

Post » Wed Nov 02, 2016 7:06 pm

One last, inelegant solution: "Start Necklace" : an amulet the Player can Equip once they have their Inventory. You'd have the issue of people not equipping it and complaining, but it'd work with anything. I think you get Inventory Access as soon as Hadvar cuts your ropes, right, just after entering the Keep?

User avatar
Harry-James Payne
 
Posts: 3464
Joined: Wed May 09, 2007 6:58 am

Post » Thu Nov 03, 2016 2:16 am

Oh. Yeah, that would work. An OnObjectEquipped event would do the trick. I'm going to call it the Mighty Amulet Of Immortality so users won't resist, lol.
User avatar
Danger Mouse
 
Posts: 3393
Joined: Sat Oct 07, 2006 9:55 am


Return to V - Skyrim