HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger question regarding periodic damage

09-04-2003, 08:52 PM#1
Aezrial
In RoC there is a map where Undead units take damage whenever they enter a certain area so long as the Arch mage projecting the field survives.

What I'm attempting to is vaguely similar and I have pulled out the triggers from said map and attempted to start on it but I've hit a snag:

The concept is that certain units can't be outside their "cave" during the sunlight hours without taking damage.
I need to make it so if they leave this region between 5:00am and 6:00pm game time that they will take damage unless they either enter a "shelter" region or the sun sets.
I think my main problem is the daylight/sunlight change.
I know I can't have the conditions "Time is before 5:00am" and "Time is after 6:00pm" because they conflict.
Moreover (as stated in several previous posts) I'm still getting the hang out using triggers properly. I've only recently figured out unit groups and I know I have a lot more to learn.

If anyone has suggestions/similar ideas or problems I'd love to hear ‘em.
09-04-2003, 08:57 PM#2
Hunter0000
hmmm, maybe just make it set a baleen(err bad spelling) when it is the right time, and have the trigger set off by that?
09-04-2003, 08:58 PM#3
Bloodlust
i would use 3 triggers


1.the dmg trigger
2.a trigger to deactivate "1." at night
3.a trigger to activate "1." at day
09-04-2003, 09:03 PM#4
Aezrial
Bloodlust: That's what I've got so far; the main problem is getting to to deactivate or start again.

Starting "1" at 5:00am and stopping it at 6:00pm hasn't been working properly.
09-04-2003, 09:06 PM#5
Hunter0000
no,no, you dont get what hes saying I think. Like I said, you make one trigger that turns it on at 5AM then another trigger that disabled the damage trigger at 6AM.
09-04-2003, 09:17 PM#6
bludragn
Don't use conditions. Use on the event Time - In Game Time becomes 6pm, activate damage trigger. Then Time - In Game Time becomes 5am, deactive damage trigger.
09-04-2003, 09:19 PM#7
Hunter0000
Thats what I just said.....
09-04-2003, 10:00 PM#8
Bloodlust
yes

make 3 triggers

1 that is "dmg in region" .. maybe periodic event

and 2 other triggers activating and deactivating
09-05-2003, 05:21 AM#9
Aezrial
Ok, I've got that part working. The only real issue now is entering/leaving the "shelter" region.

I've got one trigger that causes all units in the unit group to take damage, no conditions; it's not initially on.
The second turns the first on at 5:00am.
The third turns the first off at 6:00pm.

So now I'll need a fourth trigger to handle the units. (Unless there's a simpler solution that I'm not seeing.)
I need any units that leave this region to take damage, and those still inside to not.

So do I create a trigger that adds them to the damage-taking unit group so long as the first trigger is on but removes them if they leave the region or if the first trigger is turned off?

Maybe I'm getting more complicate than I have to. I still appreciate all the help, guys. You've been totally rad.