Cosmere RPG Beta Launch
Page 111 of 114 First ... 1161101109110111112113 ... Last
  1. #1101
    Quote Originally Posted by Brotherkelly View Post
    This almost worked.

    I needed to add it into an onInit function and it shows the text every time.

    Thanks superteddy57.
    Oh yeah, the first set needs onInit(). You could take it further with what damned said into this:

    Code:
    function onInit()
        updateTooltip();
    end
    
    function onValueChanged
        updateTooltip();
    end
    
    function updateTooltip()
        self.setTooltipText(getValue());
    end
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  2. #1102
    Thanks.

  3. #1103
    Quote Originally Posted by Urheil View Post
    I create a new extension. Tried to add a new window and crashed.
    Reopen the demo version. Tried to open the created extension (basicaly the empty one just created) and couldn't because it said it's a demo version.

    Is this known issue or an expected behavior?

    The part that crashed, i guess it's not ok.

    I was trying to duplicate the video :
    https://www.youtube.com/watch?v=a40sQ-DDyKU


    I'm getting very frustrated while trying to understand how creating extensions works
    Hi, sorry, I've been on vacation for a few days with almost no access to a computer.


    Indeed the demo version does not allow to load or save projects, but it should not produce any crash. Could you tell me how to reproduce this error?


    On the other hand, creating an extension can be simple or very complex, what do you want to achieve?
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  4. #1104
    Hi, i really need some help... I got some homemade rules and want to make a ruleset with Ruleset Wizard. But i got stuck. In my ruleset success of throwing dices - 6. In one throw can be 1 or 10+ dices. I want FG to check the result and massage in chat how much you got. But it always says "0 success"

    code:
    function resultHandler(rRoll)
    local successes = 0


    for _, diceResult in ipairs(rRoll.aDice or {}) do
    if diceResult.result == 6 then
    successes = successes + 1
    end
    end

    local message = string.format("successes: %d", successes)
    Comm.addChatMessage({text = message, sender = rRoll.sUser or ""})
    end
    I would be very grateful if you could help me
    Last edited by Koshaker; September 15th, 2024 at 21:21.

  5. #1105

  6. #1106
    Thanks! its was so easy, i feel myself a little shame... well, gonna try make next step by myself) its like take result of previous roll, take all dice exept 1 and 6 result, reroll it, count 1 and 6 from bouth rolls and decide wich of them more)

    p.s. Your tutorials are amazing!

  7. #1107
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    27,091
    Blog Entries
    1
    Building auto-rerolling of a smaller set of dice is harder.
    What I would do is:

    1. Perform first roll
    2. Count 1s and 6s and remaining dice and store them on a field on char/npc sheet
    3. Make the remaining dice field rollable
    4. it will roll remaining dice and add to 1s and 6s, declare result and then clear 1s, 6s and remaining from the character sheet

  8. #1108

  9. #1109
    note that the signature of the handler function is not as you have used it, but like this


    function onRollResult(rSource, rTarget, rRoll)


    probably that's why it didn't work, because instead of processing the roll you were processing the source.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  10. #1110
    I was trying to use the built-in FGButton function on the constitution parameter, so that after the roll " {body_current} + d6s6 " it would trigger the script from "Result handler function name"

    function onRollResult(rSource, rTarget, rRoll)
    local playerNode = DB.findNode(rSource.sCTNode)
    if playerNode then
    playerNode.getChild("lastRoll").setValue(rRoll.nTo tal)
    end
    end
    but its give me error about " String "Frontier:Scripts/RollResult.lua" :2: FindNode: Invalid parameter 1

    i used GPT to find out, what can i do to solve this problem, but it was useless.

    biggest part of time, i spend by trying use "rRoll.aDice" and save result by this function.
    Last edited by Koshaker; September 17th, 2024 at 23:34.

Page 111 of 114 First ... 1161101109110111112113 ... Last

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Tags for this Thread

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