-
August 5th, 2015, 17:07 #11
Your specific issue - passing data as part of the roll (steps 11 to 12), has nothing to do with OOB messaging at that part. It's the actual process of applying the damage (healing in this case) that uses OOB messaging as the GM needs to apply the damage/heal (step 14+).
As you've mentioned above, the issue you're having is making custom data available to the onHeal function, right? The asynchronous nature of the rolling process means that the resultHandler (onHeal) is kicked off sometime in the future, once the dice have landed and provided a result. The standard mechanism for passing info as part of a damage roll (which is what a heal roll is, essentially) is to do it in the description - usually with the info enclosed in square brackets. Try it - roll some heals/damage in the ruleset and see what FG puts together in the description.
In the 4E ruleset, manager_action_damage.lua the applyDamage function decodes the damage description with" local rDamageOutput = decodeDamageText(nTotal, sDamage);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!
-
August 6th, 2015, 01:53 #12
OK, thanks, I'll give it a go
Edit: OK, got that working
Thanks for all of the help guys, both here and via PM - I really, really appreciate it!
CheersLast edited by dulux-oz; August 6th, 2015 at 03:55.
Dulux-Oz
√(-1) 2^3 Σ Π
...And it was Delicious!
Alpha-Geek
ICT Professional
GMing Since 1982
NSW, Australia, UTC +10
LinkedIn Profile: www.linkedin.com/in/mjblack
Watch our games on Twitch: www.twitch.tv/dulux_oz
Support Me on Patreon: www.patreon.com/duluxoz
Past Games, etc, on my YouTube Channel: www.youtube.com/c/duluxoz
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks