Starfinder Playlist
  1. #1

    Trying to get ct node from rSource

    i in the manager_action_stat.lua script the function is

    function modRoll(rSource, rTarget, rRoll)

    I am trying to get the CT node I have tried

    nodeCT = ActorManager.getCTNode(rSource);
    nodeCT = ActorManager.getCTNode(rTarget);

    none work. Any ideas? thanks.

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    27,110
    Blog Entries
    1
    So the first thing you want to do is discover what is being received in the function.

    Code:
    function modRoll(rSource, rTarget, rRoll)
      Debug.chat("rSource: ", rSource);
      Debug.chat("rTarget: ", rTarget);
      Debug.chat("rRoll: ", rRoll);
    end

  3. #3
    Also, is the source actor being passed in the original roll?
    Code:
    function performRoll(draginfo, rActor, sSave)
    	local rRoll = ActionSave.getRoll(rActor, sSave);
    	ActionsManager.performAction(draginfo, rActor, rRoll);
    end
    Regards,
    JPG

  4. #4
    Quote Originally Posted by Moon Wizard View Post
    Also, is the source actor being passed in the original roll?
    Code:
    function performRoll(draginfo, rActor, sSave)
    	local rRoll = ActionSave.getRoll(rActor, sSave);
    	ActionsManager.performAction(draginfo, rActor, rRoll);
    end
    Regards,
    JPG
    I figured it out, it was rSource I just had wonky code. THanks.

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 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
  •  
DICE PACKS BUNDLE

Log in

Log in