scorrp10 Posted December 28, 2024 Share Posted December 28, 2024 Again, not sure what you are trying to accomplish, but if you want to reference an ash hopper in a script, you generally want to have it loaded as an Actor property, which is best done via Creation Kit. Link to comment Share on other sites More sharing options...
xkkmEl Posted December 29, 2024 Share Posted December 29, 2024 To second Scorrp10's answer, there are no facilities within papyrus to go from a string to an object or reference, with the exception of Quest.getQuest and Keyword.getKeyword. For everything else, you have to build your own dictionaries. Link to comment Share on other sites More sharing options...
dylbill Posted December 29, 2024 Share Posted December 29, 2024 If you're using skse and want a search function similar to help console command, you can use my mod Dylbill's papyrus functions: https://www.nexusmods.com/skyrimspecialedition/mods/65410 It includes this function in DbSkseFunctions.psc: ;Get all forms who's name (with GetName()) match the sFormName. ;nameMatchMode 0 = exact match, 1 = name contains sFormName. ;formTypeMatchMode 1 = forms that have a type in formTypes. ;formTypeMatchMode 0 = forms that do not have a type in formTypes. ;formTypeMatchMode -1 (or if formTypes == none) = formType filter is ignored completely, get all forms regardless of type that match (or contain) sFormName. Form[] Function GetAllFormsWithName(string sFormName, int nameMatchMode = 0, int[] formTypes = none, int formTypeMatchMode = 0) Global Native Then you can use DbMiscFunctions.GetFormIDHex(Form akForm) for each form in the array to get the ids in hex format. Link to comment Share on other sites More sharing options...
PeterMartyr Posted December 30, 2024 Share Posted December 30, 2024 I love this thread.. so entertaining, but agreeing with @scorrp10 and @xkkmEl use a property and try these mods Add Menu Item Jaxonz Positioner they should cover your all needs regarding turning console cheats into objects Link to comment Share on other sites More sharing options...
Recommended Posts