• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Removing Locust Completely

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Straight to the point, how to completely remove locust from a unit ?

I tried with this trigger it worked well

  • Locust Removal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Custom script: local unit Caster = GetTriggerUnit()
      • Custom script: call UnitAddAbility(Caster, 'Aloc')
      • Custom script: call ShowUnit(Caster, false)
      • Custom script: call UnitRemoveAbility(Caster, 'Aloc')
      • Custom script: call ShowUnit(Caster, true)
      • Custom script: call UnitAddAbility(Caster, 'A001')
      • Unit - Order (Triggering unit) to Night Elf Druid Of The Claw - Bear Form
      • Custom script: call UnitRemoveAbility(Caster, 'A001')
      • Custom script: set Caster = null
The unit can still be selected and controlled, BUT...

1. You cannot click-select the unit, you can only drag-select the unit.
2. Other unit/self can't target the unit (Target-unit type spell)

How to completely remove these problems ?

Test map is below, try it.
 

Attachments

  • Locust Removal Test.w3x
    12.7 KB · Views: 71
Level 4
Joined
Aug 8, 2011
Messages
84
I haven't personally tried it, but supposedly chaos transforming a unit temporarily and instantly back works entirely.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Alternate and normal forms need to be different units. Normal unit type can be anything, alternate should be the type of the caster.
What if, for instance, I used a spell, that can render that unit to become Locust (temporary) and then removes the locust (completely) ?

Do I need to copy every single unit-type in that map to suit the ability "Data - Alternate Unit Type" ?
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Just add/remove works, are you sure we don't need to order that unit to bearform ?

What I did (in the test map, provided on first post) was that I used the method of giving Bear Form to the unit -> Order it to cast Bear Form -> Remove it

It's done, BUT, the 2 problems occur (refer to the first post)

How can I avoid these problems ?
 
Level 17
Joined
Apr 27, 2008
Messages
2,455
Kill/revive the unit works.
You can use an instant passive revive ability :

add the ability, kill the unit, remove the ability.

Of course you will have other drawbacks, like if the unit was channeled a spell.

Fairly useless but interesting to know drawbacks of 'Aloc' :

http://www.thehelper.net/forums/showthread.php/128138-SetUnitSelection

But if passive morph works, then it's probably the best solution, i suppose order shouldn't be stopped, nor unit selection, in fact it would be just unnoticeable for players.
 
Status
Not open for further replies.
Top