Thread: Implementing a CT under CoreRPG
-
March 12th, 2015, 01:41 #11
Trenloe, (or anyone else who knows the answer to this one), what is the precise syntax of calling the functions from the targeting manager? I tried the usual TargetingManager.getFullTargets() but it doesn't recognize it saying that the function isn't global. I was under the impression that the scope of the Managers were global, not local, and that you could access the function with the dot routine. Am I doing something wrong?
Aliens.... Go fig?
-
March 12th, 2015, 03:18 #12
Look in the base.xml file in the root of the ruleset/s involved (including CoreRPG). There will be a <script> definition for the LUA file in question - this will give name="XXXXXX" where XXXXXXX is the name of the global script package to use. The use <Global package name>.<global package function name> to call it - remember to get case sensitivity right.
Be careful where you call this - if you have it in onInit code then it might be that the global package hasn't been built yet.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 12th, 2015, 03:20 #13
Thanks.
SF
EDIT: I've tried incorporating the CoreRPG into the base as "TargetingManager". When I make the call, (not onInit() ) I still get the same result of not having a global function available. The case sensitivity is correct. The results, however, aren't.Last edited by S Ferguson; March 12th, 2015 at 03:28.
Aliens.... Go fig?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks