Search:

Type: Posts; User: cche

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    801

    Finally got something to work, I think... I...

    Finally got something to work, I think...

    I turneds OFF Turns in the main user interface before I start. Then starting the game properly set the player. Will continue to test, but at least it...
  2. Replies
    4
    Views
    363

    In this case you have too many objects (hits) in...

    In this case you have too many objects (hits) in the range of the cast. I am not sure what the limit is, but you're hitting it.
  3. Replies
    9
    Views
    801

    I am in the same place as decumanusmaximus; I...

    I am in the same place as decumanusmaximus; I can set the player order and set the current player, but turns system button does not move with Turns.turn_color.
    What I want to do is experiment with...
  4. Replies
    9
    Views
    801

    Been distracted. Will look at it again this week.

    Been distracted. Will look at it again this week.
  5. Replies
    9
    Views
    801

    The Turns interface kind-sorta works. When I...

    The Turns interface kind-sorta works. When I finally manage to set Turns.order and turn_color, it moves the star to the correct player, but the End Turn button still stays on my screen. If I click...
  6. Not to mention that when you get that pop-up, you...

    Not to mention that when you get that pop-up, you have no idea what will be randomized. (or at least I certainly don't!)
  7. Replies
    9
    Views
    733

    flexing the code

    sorting a single type is not too hard with this script.
    Make a table


    targetZonesSingle = {
    ['what, to, look, for'] = 'zoneID',
    ['other'] = getObjectFromGUID('otherZoneID')
    }
  8. Thread: minor bug report

    by cche
    Replies
    0
    Views
    458

    minor bug report

    In the notebook, and description of the board object,

    "double tap F4 no longer works, as the index of the zone tool changed in update 10.9 -- the pixelpaint tool is gone. It is now "double tap F3"
  9. There are attributes that set who can see your UI...

    There are attributes that set who can see your UI elements, however the default is visible to everyone.
    Take a look here: https://api.tabletopsimulator.com/ui/attributes/ and then look over the...
  10. Thread: PDF Rulebook

    by cche
    Replies
    3
    Views
    454

    This is already available in the form of the...

    This is already available in the form of the tablet. You can enter any URL on it.
    This is better than just a PDF thing, it does a pretty good job with any web doc.

    There is also a button on it...
  11. Replies
    9
    Views
    733

    A cautionary tale, but this works. (badly but clearly :-) )

    Well I started to write this for you, but the new Wait class had me stumped.
    I couldn't get takeObject callbacks to work at all either. I think I may know why but leave that for another day.
    The...
  12. We'll miss you! Thanks for all the great mods...

    We'll miss you! Thanks for all the great mods and suggestions!
  13. I am unclear why the line tool would be used for...

    I am unclear why the line tool would be used for voting; how are you using it?

    My thought is to vote by hovering over a card and press a scripting key.

    You could also use an XML drop box with a...
  14. Replies
    0
    Views
    336

    Turns for one player again

    I now find that when there is only one player, Turns doesn't trigger the onPlayerTurn() function.

    I really need onPlayerTurn() to trigger EVERY time the End Turn button is pressed, even if...
  15. Replies
    3
    Views
    1,526

    If I understand your question correctly, you want...

    If I understand your question correctly, you want the MOD backup tool. It collects all the assets your mod uses in a single package. Both packs and unpacks to/from local disk, as well as collecting...
  16. All the text box knows about is strings. To do...

    All the text box knows about is strings.

    To do maths with them, you must first convert to numbers.

    To convert strings to numbers, use tonumber(string)
    to convert a number to a string, use...
  17. Hmmm had a thought about the siding in issue:...

    Hmmm had a thought about the siding in issue:
    Perhaps the effect is limited to the containing elements? Maybe put it in its own transparent panel bigger than the screen?
    Just a thought, no time to...
  18. Replies
    25
    Views
    13,144

    Sticky: Laying things out in rows and columns; a cautionary tale

    I am occasionally caught by Lua's table handling...
    When I wrote this in a naive way, I wrote:


    function spread(player)
    local deck = Player[player].getHoverObject()
    local anchor =...
  19. isOn is the attribute you can set at UI...

    isOn is the attribute you can set at UI initialization.
    onValueChanged() apparently has two undocumented parameters.

    On my workbench mod,...
  20. Replies
    3
    Views
    394

    I needed custom Turns order

    @ onelivesleft: AHA! I am.

    I also learned that in order to affect Turns.order you must set Turns.type=2; otherwise it doesn't complain, it just doesn't work.
    I don't even need to set...
  21. Replies
    3
    Views
    394

    Turns for one player

    Using the Turns class in my game, I kept getting "Attempt to index a nil value" at around line 1766 in my script when the number of players is one. (The script has less than 1000 lines.)
    This game...
  22. WOW this is great THANK YOU!

    WOW this is great THANK YOU!
  23. I did a little more tinkering and made a counter....

    I did a little more tinkering and made a counter.
    https://steamcommunity.com/sharedfiles/filedetails/?id=1445564625

    (I use this upload for different things... You can do a save object on the...
  24. Got a button for you

    After a not too awful learning curve, I have this:

    Put this into the LUA script on your counter.


    function resetLives()
    self.setValue(20)
    end

    function onLoad(saveInfo)
  25. Replies
    3
    Views
    319

    Sure enough! thank you. I don't even know how...

    Sure enough! thank you. I don't even know how that comma got in there!
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4