-
September 21st, 2007, 23:10 #31
Has anyone figured out how to get the cascade skill description displaying in the automatic die roll? I get the skill name, but not the entered description for cascade skills.
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
September 22nd, 2007, 09:28 #32
- Join Date
- Jun 2007
- Location
- Zeist, Netherlands
- Posts
- 286
I have no idea what you're talking about.... what do you mean by cascading skill descriptions?
-
September 22nd, 2007, 20:27 #33
The additional descriptions for Knowledge, Profession, Craft etc.
The bit that you type in.Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
September 23rd, 2007, 12:03 #34
- Join Date
- Sep 2007
- Posts
- 8
Hi,
I tried to add the call to d20Check on the ChatManager at a higher level.
So I added the following function at the bottom of the scripts/template_linkednumber.lua
Code:function onDoubleClick(x,y) if self.description == nil then ChatManager.d20Check("d20", getValue(), "Not Identified"); else ChatManager.d20Check("d20", getValue(), self.description[1].text[1]); end return true; end
however for some reason the skill check total modifiers are not 'linked numbers' so it doesn't work there.
Some numbers don't have a description that's why there's an extra if statement.
Anyway .. it's only marginally useful....
cheers,
maarten
-
September 30th, 2007, 23:39 #35
I found the code I needed for the cascade skills in the drag and drop functionality. This produces a roll description of, for example, Knowledge (Culture) instead of just Knowledge.
[EDIT]
In the charsheet_skills.xml file, add the following under the script section for the <numberfield name="total">
Code:function onDoubleClick(x,y) local label = window.getDatabaseNode().getChild("label").getValue(); local sublabel = window.getDatabaseNode().getChild("sublabel").getValue(); local desc = label; if not sublabel or sublabel ~= "" then desc = label .. " (" .. sublabel .. ")"; end ChatManager.d20Check("d20", getValue(), desc); return true; end
Last edited by Valarian; October 1st, 2007 at 12:08.
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
October 1st, 2007, 09:27 #36
- Join Date
- Jul 2007
- Posts
- 109
@valarian
Where do you put this new code ?
thank you
-
October 1st, 2007, 12:07 #37
Sorry ... this replaces the code in the charsheet_skills.xml file, under the script section for the <numberfield name="total">, posted by Joshuha in his original posting.
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
October 1st, 2007, 21:18 #38
- Join Date
- Jul 2007
- Posts
- 109
@valarian
Thank you
Edit:
Work well, thank youLast edited by zifnab69_fr; October 3rd, 2007 at 10:12.
-
October 15th, 2007, 00:04 #39
An enhancement for the chatmanager.lua to add functionality to roll multiple dice. Add it under the d20Check function.
Code:function dieCheck(number, type, bonus, name) if control then local dice = {}; for i = 1, number, 1 do table.insert(dice, type); end control.throwDice("dice", dice, bonus, name); end end
Code:<script> function onDoubleClick(x,y) ChatManager.dieCheck(2, "d6", getValue(), window.influence.getValue()); return true; end </script>
Using Ultimate license - that means anyone can play.
Valarian's Fantasy Grounds Rulesets
-
October 15th, 2007, 17:52 #40
- Join Date
- Jul 2007
- Posts
- 109
Hello
in witch file must we add
<script>
function onDoubleClick(x,y)
ChatManager.dieCheck(2, "d6", getValue(), window.influence.getValue());
return true;
end
</script>
or in In the charsheet_template.xml, the charsheet_skills.xml file,...
Thank you
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks