-
July 3rd, 2023, 05:53 #1011
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="""" offset="-30" />
-
August 4th, 2023, 14:30 #1012
- Join Date
- Nov 2017
- Location
- North Carolina, USA
- Posts
- 269
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?
-
August 23rd, 2023, 07:48 #1013
- Join Date
- May 2020
- Posts
- 46
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???
-
August 23rd, 2023, 08:05 #1014
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
August 23rd, 2023, 08:39 #1015
- Join Date
- May 2020
- Posts
- 46
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 resultsLast edited by Elawyn; August 23rd, 2023 at 08:43.
-
August 23rd, 2023, 08:47 #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
-
August 23rd, 2023, 08:48 #1017
- Join Date
- May 2020
- Posts
- 46
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.
-
August 23rd, 2023, 09:02 #1018
- Join Date
- May 2020
- Posts
- 46
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.
-
August 23rd, 2023, 09:05 #1019
according to your first pic the error is in line 164, could you check it?
Beautiful ruleset BTWRuleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
August 23rd, 2023, 09:10 #1020
- Join Date
- May 2020
- Posts
- 46
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)
Bookmarks