-
June 4th, 2020, 10:16 #1
Rolling from targetted enemy sheet
We are working on a commercial ruleset, and I wanted to check whether something is even possible (in FGU):
What we want to do is for a player to be able to click on a button on their character sheet and lookup a result on a table. So far so easy.
But, we want that button to also trigger another roll that looks up a value on a table belonging to a targetted enemy.
Is it possible for a character to effectively roll on a defined table for a targetted enemy?
-
June 4th, 2020, 10:57 #2
If you can work your way through the database structure to reach the table of the target, then you can. You'll probably need to pass off the processing at some point to the GM side (via what's known as OOB Messaging).
You'll be able to get the rTarget LUA record (actually a LUA table) from the standard CoreRPG based action system, and can get the target database node in the Combat Tracker from that (look at the helper functions in CoreRPG scripts\manager_actor.lua) and can use that target database node to get to any data in the target's database structure. But, as the player side doesn't have access to the target data, you'll have to offload this to the GM side via OOB Messaging - https://fantasygroundsunity.atlassia...iverOOBMessage And lots of examples in most of the manager_action_XXXXX.lua scripts in rulesets layered on top of CoreRPG.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!
-
June 4th, 2020, 11:33 #3
Thank you for that. I will cheerfully admit that I understood about 10% of that, but I have passed it on to the software developer I am collaborating with, and he will know what it all means!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks