HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Another question

06-08-2009, 09:03 PM#1
Antinoid
If a unit has 2 spellbooks of the same type, is it possible to identify the one you used?
06-08-2009, 09:10 PM#2
Anopob
I'm pretty sure no, since using the same spellbook spell on the same unit screws up when you're casting a spell anyway (same id).
06-08-2009, 10:33 PM#3
Antinoid
forgot to mention im using item with spellbook ability
so i wanna know which item casted
06-09-2009, 05:26 AM#4
Feroc1ty
GetManipulatedItem()
06-09-2009, 05:06 PM#5
Antinoid
Quote:
Originally Posted by Feroc1ty
GetManipulatedItem()
try it with a spellbook
06-09-2009, 06:31 PM#6
Tide-Arc Ephemera
Quote:
Originally Posted by Feroc1ty
GetManipulatedItem()
Does that detect item abilities? As far as I know, you use the caster event to catch item usage.
06-09-2009, 07:06 PM#7
Antinoid
It works with EVENT_PLAYER_UNIT_USE_ITEM and few other item related things.
But i am using an item with spellbook ability which does not work with USE_ITEM
The detection of the usage is by the spellbooks spells with EVENT_PLAYER_UNIT_SPELL_EFFECT

so does anyone know a way to get the casting item?