-
Im trying to create a single field that will take one drag and drop of a single roll. Just like how you do all the rolls under <list_text/> but instead of it being a list, its one single item.
<string name="Weapon1">
<anchored to="weapons" position="insidetopleft" offset="30,40" width="100" />
<font>sheetlabel</font>
<class>cli_rolls</class>
<acceptdrop>
<class>cas</class>
<field>*</field>
</acceptdrop>
<frame>
<name>textline</name>
<offset>2,0,2,0</offset>
</frame>
</string>
-
-
1 Attachment(s)
I think i figured it out. I tweaked a version of the cli_rolls class and just added all the weapon stats plus a roll bound to dbdamage. Works good in testing. Its kind of important to do it this way because the attribute links to the weapon skills and that links to the weapon. Each one with its own modifiers being added along the way. Worried it might be too complex without instruction.
Im going to start cleaning things up and try to get a initial copy out there. Hoping to get some feedback.
Attachment 43319
Quick question - is there a way to get the dbdamage to pick up the weapon name?
<stringfield name="weapondmg" >
<anchored to="weaponrng" position="left" offset="20" width="40" />
<tabtarget prev="weaponname" next="weaponrng"/>
<center/>
<frame name="fielddark" offset="7,8,7,8" />
<stateframe>
<hover name="rowshade" offset="7,8,7,8" />
</stateframe>
<script>
function onDoubleClick(x,y)
local dicerolltmp = tostring(window.weapondmg.getValue());
CustomDiceManager.processRoll("dbdamage", dicerolltmp)
end
</script>
</stringfield>
-
Answered my own question .. given enough persistence ..
function onDoubleClick(x,y)
local sParams = tostring(window.weapondmg.getValue());
local rSource = tostring(window.name.getValue());
local rActor = ActorManager.getActor("pc", window.getDatabaseNode().getParent().getParent());
sParams = sParams .." "..rSource;
CustomDiceManager.performAction("dbdamage", nil, rActor, sParams)
end
:)
-
Sorry Pharo I missed that there was a Q in there. Well done!
-
Still so much I want to fix but running out of free time.
Any feedback would be welcome.
-
Thank you so much for the great work you have done. It is bringing back great memories. I was just wondering is it possible to drag and drop advantages and disadvantages on to the character sheet?
-
1 Attachment(s)
Absolutely, I created 2 "add-ons" that have all the Adv/Disads as abilities and the skills as rolls. You just right click in that field and create item.
Attachment 49826
-
Thanks again. Excellent work.
Are the Abilities supposed to be there already or do I have to enter them?
-
My english is not great but i think i understand you made a ruleset for Top Secret S.I. Am i right? Can you share it please?