Difference between revisions of "Debug Scripts"
no edit summary
imported>AdiBeiElderScrolls |
imported>AdiBeiElderScrolls |
||
|
----
''Unknown user comment''
:But the script saved without any problems and ingame I didn't get a message that something went wrong. This is because the compiler frequently ignores extra parameters. For instance, these lines, while incorrect, compile fine:
<pre>disable objectID 1
PickIdle My name is Bob</pre>
:Yep, in fact, thats what I say. The GetCurrentAIPackage worked this time like a return function ... so it didn't execute any code above the first occurrence of GetCurrentAIPackage due to the use of no (valid) parameters ... just try
<pre>GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?"
PickIdle My name is Bob</pre>
:Or
<pre>If ( GetCurrentAIPackage "AnyParameterNotValid-ButMaybeValidPackageName?" )
; against invalid parameters</pre>
:So you see, some functions have unwanted behavior, not foreseen and others don't! But probably the circumstance, that object name was within apostrophes caused other unexpected event handling?
:Details: Using localized german version, with Update German V1.1, Plugin Oblivion Deutsch 3.0, BTMod 2.20 - also maybe plugin malfunctions?
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 14:14, 13 November 2006 (EST)▼
:P.S.: Would have been nice, if you would have left a notice of yourself. Just add four times the ~ sign at the end of your message ... so I maybe able to contact and discuss with you ... thanks anyway for the comment ... made the nature of the problem more clear ;)
----
| |||