Starfinder Playlist
Page 1 of 3 123 Last
  1. #1

    Roll on Table - receive an image?

    I have created a table that has 50 rows. Each row has an image that I dragged onto it. What I'd like to do is have a player be able to roll on the table, and the image automatically be sent (shared) to them. Is this possible?

    If I can't find a better way to do it, I'll have to have them roll on the table, I see which entry it is, go to my images, and drag/drop it onto their character. But that's a little clunky.

    Basically, each row is a card with various effects (like the Torg deck, for us old timers). When a player has shown good roleplaying, I want to reward them with a card.

    Any ideas/suggestions?

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Create Table. Set results to Hidden.

    1 1 [image] Text
    2 2 [Image] Text
    3 3 [Image] Text
    4 4 [Image] Text
    5 5 [Image] Text
    6 6 [Image] Text

    Where [Image] is the image you drag onto the Table entry

    If you do the roll then it will appear in your Chat along with the Image link.
    Drag the Image link onto the Character Portrait and it will privately share with that player.

    I couldnt get it to work for the Player doing the roll without the players being able to cheat and peek at the other images...

  3. #3
    Thanks for helping me on this! But perhaps I'm doing something wrong. On my DM screen (below) I'm doing the rolling on the screen. The result shows up in the text box (where it says [Table] Inspiration Deck = Adv), I try to drag it - and what I'm actually dragging says, [TABLE] - and when I drop it on the player nothing happens.

    Attachment 7484

  4. #4
    Ikael's Avatar
    Join Date
    Jan 2008
    Location
    Finland/Joensuu
    Posts
    2,384
    Quote Originally Posted by Craftzero View Post
    Thanks for helping me on this! But perhaps I'm doing something wrong. On my DM screen (below) I'm doing the rolling on the screen. The result shows up in the text box (where it says [Table] Inspiration Deck = Adv), I try to drag it - and what I'm actually dragging says, [TABLE] - and when I drop it on the player nothing happens.

    Attachment 7484
    Try clicking/dragging the shield-icon in chat next to question mark. That's the shortcut to your image
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

  5. #5

  6. #6
    Yes, thank you both! It works great. I really appreciate it.

  7. #7
    I didn't know tables supported images. That's good to know! Wonder how hard it would be to assign tokens based on rolled images from a table...so an army of kobolds didn't all look exactly the same without creating a separate NPC record for each one you wanted different.

  8. #8
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by Irondrake View Post
    Wonder how hard it would be to assign tokens based on rolled images from a table...so an army of kobolds didn't all look exactly the same without creating a separate NPC record for each one you wanted different.
    It's possible, but there would have to be a few areas of custom code:
    • Currently tokens are not supported as a linked record in a table - this would have to be changed.
    • The NPC record would need to be able to handle linking of a "token table" - so the code knows which table to use to get to the token.
    • Then the result of this table (once token linking has been coded) would have to be rolled in the background during the combat tracker onDrop event (when a single NPC was added to the combat tracker) or the CombatManager.addBattle code (for when an encounter was used to add the NPCs to the combat tracker) and the resulting token from the table roll be applied to the NPC token field in the combat tracker.

    It's this last thing that might be difficult as rolling on a table is asynchronous (the code that kicks off the table roll doesn't wait for the result of the roll - you need to code for the result of the roll in a handle result function). So, in this case, it would probably be better to code the "dice" roll on a token table as a random number generator (LUA math.random) as part of this particular code, so that the result of the roll could be applied to the table and the token needed extracted all during the process of adding the NPC/s to the combat tracker - not having to code a separate table rolling/token applying handler.

    So, it's all doable - there would have to be changes to the ruleset in question in a number of places.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  9. #9
    If you did this, I wouldn't use the rollable tables at all. I would just add ability to define "token sets" for NPC records, and add a handler in the CT onDrop event. Just generate a random number to pick the token to assign.

    Cheers,
    JPG

  10. #10
    Yeah Moons idea sounds less painful.

Thread Information

Users Browsing this Thread

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

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
  •  
5E Product Walkthrough Playlist

Log in

Log in