PDA

View Full Version : Anyone ever use the "action_icon" param in MoreCore add_roll_type?



Varsuuk
January 1st, 2021, 02:17
Anyone have any examples where they use the additional parameters past "targeting" - I found a couple using "total_handler" so I will read those later to see how they use it in case it makes sense to leverage that for some of the work.

But, I am trying to set an icon programmatically and the only one in MoreCore now that uses that parameter is "dsadamage". -- anyone know which ruleset that is so I can look to see if it works/has effect of it it simply ignores the param and uses the one defined in the template_campaign for it?


From MoreCore's manager_custom_dice.lua:

function add_roll_type(name, perform_action, result_handler, use_modifiers, targeting, mod_handler, action_icon, total_handler)