DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #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?

  2. #12
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,430
    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!

  3. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in