Page 2 of 2

Re: Auto Regen / Refresh

Posted: Wed Nov 21, 2012 8:22 pm
by kjLotus
Vicrelant wrote:back on this topic is there anything for when the player equips a piece of armor that has refresh and or regen on it?
i don't understand the question

what are you trying to do?

Re: Auto Regen / Refresh

Posted: Sat Mar 02, 2013 2:30 pm
by inu
I tried the same thing he was trying to do today. Adding Refresh and Regen to the Destrier Baret (and if it worked, to many other items that needed the same effects)
All I found was...

Code: Select all

-----------------------------------------
--	ID: 13748
--	Equip: Vermillion Cloak
--  Adds "Refresh" Effect +1 every 3 sec
-----------------------------------------

require("scripts/globals/status");

-----------------------------------------
-- OnItemCheck
-----------------------------------------

function onItemCheck(target)
	if (target:getEquipID(5) == 13748) then
		target:addStatusEffectEx(EFFECT_AUTO_REFRESH,0,1,3,0,13748);
	else
		target:delStatusEffect(EFFECT_AUTO_REFRESH,13748);
	end
end;

-----------------------------------
-- onEffectGain Action
-----------------------------------

function onEffectGain(target,effect)
end;

-----------------------------------
-- onEffectTick Action
-----------------------------------

function onEffectTick(target,effect)
	target:addMP(effect:getPower());
end;

-----------------------------------
-- onEffectLose Action
-----------------------------------

function onEffectLose(target,effect)
end;
But this file is not in the trunk anymore it seems, so things changed, even tho vermillion cloak still works.
Wasn't able to find how the Vermilion works just yet either as I'm just starting to figure stuff out as I go.

Re: Auto Regen / Refresh

Posted: Sat Mar 02, 2013 2:31 pm
by bluekirby0
It is all in the item_mods table now.

Re: Auto Regen / Refresh

Posted: Sat Mar 02, 2013 2:39 pm
by inu
Thank you, that's all I needed to know for now.