Problem with your NpcEngine.
Im getting a System.NullRefrenceException exception at
It must be the script
I might like to add ive added it into my source and theres no errors.
Also, I love the way you handle commands!
Im getting a System.NullRefrenceException exception at
Code:
CompiledScript Script = Engine.CompileScript(processfile);
Code:
' Scripted by DreadNought
' Npc: Test
Imports System
Imports ConquerScriptLinker
Partial Public Class NpcEngine
Public Shared Sub TestNPC()
Dim dlg As String() = Nothing
Select Case OptionID
Case 0
ReDim dlg(2)
dlg(0) = "TEXT If you are seeing this then it will make DreadNought happy!"
dlg(1) = "OPTION1 Happy Happy Happy!"
dlg(2) = "OPTION-1 Haha fuck off."
Case 1
ReDim dlg(1)
dlg(0) = "TEXT He is very Happy!"
dlg(1) = "OPTION-1 Goody Goody Godyy!!"
End Select
If Not dlg Is Nothing Then
Dialog(dlg)
End If
End Sub
End Class
Also, I love the way you handle commands!