| 05-10-2008, 09:44 AM | #1 |
all is in the title. JASS:constant native GetSpellTargetItem takes nothing returns item Plz don't talk about JASS:constant native GetOrderTargetItem takes nothing returns item |
| 05-10-2008, 09:46 AM | #2 |
You can make abilities target items... Stormbolt is one. |
| 05-10-2008, 09:48 AM | #3 | |
Quote:
|
| 05-10-2008, 10:03 AM | #4 |
hmm 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 |
It works for me... (channel with item target) |
| 05-10-2008, 11:14 AM | #6 | |
Quote:
But it doesn't work for stormbolt |
| 05-10-2008, 11:48 AM | #7 |
It doesn't? I might have had it mixed up with another ability. Sorry 'bout that. |
| 05-10-2008, 03:49 PM | #8 |
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 | ||
Quote:
Quote:
|
| 05-10-2008, 04:33 PM | #10 |
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 |
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 | |
Quote:
|
| 05-10-2008, 07:59 PM | #13 |
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 |
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 | |
Quote:
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 |
