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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      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