HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

ability ids mix up ingame

06-03-2008, 11:06 AM#1
laikh
hi
Ive created three ablities, 2 from shockwave and one is a copy of one of those
... they all have different ids!!! which is use to trigger some stuff when the abilities are fired

but ingame when i use them, after one or two uses they start to mix up ... and i suddenly get the triggers from ability 2 to fire 'instead' of the ones for one!!! so somehow the ability id must have changed ingame

anybody can help me with this ?
06-03-2008, 11:24 AM#2
Alexander244
Are they on the same unit? If they are, as they all have the same order id, they will conflict.
06-03-2008, 12:13 PM#3
Gorman
Changing the order id does NOTHING.

Unless the ability is based on Channel.

I suggest using some differnent dummy abilities, Channel is of course a good choice due to its changable order ID, and its ability to change target method.
06-03-2008, 12:36 PM#4
laikh
ty

ill go for channel then



it doesnt work, i get the same id mixups as before ... all spells based on channeling get the same id as the last learned spell thats based on channeling ... any ideas why?
06-04-2008, 03:04 AM#5
Hydrolisk
Quote:
Originally Posted by Gorman
Changing the order id does NOTHING.

Unless the ability is based on Channel.

I suggest using some differnent dummy abilities, Channel is of course a good choice due to its changable order ID, and its ability to change target method.

Semi-thread hijack...

Does this mean I can use 4 abilities based off of Channel with different order ID's and they will all work perfectly?
06-04-2008, 06:01 AM#6
RodOfNOD
That is why channel exists. Basically its a magical button for us :>
06-04-2008, 08:07 AM#7
laikh
also on the same hero ?

because that doesnt work for me
06-04-2008, 01:13 PM#8
rulerofiron99
Quote:
Originally Posted by laikh
hi
Ive created three ablities, 2 from shockwave and one is a copy of one of those

NEVER EVER EVER give a unit two abilities based off the same.

Use Crushing Wave or something else that targets a point for the other.
06-04-2008, 01:20 PM#9
Alexander244
Quote:
Originally Posted by laikh
also on the same hero ?
Yes.. did you change Data - Base Order ID?
06-04-2008, 03:34 PM#10
RodOfNOD
Quote:
Originally Posted by laikh
also on the same hero ?

because that doesnt work for me


Channel with different order ids definately works i do it ALL the time. The only drawback is that you cannot get target effects etc because it is a non target spell. IF you need target etc then you WILL need to use 2 different spells based on DIFFERENT original ids. This is key cuz some spells use the same original id and you need to look at them.
06-04-2008, 03:39 PM#11
Alexander244
Channel can be targeting..
06-04-2008, 04:09 PM#12
RodOfNOD
Quote:
Originally Posted by Alexander244
Channel can be targeting..


Been so long since i used it for targeting spell.

http://wc3campaigns.net/showthread.php?t=81742

Has all the channel stuff that we have compiled as well as many other useful tidbits of info.
06-04-2008, 05:59 PM#13
laikh
Quote:
Originally Posted by Alexander244
Yes.. did you change Data - Base Order ID?


by Data - Base Order ID?[/quote] you didnt mean object id i suppose?
if not, how to change the order id ? ... cannot find that in gui, or as a jass command

i let my triggers fire using
call TriggerRegisterAnyUnitEventBJ( gg_trg_elePort, EVENT_PLAYER_UNIT_SPELL_EFFECT )
---> GetSpellAbilityId() == 'A005' e.g.