Jump to content

How to use GetForm


Recommended Posts

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 getForm
No 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 game
No 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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...