I need some help

gabriono

New Member
Reaction score
0
I want to create a map in witch you create units and fight. I want to create rounds (make units and them fight in round 1, remove units from game and start a preparation time< 30 sec>. and then fight.) but i dont know how to make Triggers tha pick the winner of the round (The player who didint lost all the units <last man standing> ). I made triggers to chose modes(FFA, Teams of 2 and teams of 5 <2 teams only, bc i added only 10 players> ) and i dont now how to make Triggers tha pick the team who won the round.

I am new in war3 editor, i only created 1 map before and edited 2 or 3 maps but not comlicated things. Please dont say "make an easier map" or "go search tutorials", i realy want to finnish the map and if you know where i can find tutorials about this thing link please... i didint find anything:banghead:
 

hopy

Active Member
Reaction score
64
Is it a team map or just Free-for-all?

Anyways... for a free for all you'd need something like this:
Trigger:
  • Begin
    • Events
      • Time - Elapsed game time is 5.00 seconds
    • Conditions
    • Actions
      • Set Interger = 1
      • Set Regions[1] = (Region1)
      • Set Regions[2] = (Region2)
      • Set Regions[3] = (Region3)
      • Set Regions[4] = (Region4)
      • Set Unit[1] = Footman
      • Set Unit[2] = Dark Troll
      • Set Unit[3] = Spitting Spider
      • Set Unit[4] = Furbolg Champion
      • Game - Display to (All players) the text: The first round will...
      • Countdown Timer - Start Round as a One-shot timer that will expire in 20.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Next Round:
      • Countdown Timer - Show (Last created timer window)

Trigger:
  • Round Start
    • Events
      • Time - Round expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 4, do (Actions)
        • Loop - Actions
          • Set Point = (Center of Town &lt;gen&gt;)
          • Unit - Create 1 Unit[Interger] for Player(Intreger A) at Point facing Default building facing degrees
          • Custom script: call RemoveLocation (udg_Point)
      • Set Unit_Group = Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Unit[Interger]))

Trigger:
  • Round End
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is in Unit_Group) Equal to True
    • Actions
      • Unit Group - Remove (Triggering unit) from Unit_Group
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in Unit_Group) Equal to 1
        • Then - Actions
          • Custom script: call DestroyGroup (udg_Unit_Group)
          • Unit Group - Pick every unit in Unit_Group and do (Actions)
            • Loop - Actions
              • Game - Display to (All players matching ((Owner of (Triggering unit)) Equal to (Matching player))) the text: (Good Job you have won Round: + ((String(Interger)) + . The Next round will start in 20 seconds.))
              • Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) + (5 x Interger))
          • Countdown Timer - Start Round as a One-shot timer that will expire in 20.00 seconds
          • Countdown Timer - Create a timer window for (Last started timer) with title Next Round:
          • Countdown Timer - Show (Last created timer window)
          • Set Interger = (Interger + 1)
        • Else - Actions


Basicly a bit edited version of my Tower Defence wave triggers, but it should work just as well. :p

Point is a point varaible.
Unit_Group is a unit group variable.
Round is a timer variable.
Unit[] is a unit variable array.

What it does: Creates a different unit for every player every round at their region.
If there's only one unit left the winner will get gold, a massage and the next round will start afther 20 seconds in which people can buy some items or something.

By the way, I'm sorry for not being able to help on that add/remove gold thread. I forgot that the remove gold didn't exist.
 

X-maul

AKA: Demtrod
Reaction score
201
I'm sorry, but the ansver must be make an easier map. If you are new to world editor you wont be able to create a map like that yourself, you will need someone to create all the triggers for you, and you will get sick and tired of it.

For your question: you can create a unit group with all the units owned by player 1 and 2 for player 2, then check whose reach 0 first.

EDIT: Beaten by a better ansver from Hopy ;)
 

gabriono

New Member
Reaction score
0
Ty @X-Maul, i decided to leave the map unfinished and when i will know how to make the trigger i will finnish the map, hopy tnx for help but its not what i want, each player can chose 4 races and each race have 11 units.
+rep for both becouse you both helped me(now i have an ideea how to create the trigger) and thread Closed!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top