Auto Regen / Refresh

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Auto Regen / Refresh

Post by kjLotus » Wed Nov 21, 2012 8:22 pm

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?

inu
Posts: 43
Joined: Sun Nov 18, 2012 2:51 am

Re: Auto Regen / Refresh

Post by inu » Sat Mar 02, 2013 2:30 pm

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.

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: Auto Regen / Refresh

Post by bluekirby0 » Sat Mar 02, 2013 2:31 pm

It is all in the item_mods table now.

inu
Posts: 43
Joined: Sun Nov 18, 2012 2:51 am

Re: Auto Regen / Refresh

Post by inu » Sat Mar 02, 2013 2:39 pm

Thank you, that's all I needed to know for now.

Post Reply