5E Character Create Playlist
Page 5 of 12 First ... 34567 ... Last
  1. #41
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    Use
    Debug.chat("text: ", variable/code);
    and use it liberally

    If you watch (I think) video 13 you will see an example of running a function after the dice have rolled.
    Its the one where I set the Initiative.
    Ofc Initiative doesnt need/use targets but you will see that the functions get passed the following: rSource, rTarget, rRoll

    function InitHandler(rSource, rTarget, rRoll)
    -- Name the function and accept 3 parameters

    So do something like:

    Debug.chat("rSource: ", rSource);
    Debug.chat("rTarget: ", rTarget);
    Debug.chat("rRoll: ", rRoll);

    And then you will clearly see what has been passed to the function

  2. #42

  3. #43
    I used the rTarget.sCreatureNode and it seemed to solve the issue.

  4. #44
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    So... what is sCreatureNode and what is sCTNode?

    sCreatureNode is the charactersheet node
    sCTNode is the node in the Combat Tracker

    Why use one over the other?

    The main one is - NPCs dont have a sCreatureNode - they only exist in the CT
    if you are working with fields that exist in both charsheet and ct then make sure you use CTLink to keep them in sync.
    Some fields might only exist in the CT - like initiative

  5. #45

  6. #46
    Hi Damned,

    Love the project. I am only through the first 6 or 7 videos. Is the goal here to have a completed extension published for MoreCore or is it to give us the step by step for doing it ourselves? I will learn much more that way, so will try to do it. The only real thing that has me intimidated are the graphics.

    Of the rulesets that you have done, how complex is this one? So far it would seem rather on the simple side.
    Senoj -- Ultimate License in FGU/FGC | Roll20 Pro Member
    Currently on hiatus....but wanting to play something.

  7. #47
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    Hi Senoj

    The goal is to get as far as I can before I lose the motivation.
    It is a ruleset/pak and not a MoreCore extension.

    Always start with the simple parts.
    Im not sure if anything that we have done up to part 6 uses any sort of opposed rolls - just mapping out the character sheet and doing rolls without comparing them to anything.
    As go along we will find ourselves revisiting things that we had previously "done" because they were "done to a point" rather than complete.
    Im not envisioning this ruleset to end up being particularly easy.

    Learning the rules for a system that you are unfamiliar with, especially when you are learning the rules to codify them - so you have to get it right, can be a substantial exercise in itself.
    Its definitely best to build a ruleset for a system you know and like.

    The most recent videos are doing more complex things but ultimately its just following a process:
    * how does the mechanic work (in detail)
    * work out how to present the data on the sheet
    * work out the user interaction that will be used - onclick, onclickrelease, ondoubleclick. will everything run from one button/widget or will you build the action with modifiers or checkboxes etc
    * break that down into its smallest steps
    * convert those steps into Lua (or use the RW where it supports it) one at a time with lots of debug

  8. #48
    Sorry, this doesn't belong here.
    Last edited by presence; December 17th, 2020 at 18:47.

  9. #49
    Quote Originally Posted by damned View Post
    Also - screenshots of your ruleset pretty please.
    I have the dicerollHandler handling the post die roll for the weapon attack. What I'm trying to get at is pull information from the Target's characters sheet.
    Basically:
    1) rSource rolls damage
    2) the Result is handled by the the dierollHandler
    3) in the dierollHandler, Access the rTarget character sheet to get the proper armor fields and then construct a roll json for Armor Absorption
    4) perform the Armor Absorption roll and subtract the result from the damage done by the weapon.
    5) apply damage

    Right now I'm attempting to use the following to get the Target sheet reference and then get the value but it returns nil.
    local nTargetSheet = DB.findNode(rTarget.sCTNode);
    local nArmor = nTargetSheet.getChild(nArmorString).getValue();

    charsheetMain.png
    Screen Shot 2020-12-17 at 7.13.48 PM.png

  10. #50
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    Im still prepping the next videos - but they will introduce this topic -

    You should have some more stuff to work with in the next 36 hours - hopefully two videos on the topic.

    Screenshots are looking good!

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
  •  
DICE PACKS BUNDLE

Log in

Log in