Toxical
August 24th, 2016, 10:57
Hello,
first I want to apologize for my bad english.
I am a complete novice with FG and the modification of rulesets. Nevertheless, I would like to try the PFRPGModul and the ruleset in German dictionary.
Now to my problem:
When I create a new char is the value of the armor class immediately at 20.
But in the rules, is likely to be of value only 10. (10 + armor bonus + shield bonus + Dexterity modifier + other modifiers)
So he transfers the total value of Dexterity and not the modifier to the armor class.
One can also see in the simply increasing the value. With each point, the AC increases.
when I look at the function, I see only one call to the total value.
<template name="number_chartotalac">
<number_chartotalwithability>
<description textres="ac" />
<modifiersize>mini</modifiersize>
<modifierfield>ac.sources.temporary</modifierfield>
<source><name>ac.sources.armor</name><op>+</op></source>
<source><name>ac.sources.shield</name><op>+</op></source>
<source><name>ac.sources.size</name><op>+</op></source>
<source><name>ac.sources.naturalarmor</name><op>+</op></source>
<source><name>ac.sources.deflection</name><op>+</op></source>
<source><name>ac.sources.dodge</name><op>+</op></source>
<source><name>ac.sources.misc</name><op>+</op></source>
<source><name>encumbrance.armormaxstatbonusactive</name></source>
<ability><source>ac.sources.ability</source><default>dexterity</default></ability>
<ability><source>ac.sources.ability2</source></ability>
<script>
function onSourceUpdate()
local nMaxMod = -1;
local bMaxActive = sources["encumbrance.armormaxstatbonusactive"].getValue();
if bMaxActive > 0 then
nMaxMod = sources["encumbrance.armormaxstatbonus"].getValue();
end
local nAbility = getAbilityBonus(nMaxMod);
setValue(10 + calculateSources() + nAbility);
end
</script>
</number_chartotalwithability>
</template>
I have not got a great experience with XML or LUA…
So could anyone help me what is wrong? Or I'm looking at a completely wrong location?
Hallo,
der ganze Text nochmal in Deutsch vllt. kann mir auch jemand auf meiner Sprache helfen.
Als erstes ich bin ein kompletter Neuling in der Bearbeitung von Ruleset etc. also nehmt es mir bitte nicht krumm wenn ich was nicht verstehe.
Mein Problem liegt bei der Char Erstellung mit dem Ruleset von PFRPG.
Sobald ich einen neuen Char erstelle, legt er mir die RK sofort auf 20 was soweit ich weiß falsch ist.
Er dürfte doch ohne weitere Angaben (Rüstung, Größe etc.) nur bei 10 liegen oder?
Was mir aufgefallen ist, das Programm nimmt immer den kompletten GE-Wert und addiert ihn auf die RK. (sieht man sehr schön wenn ich den Wert erhöhe denn die RK geht immer um den gleichen Wert mit)
Wenn ich mir den Code (siehe oben) angucke sehe ich auch nur einen Aufruf für den Gesamtwert der GE und nicht vom GE-MOD.
Ist da jetzt ein Fehler im Code? Oder suche ich an der komplett falschen Stelle?
Könnt ihr mir da weiterhelfen?
Vorweg durch FG bin ich zum ersten mal mit XML bzw. LUA in Berührung gekommen also, wie oben erwähnt, werde ich nicht alles sofort verstehen^^
first I want to apologize for my bad english.
I am a complete novice with FG and the modification of rulesets. Nevertheless, I would like to try the PFRPGModul and the ruleset in German dictionary.
Now to my problem:
When I create a new char is the value of the armor class immediately at 20.
But in the rules, is likely to be of value only 10. (10 + armor bonus + shield bonus + Dexterity modifier + other modifiers)
So he transfers the total value of Dexterity and not the modifier to the armor class.
One can also see in the simply increasing the value. With each point, the AC increases.
when I look at the function, I see only one call to the total value.
<template name="number_chartotalac">
<number_chartotalwithability>
<description textres="ac" />
<modifiersize>mini</modifiersize>
<modifierfield>ac.sources.temporary</modifierfield>
<source><name>ac.sources.armor</name><op>+</op></source>
<source><name>ac.sources.shield</name><op>+</op></source>
<source><name>ac.sources.size</name><op>+</op></source>
<source><name>ac.sources.naturalarmor</name><op>+</op></source>
<source><name>ac.sources.deflection</name><op>+</op></source>
<source><name>ac.sources.dodge</name><op>+</op></source>
<source><name>ac.sources.misc</name><op>+</op></source>
<source><name>encumbrance.armormaxstatbonusactive</name></source>
<ability><source>ac.sources.ability</source><default>dexterity</default></ability>
<ability><source>ac.sources.ability2</source></ability>
<script>
function onSourceUpdate()
local nMaxMod = -1;
local bMaxActive = sources["encumbrance.armormaxstatbonusactive"].getValue();
if bMaxActive > 0 then
nMaxMod = sources["encumbrance.armormaxstatbonus"].getValue();
end
local nAbility = getAbilityBonus(nMaxMod);
setValue(10 + calculateSources() + nAbility);
end
</script>
</number_chartotalwithability>
</template>
I have not got a great experience with XML or LUA…
So could anyone help me what is wrong? Or I'm looking at a completely wrong location?
Hallo,
der ganze Text nochmal in Deutsch vllt. kann mir auch jemand auf meiner Sprache helfen.
Als erstes ich bin ein kompletter Neuling in der Bearbeitung von Ruleset etc. also nehmt es mir bitte nicht krumm wenn ich was nicht verstehe.
Mein Problem liegt bei der Char Erstellung mit dem Ruleset von PFRPG.
Sobald ich einen neuen Char erstelle, legt er mir die RK sofort auf 20 was soweit ich weiß falsch ist.
Er dürfte doch ohne weitere Angaben (Rüstung, Größe etc.) nur bei 10 liegen oder?
Was mir aufgefallen ist, das Programm nimmt immer den kompletten GE-Wert und addiert ihn auf die RK. (sieht man sehr schön wenn ich den Wert erhöhe denn die RK geht immer um den gleichen Wert mit)
Wenn ich mir den Code (siehe oben) angucke sehe ich auch nur einen Aufruf für den Gesamtwert der GE und nicht vom GE-MOD.
Ist da jetzt ein Fehler im Code? Oder suche ich an der komplett falschen Stelle?
Könnt ihr mir da weiterhelfen?
Vorweg durch FG bin ich zum ersten mal mit XML bzw. LUA in Berührung gekommen also, wie oben erwähnt, werde ich nicht alles sofort verstehen^^