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

[Trigger] hide ability

Status
Not open for further replies.
Level 9
Joined
Jun 7, 2008
Messages
440
I was looking briefly for this, but i couldnt find it.Im looking to give units who have entered an area the hide ability. I have another ability that When a player enters these same areas it turns the day to night.i want them to be able to hide, but only as long as they are in this area. This is what i have so far:

Events
-Unit enters ForestHide1
-Unit enters ForestHide2
-Unit enters ForestHide3
Conditions
-(Ownerof(enteringunit)) not equal to player 10 (Light Blue) <set enemy>
-(Ownerof(enteringunit)) not equal to player 11 (Dark Green) <set enemy>
Events
<Drawing a blank> I thought to put something like this:
-unit - Add <hide> to entering unit
But i think im in the wrong area, mainly because this doesnt exits in This category. help please?
 
Level 9
Joined
May 27, 2006
Messages
498
Instead of making a region, create a dummy unit with a model matching your needs (or without model), give it some aura, like devotion aura and modify its tooltip and buff. Then create a trigger, which launches every 0.2 second and picks unit with your aura buff. If the unit has the buff, then add an invisibility ability. If it doesnt have the buff, then remove the invisibility ability.
You might also want to check if the unit has both buff and the invis ability.
 
Level 7
Joined
Oct 14, 2008
Messages
340
you can do it the way you wanted to just fine, the whole aura thing is unnecessary imo, the event is unit - add ability , and unit - remove ability.
 
Level 9
Joined
Jun 7, 2008
Messages
440
yes but the problem is - add unit has no ability "hide." i already checked that. and the closest thing i think is shadowmeld. Which i dont want, when using hide. you dont attack, cast spells, or do anything for that matter. thats what i need for this spot. Is there any way i can do this without having to use shadowmeld?
 
Last edited:
Level 6
Joined
Sep 13, 2008
Messages
261
Shadowmeld sounds exactly like what you said you wanted? If that is truly what you don't want than describe what you want. Hide just utilizes shadowmeld.

But if shadowmeld is completely unacceptable. Do a search in the spells section someone made a hide ability already that works in day or night.
But I think that is also based off shadowmeld.

But either way this should be in the request section since you are just asking for a spell.
 
Level 9
Joined
May 27, 2006
Messages
498
I suggested using an aura to detect units which have to be shadowmelded. Getting a unit with the buff in entire map is better way than picking every unit in range of unit every trigger launch.

And with the region, he should have to create a region for every place where he'd want his units to become invisible. +Include the new regions in the trigger. This would be some job to do...

add unit has no ability "hide."
Check on the other ability classification, like item or hero/unit?

@Up
Changing transparency will make the unit invisible only to the player's eyes, meaning it will only look as if it was invisible, but the game will still consider the unit as if it was 100% visible.
 
Level 9
Joined
Jun 7, 2008
Messages
440
I understand what you are saying about shadowmeld. if im correct, shadowmeld means you are invisible whether your standing or moving. You pop out of shadowmeld when you attack/ cast spells. Am i correct in this assumption? If i am, i want it so that when you click the ability "hide" you shadowmeld, but only when standing still. While in "hide" You dont attack the nearest enemy, you dont move unless the player wishes you to. i want the ability exactly the same as the nightelves in the campaign (but only for units in my forested area (which i already made a regoin for this))

@raft
there is no hide ability period. only shadowmeld.

Perhaps i will just use shadowmeld to give this problem an easy fix.
 
Level 6
Joined
Sep 13, 2008
Messages
261
You are completely off on your assumption. Shadowmeld is only invisible while you are still.

Also Shadow Meld = Hide Look at the tooltips etc and see for yourself.

I told you that was what you wanted and you didn't even check way to go.
 
Level 9
Joined
Jun 7, 2008
Messages
440
Okay, Ya it was my fault. I was almost 100% cetain that shadowmeld was everything. I apologize for making myself look like an idiot. Thanks very much for your help.
 
Status
Not open for further replies.
Top