DICE PACKS BUNDLE
Page 102 of 109 First ... 25292100101102103104 ... Last
  1. #1011
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    How does one get the following to appear using the "custom anchoring" property?

    <bottom parent="" offset="-30" />

    If I put quotes like that, it attempts to escape them:
    <bottom parent="&quot;&quot;" offset="-30" />

  2. #1012

    Join Date
    Nov 2017
    Location
    North Carolina, USA
    Posts
    266
    I am having an inventory issue. When the inventory tab is opened, everything looks as it should (see image)
    base inventory.PNG

    However, as soon as a player attempts to scroll through the inventory (when the number of items extends outside the window, of course), it creates a space between items (see image)
    scroll inventory.PNG

    Any thoughts on why this might be happening?

  3. #1013
    Hi all, after the last update, all my roll are outdated...

    I use this kind of code to manage rolls trough the CT:

    function InitHandler(rSource, rTarget, rRoll)

    local rMessage = ActionsManager.createActionMessage(rSource, rRoll);
    Comm.deliverChatMessage(rMessage);

    if rSource then
    local nTotal = ActionsManager.total(rRoll);
    local nodeChar = rSource.sCreatureNode;

    rCreature = DB.findNode(rSource.sCTNode);

    DB.setValue(nodeChar, "initresult", "number", nTotal);

    end
    end

    "initresult" is a cross-linked field, to bring the rollresult in CT from the NPC/ Charsheet, what isnt working anymore. After the update, FG doesn`t finde "rSource" anymore, so the rolls wouldn`t trigger. Do anyone knows a workaround, I have to use to change my rollfunctions???

  4. #1014
    Quote Originally Posted by Elawyn View Post
    Hi all, after the last update, all my roll are outdated...

    I use this kind of code to manage rolls trough the CT:

    function InitHandler(rSource, rTarget, rRoll)

    local rMessage = ActionsManager.createActionMessage(rSource, rRoll);
    Comm.deliverChatMessage(rMessage);

    if rSource then
    local nTotal = ActionsManager.total(rRoll);
    local nodeChar = rSource.sCreatureNode;

    rCreature = DB.findNode(rSource.sCTNode);

    DB.setValue(nodeChar, "initresult", "number", nTotal);

    end
    end

    "initresult" is a cross-linked field, to bring the rollresult in CT from the NPC/ Charsheet, what isnt working anymore. After the update, FG doesn`t finde "rSource" anymore, so the rolls wouldn`t trigger. Do anyone knows a workaround, I have to use to change my rollfunctions???
    Hi Elawyn,

    Do you mean the 0.8.9 update? I haven't noticed any rSource related problems in the handler functions.


    Can you provide some more information to try to find out the cause of the problem?
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  5. #1015
    Hi psicodelix, yes, 0.8.9.

    here is the error code:

    SC01.png

    i tried to give a screenshot.

    As you can see, there is only my RW extension loaded. I use different kinds of RollHandlers (I leared from your tutorials and damned`s videos). After the update no roll will work. it doesnt trigger the initial "if"..(rSource) / rTarget function.
    second example:

    function AbwehrHandler(rSource, rTarget, rRoll)

    local rMessage = ActionsManager.createActionMessage(rSource, rRoll);
    rMessage.text = rMessage.text;
    if rTarget then
    rMessage.text = rMessage.text .. " gegen " .. rTarget.sName;
    end

    Comm.deliverChatMessage(rMessage);

    rCreature = DB.findNode(rSource.sCTNode);

    if rTarget then
    local rMessageResult = ChatManager.createBaseMessage(rSource, rRoll.sUser);
    rMessageResult.text = rMessage.text;
    local rTarget = DB.findNode(rTarget.sCTNode);
    local nTotal = ActionsManager.total(rRoll);
    local nAngriff = rTarget.getChild("angriff").getValue();
    local nSchaden = rTarget.getChild("sfresult").getValue();
    local nDiff = nAngriff - nTotal;
    local nAP = nAngriff - 20;
    local nTotalschwer = nTotal - 9;
    local nAngriffschwer = nAngriff - 9;
    local nodeChar = rSource.sCreatureNode;
    local nSchwer = math.ceil(nSchaden*nDiff);

    if nSchwer < 0 then
    rCreature.getChild("differenz").setValue(0);
    DB.setValue(nodeChar .. ".differenz", "number", 0);

    elseif nSchwer >= 0 then

    DB.setValue(nodeChar .. ".differenz", "number", nSchwer);

    end

    rCreature.getChild("apschaden").setValue(nAP);
    DB.setValue(nodeChar .. ".apschaden", "number", nAP);

    local nResult = rRoll.aDice[1].result;


    if nResult == 20 and nTotalschwer > nAngriff and nAngriff >= 20 then
    rMessageResult.text = "[KRITISCH] Du hast dem Angriff kritisch erfolgreich abgewehrt, der Angriff hat Dich nicht einmal gestreift und Du hast sogar einen Stellungsvorteil! Leichter Schaden: " .. nAP .. " AP";

    DB.setValue(nodeChar .. ".stellung_number", "number", (2));

    elseif nResult == 20 and nAngriff >= 20 then
    rMessageResult.text = "[KRITISCH] Du hast den Angriff kritisch erfolgreich abgewehrt, der Angriff bleibt in Deiner Deckung haengen! Leichter Schaden: " .. nAP .. " AP";


    elseif nTotal < nAngriffschwer and nAngriff >= 20 then

    rMessageResult.text = "[NACHTEIL] Du bist getroffen und hast dich in eine unvorteilhafte Position gebracht! Schaden: " .. nSchwer .. " leichter Schaden: " .. nAP .. " AP";

    DB.setValue(nodeChar .. ".stellung_number", "number", (-2));

    elseif nTotal < nAngriff and nAngriff >= 20 then

    rMessageResult.text = "[GETROFFEN] Du bist getroffen! Schaden: " .. nSchwer .. " leichter Schaden: " .. nAP .. " AP";

    elseif nTotalschwer > nAngriff and nAngriff >= 20 then

    rMessageResult.text = "[VORTEIL] Du hast die gegnerische Waffe beiseite geschlagen und einen Stellungsvorteil! " .. " leichter Schaden " .. nAP .. " AP";

    DB.setValue(nodeChar .. ".stellung_number", "number", (2));

    elseif nTotal >= nAngriff and nAngriff >= 20 then
    rMessageResult.text = "[ABWEHRERFOLG] Du hast den Angriff erfolgreich abgewehrt! " .. " leichter Schaden " .. nAP .. " AP";
    end

    Comm.deliverChatMessage(rMessageResult);

    end
    end

    if I try to roll from a rollfield from a windowlist, the roll will even not be executed.

    in the CT i have linkedPCFields an use cross-linked number fields to display the results
    Last edited by Elawyn; August 23rd, 2023 at 08:43.

  6. #1016
    Could you tell me which line is 164?
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  7. #1017
    sorry sure.

    "if rTarget then"

    and this is a second line that throws the same error:

    "rCreature = DB.findNode(rSource.sCTNode)"

    an this is the beginning of the rollhandler that will not even be executed:

    "function AngriffHandler(rSource, rTarget, rRoll)
    local rMessage = ActionsManager.createActionMessage(rSource, rRoll);
    rMessage.text = rMessage.text;


    if (rSource) then

    local nTotal = ActionsManager.total(rRoll);
    local nSchaden = rRoll.SF;
    ..."

    so i guess it doesnt finde "rSource"
    Last edited by Elawyn; August 23rd, 2023 at 08:57.

  8. #1018
    perhaps its easier to show the function in RW :

    :SC02.png

    there line 22 throws the error (cant find rSource a nil Value)
    Last edited by Elawyn; August 23rd, 2023 at 09:04.

  9. #1019
    according to your first pic the error is in line 164, could you check it?

    Beautiful ruleset BTW
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  10. #1020
    thank you. and i LOVE RW!!!

    I am sorry, that was another Handler function build the same way. I am a bit excited...

    line 164 was: if rTarget then

    line 165 was: rCreature = DB.findNode(rSource.sCTNode)

    it throws the "rSource a nil Value" error.

    in the second Screenshot with another rollhandler function line 22 ("if rSoucre") causes the error.
    sorry for confusion!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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
  •  
FG Spreadshirt Swag

Log in

Log in