Search:

Type: Posts; User: Skorpion9x

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    3,314

    Another chat tab that you could use scripting to...

    Another chat tab that you could use scripting to write to would be really cool. I was going to try to make a log for my poker table that uses a notebook tab, but had trouble getting it to work.
  2. Replies
    1
    Views
    1,069

    Disable new 'draw' and 'deal' feature

    There should be a permissions toggle to disable players from using the new 'draw' and 'deal' functions on non-card objects, or it should just plain not work on objects without 'hands' toggled. As it...
  3. use \n for a carriage return, and just put a \ in...

    use \n for a carriage return, and just put a \ in front of quotes/apostrophes.

    Example:
    object.setDescription('Decription\'s first line\nDescription\'s \"second\" line')
    creates the description:
  4. Okay I've had a chance to test scripted objects...

    Okay I've had a chance to test scripted objects and loot bags. I put a simple script that prints to chat in the onload function on the object, put it into the bag, and pulled it out. It worked. I...
  5. You can also just use string.format("%.2f", x)...

    You can also just use string.format("%.2f", x) where x is your variable, and the "%.2f" is what tells it to use two decimal places. You can change the 2 to however many decimal places you want it to...
  6. You can add scripts to scripting zones by editing...

    You can add scripts to scripting zones by editing the json file (if you add anything there and save the file, then load the game, it should show up in the in-game editor so you can write your actual...
  7. Replies
    10
    Views
    3,504

    You can use getValue() on standard poker chips...

    You can use getValue() on standard poker chips (returns the value of the chip), and getQuantity() to get the quantity of chips in a stack (returns -1 if it's a single chip)
  8. Replies
    2
    Views
    1,602

    You can just use getValue() on the chip or...

    You can just use getValue() on the chip or chipstack. It returns 10 for $10 chips, 50 for $50, and so on.

    Third time typing this because I keep clicking the big red 'Reply to Thread' button and...
  9. Replies
    2
    Views
    1,602

    spawnObject mesh index

    I would love to have the ability to set the mesh index for spawned objects that use them (mahjong tiles, for example). As of right now, spawning a mahjong tile always spawns the 1pin tile...
  10. Replies
    10
    Views
    3,834

    I made this tool that lets you mess with tables....

    I made this tool that lets you mess with tables.

    http://steamcommunity.com/sharedfiles/filedetails/?id=854332383
  11. Replies
    12
    Views
    3,249

    I'm not at home so I can't test, but maybe the...

    I'm not at home so I can't test, but maybe the center of the tile is 0, 0, 0; so try 0 instead of -0.05. If that doesn't work, maybe try making it thicker. I've noticed that if you have a hidden...
  12. I had the same problem with my poker table. It...

    I had the same problem with my poker table. It seems that when you change the image, it doesn't re-import the object, so it doesn't update like you'd expect it to. What I had to do was copy the...
  13. Replies
    1
    Views
    1,447

    You need to put the top stuff into the onLoad...

    You need to put the top stuff into the onLoad function:

    madnessBag_guid = '14a041'

    function onload()
    madnessBag = getObjectFromGUID(madnessBag_guid)

    ...
  14. Replies
    3
    Views
    1,574

    I just use os.clock. Example: ...

    I just use os.clock. Example:


    local t = os.clock()
    while os.clock() < (t + wait_time_in_seconds) do
    coroutine.yield(0)
    end
  15. Replies
    3
    Views
    1,915

    I'm aware that you have to use a callback...

    I'm aware that you have to use a callback function, which is exactly what I did, as I said in the OP. The thing I'm pointing out is that the spawnObject function accepts a rotation parameter which it...
  16. Replies
    3
    Views
    1,915

    Spawning 3DText and setting rotation

    When spawning 3DTexts with a script, it seems to ignore the rotation parameter, and always spawns them at the same rotation regardless. I can set the font size, color, value, and even Lua script of a...
  17. Replies
    5
    Views
    2,218

    When spawning a custom model, you need to use...

    When spawning a custom model, you need to use setCustomObject in addition to spawnObject. The table you made in your original script should actually go into the setCustomObject parameters, and you...
  18. You can already set the color of text tool texts....

    You can already set the color of text tool texts. I think the syntax is yourtext.TextTool.setFontColor(colortable) where colortable has the color values between 0 and 1 for 'r', 'g', and 'b'.
  19. Replies
    3
    Views
    1,814

    If you will always be the host of the game, you...

    If you will always be the host of the game, you can just save them in your own chest. That's how people do poker and blackjack saves for returning players.
  20. Replies
    0
    Views
    1,112

    Ghost objects when grouping

    Any chance you guys can make the ghost objects (as I like to call them) when things are being grouped not be picked up by scripting? When I changed my poker table to color up the chips when bets are...
  21. Replies
    2
    Views
    1,894

    An object that was destroyed actually becomes...

    An object that was destroyed actually becomes null rather than nil. This is important as null is considered true in a boolean expression. You can see this in action by spawning a pawn and a reversi...
  22. You're looking at takeObject. I'm talking about...

    You're looking at takeObject. I'm talking about spawnObject.
  23. The API says that it defaults to Global if a...

    The API says that it defaults to Global if a callback_owner is not defined, so it should work without that line. But I did say that I tried callback_owner = global in the OP as well. However, you...
  24. Replies
    2
    Views
    2,755

    When you call waitFrames, you have to use...

    When you call waitFrames, you have to use startLuaCoroutine instead of simply calling it like you did. Also, if you're expecting it to wait 60 frames before running that shuffle() right below it,...
  25. Thanks to the convenient necro of another thread,...

    Thanks to the convenient necro of another thread, I learned that I can apply a name to a spawned object without using a callback function, so I've got it working now. But I'd still like to know why...
Results 1 to 25 of 73
Page 1 of 3 1 2 3