Difference between revisions of "Debug Scripts"
Jump to navigation
Jump to search
no edit summary
imported>AdiBeiElderScrolls |
imported>AdiBeiElderScrolls |
||
Line 92: | Line 92: | ||
PickIdle My name is Bob</pre> | PickIdle My name is Bob</pre> | ||
: | :And in fact, thats what's also true. But the GetCurrentAIPackage worked this time like a return function ... so it didn't execute any code above the first occurrence of GetCurrentAIPackage due to not using it correctly in a compare statement ... but using a valid package name ... just try (the package doesn't need to be related to the NPC) | ||
<pre>GetCurrentAIPackage "ValidPackageName" | <pre>GetCurrentAIPackage "ValidPackageName" | ||
Line 103: | Line 103: | ||
EndIf</pre> | EndIf</pre> | ||
: | :You may want to use the following test sequence with an NPC not related to the used package to verify the problem. You will notice, that the script can't be saved, if no valid package name is given. Also, it may happen, that the script afterwards won't execute anymore. In my case, FramesRun stayed at value 1, even if talking to the NPC - see details of my configuration below. | ||
<pre>short FramesRun | <pre>short FramesRun |