Thread: MoreCore Ruleset
-
March 29th, 2020, 02:37 #2001
-
March 29th, 2020, 04:42 #2002
damned The links in the chat window for your info text are not working in FGU. The one for the new MC theme does work if you double-click it.
--
I'm so bassic
-
March 29th, 2020, 05:00 #2003
-
March 29th, 2020, 10:35 #2004
- Join Date
- Sep 2017
- Location
- France (Gard)
- Posts
- 44
hello,
can you check manager_action_ability
I must have forgotten a ligne of code or I did not place the line of code that you gave me
thank thank
function onInit()
CustomDiceManager.add_roll_type("vermine", performAction, onLanded, true, "all");
end
function getDieMax(sType)
Debug.console("getDieMax: ", sType);
local sDie = string.match(sType, "d(%d+)");
if tonumber(sDie) > 1000 then
tempmax = tonumber(sDie);
while tempmax > 20 do
tempmax = tempmax - 1000;
end
else tempmax = tonumber(sDie);
end
max = tempmax;
return max;
end
function performRoll(draginfo, rActor, nSkillLev, sAbilityStat, bSecretRoll)
local rRoll = { };
local sDesc1, nMod = ModifierStack.getStack(true);
rRoll.sType = "vermine";
rRoll.aDice = { };
rRoll.nMod = 0;
rRoll.nSkillLev = nSkillLev;
rRoll.sDesc = "";
rRoll.sDesc = rRoll.sDesc .. " " .. StringManager.capitalize(sAbilityStat);
local count = nSkillLev;
Debug.console("count:", count);
while count > 0 do
table.insert(rRoll.aDice, "d10");
count = count - 1;
end
rRoll.bSecret = bSecretRoll;
ActionsManager.performAction(draginfo, rActor, rRoll);
end
function initLastDice(aDice)
aSavedDice = {};
for i , v in ipairs (aDice) do
aSavedDice[i] = { type=v.type, result=0, exploded=true };
end
return aSavedDice;
end
function onLanded(rSource, rTarget, rRoll, nSkillLev)
Debug.console("onLanded: ", rSource, rTarget, rRoll);
if not nSuccesses then nSuccesses = 0;
end
if not nFails then nFails = 0;
end
local nMod = ModifierStack.getSum();
local nSuccessLevel = nMod + 5;
for i , v in ipairs (rRoll.aDice) do
if rRoll.aDice[i].result == 10 then
nSuccesses = nSuccesses + 1;
elseif rRoll.aDice[i].result >= nSuccessLevel then
nSuccesses = nSuccesses + 1;
elseif rRoll.aDice[i].result < nSuccessLevel then
nFails = nFails + 1;
end
end
rRoll.nFails = nFails;
rRoll.nSuccesses = nSuccesses;
rRoll.nSuccessLevel = nSuccessLevel;
Debug.console("nSuccesses1: ", nSuccesses, " nFails1: ", nFails, "nSuccessLevel1:", nSuccessLevel);
local rMessage = ActionsManager.createActionMessage(rSource, rRoll, sDesc1);
rMessage = createChatMessage(rSource, rRoll, sDesc1);
rMessage.type = "dice";
rMessage.text = rMessage.text .. "\nDiff = ".. rRoll.nSuccessLevel;
rMessage.text = rMessage.text .. "\nSucces: " .. rRoll.nSuccesses;
if nSuccesses == 0 then
rMessage.text = rMessage.text .. "\n[Echec]";
end
Comm.deliverChatMessage(rMessage);
nSuccesses = nil;
nFails = nil;
end
function createChatMessage(rSource, rRoll)
local rMessage = ActionsManager.createActionMessage(rSource, rRoll);
rMessage.dicedisplay = 0;
return rMessage;
end
-
March 29th, 2020, 12:28 #2005
-
March 29th, 2020, 14:32 #2006
- Join Date
- Sep 2017
- Location
- France (Gard)
- Posts
- 44
exp : attribute 4 --- d10
4d10>= Difficulty medium 5 = number of Successses >= 5
Modcollector ? add difficulty +1 exp Difficulty 6 = Difficulty medium 5 +1 (modcollector) = difficulty total 6
-
March 29th, 2020, 14:59 #2007
meguido - basics please
what is the command string you are using?
can you describe the roll in english - as in tell me how it works
-
March 29th, 2020, 15:13 #2008
- Join Date
- Sep 2017
- Location
- France (Gard)
- Posts
- 44
we Rolls xd10 according to characteristic against an average difficulty 5 with possibility of difficulty from 3 to 15
i want to add difficulty to modcollector and integrated to manager_action_ability.lua
-
March 29th, 2020, 15:20 #2009
what is the roll string you are using?
so you want to roll xd10.
how do you get the x number?
is it from one source or two sources or any number of sources?
how do you get successes if teh difficulty is 11 or greater?
-
March 29th, 2020, 15:42 #2010
- Join Date
- Sep 2017
- Location
- France (Gard)
- Posts
- 44
how do you get the x number? Attributes : 1 to 3 max
is it from one source or two sources or any number of sources? source = attribute
how do you get successes if teh difficulty is 11 or greater? difficulty 3 ,5, 7, 9, 10 max and 1 or + sucessesLast edited by meguido; March 29th, 2020 at 15:52.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks