HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Questions

06-11-2006, 08:43 AM#1
XBomberXx
Hi all, I have a problems of victory:
How I meet in trigger, if the humans kill all Demons and Demons spawns(Vampire) the humans else do Victory?
06-11-2006, 10:32 AM#2
The)TideHunter(
That really makes no sense whatsoever, can you give more infomation on what you are asking please.

Quote:
Originally Posted by XBomberXx
How I meet in trigger, if the humans kill all Demons and Demons spawns(Vampire) the humans else do Victory?

That is the scariest sentence ever, i would critisise it, but im not in the mood.
I really need more infomation, what do you want to know? can you post the rest of a trigger if it exsists? what a the demons? a player or a bunch of units? etc
06-11-2006, 10:36 AM#3
XBomberXx
else the Demons is a guardian controller of player, human is a peon, and when I m in game and kill 2 units + (if there is) spawn, the game get to 1 force(human) win and to (force 2) lose.
06-11-2006, 10:43 AM#4
Chriz.
I think he's saying, if he is Force one, and he kills all of Force two's units, then make victory conditions for Force one.

Bomber, you realy need to improve your english, nobody can really understand anything you talk about.
06-11-2006, 10:50 AM#5
zen87
make a trigger that check every 1-5 second...

if all unit belongs to player (enemy) are died = true
victory bla bla bla

something like this
06-11-2006, 01:48 PM#6
XBomberXx
Can you meet a screenshot of trigger ^^ please?
06-11-2006, 02:05 PM#7
darkwulfv
I have to agree with Chriz. Bomber, Everyone here is more than happy to help people in need, but they could be giving you the wrong information if they don't know what your asking for. It's like going to a restraunt and asking for fish and getting pork because the waitor couldn't understand you.

Anyways, to answer your question, it's really simple. A little browsing of trigger actions and event under the Player and Game catergories will get you what you need in no time.
06-11-2006, 02:50 PM#8
The)TideHunter(
Trigger:
Actions
Collapse Player Group - Pick every player in (Force 2) and do (Actions)
Collapse Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
06-11-2006, 04:54 PM#9
XBomberXx
Sorry T_T.
the TRigger I have copy and paste but the trigger not run
06-11-2006, 04:56 PM#10
st33m
You need an Events and Condtions. Something like
Trigger:
Events
Unit - A unit dies
Conditions
Owner of Dying unit is equal to Player (Whatever)
06-11-2006, 05:04 PM#11
XBomberXx
a ok lol thx ^^ but the conditions is player slot status?what is (whatever)
06-11-2006, 05:40 PM#12
Anopob
Maybe something like these:

Trigger:
UnitGroup 1
Collapse Events
Map initialization
Conditions
Collapse Actions
Unit Group - Add (Unit) to UnitGroup_1
Unit Group - Add (Unit) to UnitGroup_1
Unit Group - Add (Unit) to UnitGroup_1
Unit Group - Add (Unit) to UnitGroup_1

Then:

Trigger:
Victory and Defeat
Collapse Events
Time - Every 1.00 seconds of game time
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(UnitGroup_1 is empty) Equal to True
Collapse Then - Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!
Collapse Else - Actions
Do nothing

I think this should work.
06-11-2006, 05:47 PM#13
Blade.dk
Units are not removed from unit groups when they die.
06-11-2006, 05:48 PM#14
XBomberXx
but units not isn t in map after with trigger join, waooo what Owner of Dying unit is equal to Player (Whatever) , omg O_O hunter but whatever what is?
06-11-2006, 08:38 PM#15
Anopob
Quote:
Originally Posted by Blade.dk
Units are not removed from unit groups when they die.

Rofl, yeah when I posted that I had to go, and I realised that it was a mistake, my bad But how bout this:

Trigger:
Remove Unit
Collapse Events
Unit - (Unit) Dies
Conditions
Collapse Actions
Set Unit_1 = (Dying unit)
Unit Group - Remove (Unit_1) from UnitGroup_1

Unit_1 = Unit Variable. Oh and make sure that specific unit that dies is part of UnitGroup_1.