celestian
April 19th, 2018, 01:04
I am attempting to not have to "replace" the entire CoreRPG script "manager_tokens.lua" ... with just the function I need to alter (updateHealthHelper).
I can override the function with my own but I can't seem to figure out how to access the global variable fGetHealthInfo within TokenManagers script manager_tokens.lua. I've tried a few methods I thought might work but nothing seems to work properly.
I've even attempted to also override the addDefaultHealthFeatures function where it's set and have a "global" on my own "ManagerTokenDI" script and that didn't work either.
Thoughts?
I can override the function with my own but I can't seem to figure out how to access the global variable fGetHealthInfo within TokenManagers script manager_tokens.lua. I've tried a few methods I thought might work but nothing seems to work properly.
I've even attempted to also override the addDefaultHealthFeatures function where it's set and have a "global" on my own "ManagerTokenDI" script and that didn't work either.
Thoughts?