HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

triggering help requested

01-11-2004, 04:15 AM#1
TallgeeseIIII
ok, what i need is simple, we need it so a map with nothing but units from 2 opposing forces, on two teams, will end in defeat for the player who loses all their units, there aren't any buildings. please help fast, this is for a school project due in 2 days! :(
01-18-2004, 11:59 PM#2
VolEs
First off, get rid of the map Initialization Folder, because that is what triggers the lose when there is no buildings.

Next, make variables..
click on new variable, make it an intiger (not array) and the value is of how many units there is for that player.
^^do this for how ever many players there are.^^

Next you make a trigger.
Event: a unit dies
condition: unit owned by player(whatever player owned them)
action: set variable = variable - 1
^^do this for how ever many players there are.^^

now, make a new trigger...
event: Time (periodic event (every 1-5 secs))
condition: none
action: If variable1 = 0 then Defeat for player else do nothing
Now, continue to make new actions on the same trigger, the same action, but for the variable for the next player.



Im sorry, if your not that skilled, this may not make much sense to you.. but this is one way to do it.. there are others.. but this is what would be easiest to me.. good luck :D

By the way.. This is for school?? man.. what class is this for, i am kinda uhhh interested.. a class that you need this for? :P lolz :D
01-19-2004, 12:21 AM#3
AllPainful
VolEs I think you went about it a harder way... There is even easier way... :D

Try:
Code:
Event
  Player 1 food used becomes 0
  Player 2 food used becomes 0
  Player 3 food used becomes 0
  Player 4 food used becomes 0
  Player 5 food used becomes 0
  Player 6 food used becomes 0
  Player 7 food used becomes 0
  Player 8 food used becomes 0
Conditions
Actions
  Defeat player (triggering player)

1 trigger, NON-periodic (so less lag), no variables...

Besides, to do it your way would be even easier WITH an array variable:

but your way has a flaw, if the player summons a Water Elemental (or any other summoned unit) and it dies it would take away a "Unit" when in reality none of the original units have died.
01-19-2004, 12:51 AM#4
VolEs
that would never have even crossed my mind.. lolz X.x
*slaps himself*
thx for correcting me
01-19-2004, 01:20 AM#5
AllPainful
LOL, the funny thing is I normally never come up with the easy way to do things... normally I am the one with the hard way to do something and someone is correcting me. :ggani:
01-19-2004, 02:35 AM#6
TallgeeseIIII
nah, the the REALLY funny thing is, this project was due last week, but don't worry we figured it out ourselves, thanks anyway :D
01-19-2004, 04:34 AM#7
AllPainful
Quote:
Originally posted by TallgeeseIIII
nah, the the REALLY funny thing is, this project was due last week, but don't worry we figured it out ourselves, thanks anyway :D


Sorry about that TallgeeseIIII, had I noticed that VolEs broke one of the unwritten forum rules and resurrected a dead thread I would not have posted.

I just noticed your thread was created over 2 weeks ago.

VolEs, be careful. DON'T resurrect dead threads, do it too often and you can get in trouble with the moderators. It may not be listed in the "Forum Rules" but the mods still don't like it normally. Although some cases are different.
01-19-2004, 05:13 AM#8
VolEs
Very sorry guys.. i was looking at the bottom when i was at a forum, and it said triggering help, and i thought i could help :( i didnt notice the date X.x
01-19-2004, 05:16 AM#9
AllPainful
No problem, I've accidently done that before too, so as a rule, I never post on a thread that is past page 3 on the list and I always check the date of any threads on page 3 before posting.
01-19-2004, 05:52 AM#10
Pesmerga
you people actually look beyond page 1? bah too much work for me
01-19-2004, 06:29 AM#11
AllPainful
LOL, rarely do I look beyond page one, normally if I do go past page one, its only because I haven't been on in a day and there are 2 pages of new posts....

But when I do I never go past page 3
01-19-2004, 12:15 PM#12
Dead-Inside
The only posts I look beyond page 1 on are... Screenshots posts, and my own posts.

In this sense, I do find it rather odd I get any responses at all sometimes.

Regards
Dead-Inside