-
September 20th, 2014, 14:22 #1
- Join Date
- Aug 2014
- Posts
- 36
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?
-
September 20th, 2014, 14:39 #2
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...
-
September 20th, 2014, 17:22 #3
- Join Date
- Aug 2014
- Posts
- 36
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
-
September 20th, 2014, 18:08 #4"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!
-
September 21st, 2014, 04:35 #5
Maybe this helps - I messed up the layer masking - will do again tonight.
Attachment 7488
-
September 21st, 2014, 07:58 #6
- Join Date
- Aug 2014
- Posts
- 36
Yes, thank you both! It works great. I really appreciate it.
-
September 21st, 2014, 10:12 #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.
-
September 22nd, 2014, 01:40 #8
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!
-
September 22nd, 2014, 02:48 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,548
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
-
September 23rd, 2014, 05:03 #10
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks