HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hide During day?!?!

11-09-2003, 03:06 AM#1
Toxicseaweed
is there a field that i can change so that a unit is invisible during the day also? or if not what triggers would you suggest using to get this effect?
11-09-2003, 03:18 AM#2
Eriond
It's impossible to do it with abilities, it has to be done by triggers... I'll leave it to you, see if you can figure out how to do it. In three seconds, I've already formulated the trigger in my head. Here's a hint.

Unit - Add Permenant Inivisibility to Unit
Unit - Remove Permenant Invisibility from Unit

Those two actions are in 2 different triggers to get this effect.
11-09-2003, 04:11 AM#3
Toxicseaweed
oh hehe never thought of it like that. Now its easy. Thanks. I'm going to go around it. Sense i never use triggers for abilities i just got one or two or maybe even three questsion :)
1. Can i have multiple events?
2. Is checking the current speed of the unit gonna do anything?
3. If so. Will checking for current unit speed above 0 do anything? If so than i got me a skill.
11-09-2003, 04:50 AM#4
Eriond
1. Yes, if you put multiple events, if only 1 of them is present, the trigger still fires.

2. Don't do movement speed, cause what happens if you cast a spell? You'll still be standing, but you'll be attacking.

Use the Unit - Unit recieves an order targeting a poitn

and stuff like that.
11-09-2003, 07:39 AM#5
I)arknezz
I havent read the whole topic, and im kinda new to triggering, but heres a try:

Event: unit uses ability
if ability being used = your hide ability THEN do: give permamnent invisibility.

ANOTHER SCRIPT:
If the unit starts moving, take away permanent invis.


ok thats it, god luck i have no idea how to make the "do not accuire target" thingie. :D
11-09-2003, 10:14 AM#6
tufy
Event:
(time of day) =, say, 8:00

Action
Set TimeDay (boolean) = True

Event:
(time of day) = 19:00

Action:
Set TimeDay (boolean) = False

Event:
Unit is issued an order with no target

Condition:
Or-
Order=hold position
Order=Stop

Action:
Give permanent invisibility to unit



Event:
Unit is issued an order targeting a point
Unit is issued an order targeting a unit

Condition:
Or-
Order not = hold position
Order not = Stop

Action:
Unit take permanent invisibility from unit

That's all you need. Try doing a trigger that will activate invisibility when you're in range of living trees (and take it away when you walk outside this range), now that's hard.
11-09-2003, 10:17 AM#7
tufy
Quote:
Originally posted by I)arknezz
I havent read the whole topic, and im kinda new to triggering, but heres a try:

Event: unit uses ability
if ability being used = your hide ability THEN do: give permamnent invisibility.

ANOTHER SCRIPT:
If the unit starts moving, take away permanent invis.


ok thats it, god luck i have no idea how to make the "do not accuire target" thingie. :D


Oh, btw.: You can disable auto-acquire target in Object Editor (Abilities). Permanent Invisibility has a tag saying "auto-acquire target." Untick that.