I've seen a few mods that somehow managed to call a function from a different script but I'm unable to do this myself.
Basically I have this main script:
Scriptname MainScript extends Quest{Main Script}ScriptTest Property test Autoint x = 0x = test.counter(x)
And want to call a function from this test script:
Scriptname TestScript extends Quest {Test Script}int function counter(int x) x += x return xEndFunction
However the compiler always throws out the error that "no viable input at '.'".
What do I have to do to be able to call a function from another script?