Difference between revisions of "FAQ: My Script Doesn't Work!"
Jump to navigation
Jump to search
FAQ: My Script Doesn't Work! (edit)
Revision as of 23:06, 10 February 2012
, 23:06, 10 February 2012→I can't get my alias to point to a reference
imported>Jimhsu |
imported>Jimhsu |
||
Line 76: | Line 76: | ||
**'''An alias is pointing to an object in a container.''' Evidently this does not work (creating a persistent reference using PlaceAtMe, and pointing the alias to the persistent reference). Solution: don't put the object in the container, or point to the container and get the object that way (not completely tested). | **'''An alias is pointing to an object in a container.''' Evidently this does not work (creating a persistent reference using PlaceAtMe, and pointing the alias to the persistent reference). Solution: don't put the object in the container, or point to the container and get the object that way (not completely tested). | ||
**'''You created an alias for a quest that is already running (i.e. dirty save)''' - even if you are simply adding an additional alias to an already running quest, you can't get the alias to actually point to anything (despite the fact that Debug.Trace happily shows that it exists, which is horribly misleading). Solution is to make a clean save and remove the quest, then add it back. Simply removing the quest via console and adding it back may also work (''unverified''). | **'''You created an alias for a quest that is already running (i.e. dirty save)''' - even if you are simply adding an additional alias to an already running quest, you can't get the alias to actually point to anything (despite the fact that Debug.Trace happily shows that it exists, which is horribly misleading). Solution is to make a clean save and remove the quest, then add it back. Simply removing the quest via console and adding it back may also work (''unverified''). | ||
===I can't add a property to a script fragment! === | |||
*You need to define the property through the Properties window '''for a script fragment''' before it can work in the script. To do this: | |||
**Remove all references of the property from your script and compile. Use a blank script (;comment) if you need to. | |||
**You may need to rename the script to get the Properties window to work. | |||
**Click on the properties window on the lower right side (next to TIF_) to add the new property. |