View Single Post
06/18/14, 04:12 AM   #3
ZunaSW
Join Date: Mar 2014
Posts: 37
Thanks Sekta. Hmm... I don't know how to use them in an event, I'm now investigating a bit more, and I found this:

Code:
EVENT_EFFECT_CHANGED (integer changeType, integer effectSlot, string effectName, string unitTag, number beginTime, number endTime, integer stackCount, string iconName, string buffType, integer effectType, integer abilityType, integer statusEffectType)
The thing is, that event can happen too not only when you drink a potion, also when you activate an ability and things like that :/
Any ideas? I think I have to put something that says that only happen when you drink a potion, but I have no idea of how to do this ._.

EDIT:

I also tried this one:
Code:
EVENT_INVENTORY_ITEM_USED (integer itemSoundCategory)
But I can't make it work:
Code:
local function UsePotion( itemSoundCategory )
	if itemSoundCategory == ITEM_SOUND_CATEGORY_POTION then
		d("Potions!")
	end
end

Last edited by ZunaSW : 06/18/14 at 04:15 AM.
  Reply With Quote