Results 1 to 4 of 4

Thread: Need help with a fairly simple broadcast script.

  1. #1

    Need help with a fairly simple broadcast script.

    -What I am after-

    A script for a die that when rolled, will broadcast the face up value to the player in the GM seat.

    I have attempted for several hours now to modify scripts from various workshop mods including MrStumps various dice rollers but I don't want a button press, I would prefer to have the broadcast happen whenever the dice are rolled.

    I am guessing the code will be something like "function endRoll -> get value self -> broadcast to player black" but for the life of me I can not figure out the correct syntax.

    Please help!

  2. #2
    For context, I am GMing a game with 8 players and often do not have the time or wherewithal to go around the table checking rolls (initiative, perception etc) so this will help me at a glance see what each player performing a skill rolls.

  3. #3
    Join Date
    May 2016
    Posts
    1,072
    You can modify this scripted die. [url]http://steamcommunity.com/sharedfiles/filedetails/?id=759381432[/url]

    Take the code, put it on a D20, then go into the script. You can see where it checks the result of the die and changes the die's color. Cut the bit out where it changes the color and replace it with

    Code:
    if Player["Black"].seated then Player["Black"].broadcast(roll result here) end

  4. #4
    What you probably want to do is have some kind of script that gets the roll results dynamically. It really depends on how the game is set up.

    Do they roll the same dice, that you pass around.. or do they have their own dice.
    Do they have a special spot to roll their dice?

    Basically you want to do a test on getObjects() of a script zone they roll in, or getAllObjects() to test the entire scene, find the dice values add them if needed and print them... Personally I like to "find" dice based on the colour values rather than tooltip, as any tool tip information is shown on mouse over.

Similar Threads

  1. More control over Broadcast Messages
    By maximo1984@ymail.com in forum Scripting Suggestions
    Replies: 3
    Last Post: 07-14-2018, 02:22 PM
  2. Broadcast with sound functionaliy
    By Monktrist in forum Scripting Suggestions
    Replies: 5
    Last Post: 09-16-2017, 09:21 PM
  3. broadcast to two players only srry i am a noob
    By Gully0815 in forum Scripting
    Replies: 3
    Last Post: 03-19-2017, 07:49 AM
  4. Quick Question on Broadcast Text
    By TattleTale in forum Scripting
    Replies: 0
    Last Post: 09-17-2016, 01:11 PM
  5. Colour shifting in Steam Broadcast
    By Fengshen in forum Bug Reports
    Replies: 0
    Last Post: 01-23-2016, 05:34 AM

Posting Permissions

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