STAR TREK 2d20
Page 4 of 6 First ... 23456 Last

Thread: TopSecret SI

  1. #31
    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>

  2. #32

  3. #33
    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.

    weaponstest.png

    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>
    Last edited by Pharo; January 29th, 2021 at 06:02.

  4. #34
    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


  5. #35

  6. #36
    Still so much I want to fix but running out of free time.

    Any feedback would be welcome.
    Last edited by Pharo; March 12th, 2021 at 01:58.

  7. #37
    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?
    If we do not succeed we risk the chance of failure.

  8. #38
    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.

    adv-disad.png

  9. #39
    Thanks again. Excellent work.
    Are the Abilities supposed to be there already or do I have to enter them?
    Last edited by dittotb; November 5th, 2021 at 20:34.
    If we do not succeed we risk the chance of failure.

  10. #40
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in