HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Removing Aloc

01-10-2006, 09:52 PM#1
Peekaboo
Is it possible to remove Aloc, I've tried "call UnitRemoveAbilityBJ( 'Aloc', GetTriggerUnit() )", doesn't seem to work, do locust units register in the "Unit enters region" event? I read somewhere that they don't register in "pick all unit" functions

Edit: They do register in "Unit enters region" (i put in a game message), does anyone know what else could be going wrong?
01-10-2006, 10:04 PM#2
Nantuko Husk
call UnitRemoveAbility ( GetEnteringUnit ( ) , 'Aloc' )

should work fine.

post that trigger btw.
01-10-2006, 10:13 PM#3
Zoxc
You can't remove Aloc, just add. You can recreate the unit/hero thus.
01-10-2006, 10:15 PM#4
Nantuko Husk
Didnt know that.
01-10-2006, 10:16 PM#5
Taur
this has been asked a lot, I think you could try searching if anyone has posted an effective answer but as far as I know: (removing the ability will not work)

a) if you add aloc to a unit and then use chaos to change it, it cannot be ordered but it can be targetted to attack or for spells.
b) I forgot what happens when you hide/unhide the unit, try it, but it is not a full answer.

probably the best way to do it, is to replace it with another unit of its type and set all its attributes (health, mana, etc) to what it was. This might be difficult for heros and for units that have assigned variables since you will have to re-assign them, but thats the best way as far as I know
01-10-2006, 10:43 PM#6
shadow1500
As Taur said, doing both things will remove the effect of Aloc from the unit.
01-10-2006, 10:54 PM#7
Taur
really? I am reasonably sure it wont, but it could cause a lot of object editing for the chaos things since you would in theory need a chaos for every unit type.

Another thing you might want to try is adding a morph ability, make the unit turn into another, turn it back and remove the morph ability. like the way people do the "flight tricks"
01-11-2006, 12:21 AM#8
shadow1500
Quote:
Originally Posted by Peekaboo
do locust units register in the "Unit enters region" event? I read somewhere that they don't register in "pick all unit" functions

Edit: They do register in "Unit enters region" (i put in a game message), does anyone know what else could be going wrong?
they do register in enter region event but dont work in "pick every unit" function.

Quote:
really? I am reasonably sure it wont
i tested this some time ago (patch 1.18 i think) and it worked.
Adding Chaos to the unit will allow the unit to be attacked (u can right click) but u cannot select unit
Hiding-unhiding makes the unit selectable but not attackable
01-11-2006, 12:22 AM#9
Vexorian
hide the unit
remove aloc
unhide the unit.

The problem is that the tooltip that appears when you move the mouse over the unit and says the player's name or the unit's name if it is a unit will no longer appear.
01-11-2006, 12:36 AM#10
Immoralis
holy tinklejabber thank you lord, bah cant give rep to you again
01-11-2006, 12:45 AM#11
shadow1500
Quote:
hide the unit
remove aloc
unhide the unit.

The problem is that the tooltip that appears when you move the mouse over the unit and says the player's name or the unit's name if it is a unit will no longer appear.
hides HP bar aswell, this can be useful when u want to hide that info bar, (Murder in the Mansion?) u can also create an HP bar with floating text, +rep
01-11-2006, 01:05 AM#12
Tim.
Quote:
Originally Posted by shadow1500
hides HP bar aswell, this can be useful when u want to hide that info bar, (Murder in the Mansion?) u can also create an HP bar with floating text, +rep
Off topic a bit, but you can also hide the HP bar by giving the unit a negative selection circle size.
01-11-2006, 01:09 AM#13
Immoralis
**bit more off topic* what is this hp bar made with floating text, ive heard it mentioned a few times before
01-11-2006, 01:10 AM#14
Vexorian
Actually the best thing you can do is hide the normal unit, create another one, give Aloc to it, then when you need to , remove the Aloc unit and show the other unit
01-11-2006, 01:15 AM#15
shadow1500
Quote:
Off topic a bit, but you can also hide the HP bar by giving the unit a negative selection circle size.
ya but u cant remove info box

Quote:
what is this hp bar made with floating text, ive heard it mentioned a few times before
its a bar made with |||||| or '''''''' with some modification u can make it look like a bar, u have the bar follow the unit, then depending on his real HP u will add green ' or black ' to make an hp bar: '''''''''''''''''