Rounds?
Aug 11 2009, 11:07 pm
By: Mokushi  

Aug 11 2009, 11:07 pm Mokushi Post #1



My friend KingOfShadows is making a game that requires him to make rounds, however its not so easy because each player gets 10 units and 1 hero, they get additional units every 2-5 minutes. He refuses to ask for help himself because he is shy among being among map-makers ahead of him. He said he'd probably join when he got better at mapping. However that's beyond the point. If a player wins the round by eliminating the other units how would he start a new round without going in and manually doing a "All units but this player" thing.



None.

Aug 11 2009, 11:18 pm JaFF Post #2



Say players 1 - 6 are humans.

Then he needs a trigger for each of these players that detects when this player has at least one unit and all the other palyers have no units. This can be done as follows:

Code
Trigger 1: owned by player 1

Conditions:
Current player brings at least 1 [men] to [fighting arena]
Player 2 brings exactly 0 [men] to [fighting arena]
Player 3 brings exactly 0 [men] to [fighting arena]
Player 4 brings exactly 0 [men] to [fighting arena]
Player 5 brings exactly 0 [men] to [fighting arena]
Player 6 brings exactly 0 [men] to [fighting arena]

Actions:
Preserve trigger
Remove all [men] for Current Player at [fighting arena]
other actions you may need such as adding score, money, etc. And some switch to start a new round.

Code
Trigger 2: owned by player 2

Conditions:
Current player brings at least 1 [men] to [fighting arena]
Player 1 brings exactly 0 [men] to [fighting arena]
Player 3 brings exactly 0 [men] to [fighting arena]
Player 4 brings exactly 0 [men] to [fighting arena]
Player 5 brings exactly 0 [men] to [fighting arena]
Player 6 brings exactly 0 [men] to [fighting arena]

Actions:
Preserve trigger
Remove all [men] for Current Player at [fighting arena]
other actions you may need such as adding score, money, etc. And some switch to start a new round.


...and so on until you hit the last human player:
Code
Trigger 6: owned by player 6

Conditions:
Current player brings at least 1 [men] to [fighting arena]
Player 1 brings exactly 0 [men] to [fighting arena]
Player 2 brings exactly 0 [men] to [fighting arena]
Player 3 brings exactly 0 [men] to [fighting arena]
Player 4 brings exactly 0 [men] to [fighting arena]
Player 5 brings exactly 0 [men] to [fighting arena]

Actions:
Preserve trigger
Remove all [men] for Current Player at [fighting arena]
other actions you may need such as adding score, money, etc. And some switch to start a new round.




None.

Aug 11 2009, 11:23 pm Mokushi Post #3



Thanks.



None.

Aug 12 2009, 1:40 am Roy Post #4

An artist's depiction of an Extended Unit Death

Quote from JaFF
Say players 1 - 6 are humans.

(A bunch of stuff)
Whoa. Would it not be easier/better to use:
Code
Trigger owned by Force 1 (Or all human players)

Conditions:
Current player brings at least 1 [men] to [fighting arena]
Foes brings exactly 0 [men] to [fighting arena]

Actions:
Preserve trigger
Remove all [men] for Current Player at [fighting arena]
other actions you may need such as adding score, money, etc. And some switch to start a new round.





Aug 12 2009, 2:14 pm JaFF Post #5



Quote from Roy
Quote from JaFF
Say players 1 - 6 are humans.

(A bunch of stuff)
Whoa. Would it not be easier/better to use:
Code
Trigger owned by Force 1 (Or all human players)

Conditions:
Current player brings at least 1 [men] to [fighting arena]
Foes brings exactly 0 [men] to [fighting arena]

Actions:
Preserve trigger
Remove all [men] for Current Player at [fighting arena]
other actions you may need such as adding score, money, etc. And some switch to start a new round.
Not enough information was given; I gave a bulky solution that works for all cases. There are many other possibilities that should be chosen on a case-by-case basis.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Beauty Wares, jun3hong