dizietemblesssma Posted September 16, 2020 Share Posted September 16, 2020 I have the following: Scriptname dz_hearthfire_cleanup Extends ObjectReference Form lake_xmarker = getForm(0x0300307b) which fails compilation with:D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc(10,20): no viable alternative at input 'getForm'D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc(10,27): required (...)+ loop did not match anything at input '('D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc(10,5): Unknown user flag getFormNo output generated for D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc, compilation failed. Reading https://www.creationkit.com/index.php?title=GetForm_-_Game I can't see what is going wrong, if I add 'import game' I get: Scriptname dz_hearthfire_cleanup Extends ObjectReference import game Form lake_xmarker = game.getForm(0x0300307b) D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc(10,20): no viable alternative at input 'game'D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc(10,24): required (...)+ loop did not match anything at input '('D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc(10,5): Unknown user flag gameNo output generated for D:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\dz_hearthfire_cleanup.psc, compilation failed. Am I reading the creation kit documentation really wrong? diziet Link to comment Share on other sites More sharing options...
dylbill Posted September 16, 2020 Share Posted September 16, 2020 You need to put Form lake_xmarker = game.getForm(0x0300307b) in an event. Link to comment Share on other sites More sharing options...
dizietemblesssma Posted September 17, 2020 Author Share Posted September 17, 2020 Thankyou so much! This is the kind of thing missing from the documentation that could really kill the motivation of a newbie modder like myself, once again, nexus forums to the rescue:) diziet Link to comment Share on other sites More sharing options...
Recommended Posts