HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looking for Trigger Help

09-15-2003, 06:18 AM#1
CrypticParadox
Hola Hola.

I would like to design a trigger set up that makes the forces of "GOOD" need to destroy the enemies mainbase to achieve an ITEM. Which they then have to take back that item to thier own base and stand on a certain area for a few minutes (kos like). This goes for the "EVIL" side as well. ANd once that time is up on that spot the game will be over. If yous who have knowledge in the ART of triggering could be so ever kind and jot down a simple and easy way to achieve this, it would be much appreciated.

Thanks.
09-15-2003, 07:21 AM#2
Otiluke
Ok well I won't do all your thinking for you so you're going to need some basic triggering skills. Here's what you do.
1. Players are arranged into their respective player groups (Good and Evil in this case).

2. Two unit variables will apply to any unit that gets the item.

3. Here's a short trigger: Generic Unit Event Unit picks up item
Condition Item being manipulated is (Good object) or (Evil object)
Actions If then else owner is part of good then declare unit good holder (thats the variable discussed in 2.) else declare unit evil holder.

4. Do this twice one for good one for evil
If unit enters region Condition unit is good/evil object holder then start timer.

5. If timer counts down to 0 seconds then the team who managed it wins

6. if unit leaves region reset and stop timer

thats about it it doesnt explicity detail the easy stuff but you should get the idea. If you have any problems post again.
09-16-2003, 01:09 AM#3
CrypticParadox
Ok thanks Ot. I sent ya PMessage before please disregard that.

I sorta get what ya mean but basically confused a some.

ok. 1 basically put the correct players in the Evil or Good force teams. WHich is done.
2. You mentioned set unit variables i didn't quite get what ya meant or what to set them for until i used my brain some..(slaps head). So i set the variable as good item and then another for bad item. Just that i realized i need to make the items race only like have attack claws be undead or something. Since the bad item would be able to be picked up by the good. which i don't want.

So atm i have a 2 forces good n bad have two variables good item and bad item.

3. I do Generic Unit EVENT. Unit acquires item
Condtion: Item Comparison: ITem being manipulated equal to good item. (question do i need to do 2 conditions like one for the bad item)
ACTION: you say to do IF/THEN/Else (which one do i use) the one with multi functions? Ummm then i'm lost. You say to if unit is part of good (meaning of the item?) then declare unit (how?<through statewide message?>) then else declare unit evil holder.

4. Then ya say to do this twice. Make 2 regions (simple) then do unit enters region. Then CONDtion: Unit is good/evil item holder which order do i use as in comparison to trigger that and the timer?

just alittle idea from where i'm at. that PMessage if ya got it.. was all ****ed up and distorted somewhat. thanks for helping me anyhow really appreciate it.
09-16-2003, 01:38 AM#4
Das Jank
Ok I bored and was going to make these triggers for him but I can't seem to find anything like "Declare unit"....what trigger would this be?
09-16-2003, 01:53 AM#5
Das Jank
Ok nevermind I think i found it. I just made an integer variable.
------------------------------------------------------------------
Events
Unit - A unit Acquires an item
Conditions
((Item-type of (Item being manipulated)) Equal to Good Item) or ((Item-type of (Item being manipulated)) Equal to Evil Item)
Actions
If ((Owner of (Hero manipulating item)) Equal to Player 1 (Red)) then do (Unit - Set the custom value of (Hero manipulating item) to GoodRace) else do (Unit - Set the custom value of (Hero manipulating item) to GoodRace)
--------------------------------------------------------------------
Then: (you will need one for evil race too)
--------------------------------------------------------------------
Events
Unit - A unit enters (GoodWinArea)
Conditions
(Custom value of (Hero manipulating item)) Equal to GoodRace
Actions
Countdown Timer - Start GoodTimer as a One-shot timer that will expire in 30.00 seconds
----------------------------------------------------------------------
Then: (one of these for evil also)
----------------------------------------------------------------------
Events
Time - GoodTimer expires
Conditions
Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
-------------------------------------------------------------------------

So basicly you need 4 variables in all:
(Integer) GoodRace
(Integer) EvilRace
(Timer) GoodTimer
(Timer) EvilTimer

P.S. That first trigger will only work if you have the same item so you might want to split it into 2 trigger. One for evil and one for Good.
09-16-2003, 05:35 AM#6
CrypticParadox
Wow Sweet. Thanks a ton.