I'm trying to get an actor's lifesteal % stat (Yanfly lifesteal plugin) in the status menu in the attribute section. This is what I've added to the status menu plugin so far to try to get it to work (my status menu plugin is below my the lifesteal plugin):
Lines 330-332:
* @param lif Name
* @desc The text name used for this attribute.
* @Default Lifesteal
Line 503:
Yanfly.Param.StatusAttr_lif = String(Yanfly.Parameters['lif Name']);
Lines 1173-1176:
case 'lif':
this.drawAttributeName(Yanfly.Param.StatusAttr_lif, dx, dy, dw);
//alert(actor.id);
this.drawAttributeRate(actor.lifeSteal.hpPhysicalRate, dx, dy, dw);
The last part is what doesn't work. actor.lifeSteal.hpPhysicalRate comes up as NaN (not a number).
Any ideas how to do this? Lifesteal is going to be a pretty big part of my game. Thanks for any help!
Lines 330-332:
* @param lif Name
* @desc The text name used for this attribute.
* @Default Lifesteal
Line 503:
Yanfly.Param.StatusAttr_lif = String(Yanfly.Parameters['lif Name']);
Lines 1173-1176:
case 'lif':
this.drawAttributeName(Yanfly.Param.StatusAttr_lif, dx, dy, dw);
//alert(actor.id);
this.drawAttributeRate(actor.lifeSteal.hpPhysicalRate, dx, dy, dw);
The last part is what doesn't work. actor.lifeSteal.hpPhysicalRate comes up as NaN (not a number).
Any ideas how to do this? Lifesteal is going to be a pretty big part of my game. Thanks for any help!