• 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.

New invisibility ability: instant transition and not walk through units?

Level 3
Joined
Sep 20, 2024
Messages
15
Hello,
I want to have an ability for a unit, when you use it the unit should turn invisible instantly with 0 seconds transition time. I want my invisibility ability to have the same art and sound as invisibility potion item and you should not be able to walk through units while invisible.

1. I tried editing sorceress invisiblity spell to self cast but I remember there were some issues, for instance you still have to target your hero with the spell and I can't change the sound and art.
2. Invisibility potion is what I currently use for the ability, the issue is I can't edit data transition time to 0 seconds (it's set to 2 seconds by Blizzard as default for some odd reason).
3. I can't edit Windwalk ability either since it has 0.6 seconds data transition time, a sound I cant change and I don't want my invisiblity ability to allow the unit to walk through units.

Any ideas please? Thank you ☺️
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
A lot of that isn't true, I think you're just mistaken.

1. Use a Dummy unit to cast it on your Hero. Also, you can change all of the art and sounds.
2. Unsure about this one. Maybe you can edit it in the Gameplay Constants.
3. You can change the Transition Time to 0 seconds and you can change the Sound. There's no field for modifying Collision.

The Dummy unit solution is quite simple, here's an example (see the 1st post as well my own 1st post)
 
Last edited:
Level 3
Joined
Sep 20, 2024
Messages
15
The invisibilty ability should last 15 seconds and have a cooldown of 60 seconds. Kinda like divine shield ability except you become invisible instead of invulnerable. Permanent Invisibility lasts forever and I don't see transition time for it either.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
The invisibilty ability should last 15 seconds and have a cooldown of 60 seconds. Kinda like divine shield ability except you become invisible instead of invulnerable. Permanent Invisibility lasts forever and I don't see transition time for it either.
Add ability -> Wait 15 seconds -> Remove ability.
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to My Cool Invis Ability
  • Actions
    • Unit - Add Permanent Invisibility (Custom) to (Triggering unit)
    • Wait 15.00 seconds of game-time
    • Unit - Remove Permanent Invisibility (Custom) from (Triggering unit)
^ Note that this isn't perfect. If you can reset the cooldown and cast it again while it's already active there will be multiple instances running at the same time which will interfere with one another. Waits are also somewhat imprecise but the user likely won't notice the difference between 14.8 seconds and 15.0 seconds.

Warcraft 3 isn't super consistent, for Permanent Invisibility you adjust the Duration for the transition time:
1739634624978.png

The developers didn't want to make a new field and figured they could repurpose an existing one.
 
Last edited:
Level 14
Joined
Jan 10, 2023
Messages
247
Metamorphosis or Destroyer Form into a unit with invisibility. The only obstacle will be if you want to be able to end it early, you will need triggers, but otherwise you could use either of these abilities and give the transform unit the ghost ability and disable attacks for the dummy/ transformed unit.
Another 'drawback' will be that if multiple units use this ability then you would need to either have a unique dummy/ transformed unit and ability for each unit that has the ability because you would likely want to have the unit keep its original skin and sound set, or you could use triggers to change the skin OR just use a generic skin and sound set since the owner will be the only one selecting it anyway.
 
Top