| 11-29-2003, 01:02 AM | #1 |
I am going to try an explain this but its sort of complicated, so bear with me. Every 30 seconds, units (equal to player 1) in region x are spawned in region y. When a unit enters region y (equal to player 1) they are ordered to attack-move a certain region by default. ~ this is already made. What I want is to have 30 seconds be rounds. Every 90 seconds (3 rounds) The game will ask player 2, to select (click) a stronghold for the units who spawn in region y to attack-move. Based on what stronghold that is selected, the region that the stronghold is in, the units will then attack-move every round from now on. This will happen every 90 seconds (3 rounds) and if no stronghold is selected, units will just attack-move the previously assigned location. What I need help on is creating the above trigger, and also have a counter that says what round it is and how long until the next round. This is a pretty complicated trigger, but if anyone can even leave simple feedback or basic code that I can work from I would really appreciate it. |
| 11-29-2003, 02:55 AM | #2 |
This trigger is for the changing of rounds E: Every 30 seconds C: (none) A: set rounds = (rounds + 1) set the title of leaderboard to ("the title of the leaderboard: Round " + Integer2String(rounds)) (add more actions) Rounds is an integer variable Leaderboard is your Kills/Rounds Counter (if you have one) This is the trigger that turns on the selection trigger below it and tells the player to do something E: Every 90 seconds C: (whatever player) is playing equal to true A: Display text to Playergroup(whatever player): "Please pick the fort to be attacked"(or whatever) Turn Selection Trigger (for whatever player) on FortToAttack is a Unit Array. This is the selection trigger (this should be off at first): E: Player whatever selects a unit C: Unit type of Selected unit equal to Fort A: set FortToAttack[player number of whatever player] = Selected Unit When the units spawn, have them attack FortToAttack[player number of whoever] or if they aren't attacking the fort itself, but attacking to where it is, then do attack move to (position of FortToAttack[Player Number of Whoever] For the Round Timer, you could just make a timer and give it a window. |
| 11-29-2003, 08:38 AM | #3 | ||
Quote:
Do you think you could go into more detail on how the leaderboard creation works? I want to have like three sub-titles. (like team 1, team 2, team 3 ect. Under each time will list the players in that team) I also want it to display kills that are only from players killing players, but not really sure how to do that. Also for: Quote:
Thanks! |
