Thread: Warhammer Fantasy RPG 4 ed
-
December 3rd, 2020, 14:06 #61
- Join Date
- Jun 2016
- Posts
- 141
It happens in both Classic and Unity.
Here you have the Console Log.
fgu_logs_20201203.zip
-
December 3rd, 2020, 17:59 #62
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Try this one.
I think I kept on uploading the wrong file.
Warhammer_4.ext
-
December 3rd, 2020, 18:37 #63
- Join Date
- Jun 2016
- Posts
- 141
It does work now. Thanks!
But, the Success Level calculation is not working as expected. For instance, if you roll a 29 against a skill of 41, the chat shows a SL 1, instead of 2. I have tried with any other rolls, and sometimes it calculates well, some other times it doesn't.
Anyway, you have done a splendid work so far. Thanks again!
-
December 5th, 2020, 06:41 #64
- Join Date
- Apr 2013
- Posts
- 86
Does anyone have any info about possible official ruleset? I bought foundry for it and it's uhh it's rough to transition, *very* rough. Like I'm not capable of dming there so I'm delaying the campaign rough.
I know you folks are working on it, but I'd just like to know if there is any hope for it becoming official and paid content so I can pay you and use everything needed. Have you had any response from smiteworks? Cubicle 7?Last edited by MMOaddicted; December 5th, 2020 at 06:48. Reason: clarification
-
December 5th, 2020, 07:39 #65
- Join Date
- May 2020
- Posts
- 21
I gotten Foundry WFRP4E as well, pretty well done and executed. Not sure what problems u facing.
I emailed C7 on FG Offical support but the answer is nothing at the moment but things might change in the future.
-
December 5th, 2020, 12:53 #66
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
-
December 6th, 2020, 13:35 #67
- Join Date
- Dec 2017
- Location
- Köln
- Posts
- 17
WFRP4 is the reason, why I bought foundry as well. Publisher support with ready made modules is key. That and the pricing model was the original reason for me to choose FG for DnD. Since I am originally coming from WFRP, I will run foundry a lot more in the future. Will keep using FG for DnD.
-
December 6th, 2020, 20:53 #68
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
I am trying to add a strength modifier to the attack roll.
And I am trying to do use the code that I've learned so far, but I can't make it function and I don't know why.
I have made this code to calculate the total strength (where abilities.ts is total strength).
I can also use the same method to add the total strength to other skills.
Code:function updateS(nodeWin) local nIS = nodeWin.getChild("is").getValue(); local nAS = nodeWin.getChild("as").getValue(); local nTS = (nIS+nAS); Debug.console("nTS: ", nTS); nodeWin.getChild("abilities.ts").setValue(nTS); end
But if I use the same method within the dice roll (as shown below), I get this error: [ERROR] Script execution error: [string "scripts/wh4_damagedr.lua"]:106: attempt to index global 'nodeWin' (a nil value)
Code:function rollDamage(rollValue,successValue) local desc = ""; local value = 0; local lSuccessValue = tonumber(successValue); local nStrength = nodeWin.getChild("abilities.ts").getValue(); local lRollValue = rollValue; if lRollValue <= lSuccessValue then value = math.floor(lSuccessValue/10)-math.floor(lRollValue/10)+nStrength; desc = string.format("Dmg: %d", value) else desc = ""; end return desc; end
Because the roll and strength is done in two different windows? I am a bit lost here.
Code:function action(draginfo) local rActor = ActorManager.getActor("pc", window.getDatabaseNode()); AttackRoll.performRoll(draginfo, rActor, stat[1]); return true; end function onDragStart(button, x, y, draginfo) return action(draginfo); end function onDoubleClick(x,y) return action(); end
-
December 6th, 2020, 21:28 #69
immediately after function updateS(nodeWin)
add the following line
local nodeWin = window.getDatabaseNode();
Actually - updateS is expecting you to pass nodeWin to it
What is calling updateS? Can you post that code too?
-
December 7th, 2020, 09:34 #70
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
I have been using "updateS" to update a value on the character sheet.
I've been using this solution for most values in the character sheet.
It's the same method you've shown in your video .
https://www.youtube.com/watch?v=RiBk...erBvW3&index=6
Code:<totalchar name="ts" source="abilities.ts"> <anchored to="as" position="insidetopleft" offset="0,28" width="18" /> <tooltip text="Strength Skill" /> <target>ts</target> <statname>Strength Skill</statname> <stat>ts</stat> <script> function onInit() local nodeWin =window.getDatabaseNode(); CharacterUpdate.updateS(nodeWin); end </script> </totalchar>
And the value in "abilities.ts" I can use to update other skills ex. Climb (which is "skills.cli" shown in the code below).
Code:function updateCLIMB(nodeWin) local nCLM = nodeWin.getChild("climb_adv").getValue(); local nS = nodeWin.getChild("abilities.ts").getValue(); local nCLMT = (nCLM+nS); Debug.console("nCLMT: ", nCLMT); nodeWin.getChild("skills.cli").setValue(nCLMT); end
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks