HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

is there an ability with an item target ?

05-10-2008, 09:44 AM#1
Troll-Brain
all is in the title.
Collapse JASS:
constant native GetSpellTargetItem          takes nothing returns item
this function is useless or is there a spell we can use with it?
Plz don't talk about
Collapse JASS:
constant native GetOrderTargetItem          takes nothing returns item
05-10-2008, 09:46 AM#2
Tide-Arc Ephemera
You can make abilities target items... Stormbolt is one.
05-10-2008, 09:48 AM#3
Troll-Brain
Quote:
Originally Posted by Tide-Arc Ephemera
You can make abilities target items... Stormbolt is one.
i'm afraid to edit the target field of an ability, because the result is "random", less edit , better it is, but thx i didn't know
05-10-2008, 10:03 AM#4
Troll-Brain
hmm

Collapse JASS:
scope test initializer Init

    private function Actions takes nothing returns nothing
        call BJDebugMsg("begin")
        call RemoveItem( GetSpellTargetItem() ) // the item is not removed
        call BJDebugMsg("end")
    endfunction

//===========================================================================
    private function Init takes nothing returns nothing
    local trigger t=CreateTrigger()
        call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_EFFECT )
        call TriggerAddAction( t, function Actions )
    endfunction

endscope

it seems the GetSpellTargetItem function is doing the same job as DoNothing, i it
05-10-2008, 10:13 AM#5
Alexander244
It works for me... (channel with item target)
05-10-2008, 11:14 AM#6
Troll-Brain
Quote:
Originally Posted by Alexander244
It works for me... (channel with item target)
yep i didn't know that to because the target field of this spell has only (unit,location, or unit and location)
But it doesn't work for stormbolt
05-10-2008, 11:48 AM#7
Tide-Arc Ephemera
It doesn't? I might have had it mixed up with another ability. Sorry 'bout that.
05-10-2008, 03:49 PM#8
Vexorian
I once made an ability that removes socketed gems from an invx item.

I think there is an item ability that targets items, I just don't remember the name. Philosopher's stone?
05-10-2008, 04:05 PM#9
Toadcop
Quote:
Philosopher's stone?
yes. but it does transform item. channel works well.

Quote:
Posts: 11,111
:pray: // or just a fake ? =)
05-10-2008, 04:33 PM#10
ArchWorm
It's called "Random item", imo.
It's quite a useful ability, you can use it to make identification scrolls aka Diablo, wonder why almost no one makes a use of it.
05-10-2008, 05:46 PM#11
Troll-Brain
thx for the answers.

i've found the ability random item ('AIri') but could you give the id of the Philosopher's stone ?
and if you know other abilities with an item target plz share

EDIT : forget my request i realize that i can easily find myself in the Units\AbilityData.slk
05-10-2008, 06:38 PM#12
Vexorian
Quote:
Originally Posted by ArchWorm
It's called "Random item", imo.
It's quite a useful ability, you can use it to make identification scrolls aka Diablo, wonder why almost no one makes a use of it.
Because it is as awesomely hard to control as the whole itemtype stuff is.
05-10-2008, 07:59 PM#13
ArchWorm
TB, a customly made ability will work aswell. To make it target item you can simply add "item" target in the table: as far as I know, it doesn't cross with others.

Vx, imo, the most difficult (I'd rather call it dull) thing out there is to revamp all standard items. The rest is: itemtype for class, level for level. And here we go. I'm not sure but imho 'AIri' works also on "illegal" item levels. Should go check this...
05-10-2008, 08:08 PM#14
Vexorian
Just saying it is far more simple and flexible to use another method for identify. One with arrays that would allow far more things without having to spend item classification yet.
05-10-2008, 08:36 PM#15
Troll-Brain
Quote:
Originally Posted by ArchWorm
TB, a customly made ability will work aswell. To make it target item you can simply add "item" target in the table: as far as I know, it doesn't cross with others.

Vx, imo, the most difficult (I'd rather call it dull) thing out there is to revamp all standard items. The rest is: itemtype for class, level for level. And here we go. I'm not sure but imho 'AIri' works also on "illegal" item levels. Should go check this...

the object editor follow his own unknow rules, sometimes edit a field work , sometimes not.
In general remove some fields work better that add ones, and less you edit, better you got chance it will work, it's a fact.

But btw as i said i can easily finds abilities with an item target (just search the word item on the column targ of the Units\AbilityData.slk), or use the chanel ability