Chronepsys Posted February 16, 2023 Share Posted February 16, 2023 (edited) Hi all, I am looking for a way to open the quick map when using an activator. I tried to understand how to use : int MapKey = Input.GetMappedKey("Quick Map")Input.TapKey(MapKey) But did not succeed. Can you help me please ? Edited February 16, 2023 by Chronepsys Link to comment Share on other sites More sharing options...
RichWebster Posted February 17, 2023 Share Posted February 17, 2023 This requires SKSE: UI.InvokeString("MapMenu", "_global.skse.OpenMenu", "MapMenu") Or as a helper function: ;/* * Opens a UI menu by invoking a string. Requires SKSE * Example for asMenuType is "InventoryMenu" * * UI.InvokeString example usage: * {Opens the Map Menu} * UI.InvokeString("MapMenu", "_global.skse.OpenMenu", "MapMenu") */; function OpenMenu(string asMenuType, string asMenuName = "HUD Menu", string asTarget = "_global.skse.OpenMenu") global UI.InvokeString(asMenuName, asTarget, asMenuType) endfunction Link to comment Share on other sites More sharing options...
Chronepsys Posted February 17, 2023 Author Share Posted February 17, 2023 Not sure to understand right. While using : UI.InvokeString("MapMenu", "_global.skse.OpenMenu", "MapMenu") I get compiling errors like :variable UI is undefinednone is not a known user-defined type Sorry but i am a very beginner in script and i don't manage very well this. Could you explain a little please ? Link to comment Share on other sites More sharing options...
RichWebster Posted February 17, 2023 Share Posted February 17, 2023 It requires SKSE so you'll need to install that :) Link to comment Share on other sites More sharing options...
Chronepsys Posted February 17, 2023 Author Share Posted February 17, 2023 I already had install skse with MO, must i do something more when writing the script ?Btw, i do it with ck. Link to comment Share on other sites More sharing options...
RichWebster Posted February 17, 2023 Share Posted February 17, 2023 Attach a new script to your Activator and add the following: event OnActivate(ObjectReference akActionRef) UI.InvokeString("MapMenu", "_global.skse.OpenMenu", "MapMenu") endevent I've only ever installed SKSE manually so I can't speak to MO. But you should make sure the SKSE scripts are installed correctly by going to Data/Scripts/Source and seeing if there's a UI.psc file in there. Link to comment Share on other sites More sharing options...
Chronepsys Posted February 17, 2023 Author Share Posted February 17, 2023 I get it. I find UI there.Must i add something to call up this like i see sometimes with "utility" ? Link to comment Share on other sites More sharing options...
RichWebster Posted February 17, 2023 Share Posted February 17, 2023 No mate, you're calling UI already, like you see with Utility. If it's still not working I can only think that SKSE is not installed properly. You could also try restarting the CK. Link to comment Share on other sites More sharing options...
scorrp10 Posted February 17, 2023 Share Posted February 17, 2023 The SKSE file you downloaded, need to make sure to copy contents of its Data directory to Data under your SSE folder. I don't really know how MO does it, but chances are it keeps those file someplace separate. At the very least, you need all the files under Data/Scripts. Also, go into Data/Source/Scripts under your SSE folder, and into it, copy everything you have under Data/Scripts/Source. Link to comment Share on other sites More sharing options...
Chronepsys Posted February 17, 2023 Author Share Posted February 17, 2023 Well, After searching and viewing some tuto, i understand that i should use a compiler like VSC and teach him that i use the skse library.Which it seem not possible only with ck. I will look in that way. Thank you so much for your help and kindness. Link to comment Share on other sites More sharing options...
Recommended Posts