give me a easy tutorial

Hey a way which I think works better is to use handicap instead, so since players can select a race and handicap you can reset it to 100% but if they select Night Elf and 90% they become naga or Orc and 90% they become Fel Orcs it's the technique I used in my own altered melees. When I'm back at my laptop I'll mock up an example trigger for you to see.

I'll also make an example for your chat method.
 
Level 13
Joined
Aug 18, 2024
Messages
209
Hey a way which I think works better is to use handicap instead, so since players can select a race and handicap you can reset it to 100% but if they select Night Elf and 90% they become naga or Orc and 90% they become Fel Orcs it's the technique I used in my own altered melees. When I'm back at my laptop I'll mock up an example trigger for you to see.

I'll also make an example for your chat method.
hmm okay footman
 
Level 13
Joined
Aug 18, 2024
Messages
209
Hey a way which I think works better is to use handicap instead, so since players can select a race and handicap you can reset it to 100% but if they select Night Elf and 90% they become naga or Orc and 90% they become Fel Orcs it's the technique I used in my own altered melees. When I'm back at my laptop I'll mock up an example trigger for you to see.

I'll also make an example for your chat method.
example for my chat method? ok


i type "FEL" I will play as Fel orcs
or i will type "NAG" and i will play as naga


edit: the best examples of maps using triggers like that are maps Like FieldOfConquest by Snowforce (i guess thats his name idk) and Warhammer Eternal Strife by Nightmare
 
Last edited:
Typically when I did the 90% thing I would use JASS to do it so that I could use the existing triggers that spawn the Human/Orc/NE/Undead and change those triggers directly -- the ones built into the game -- to spawn the new units as fifth/six options instead based off of handicap.

Here's a reply post I made to someone else's tutorial, where I gave my own tutorial as a reply. Although this was written 12 years ago, I don't think the fundamentals have changed too much. On Reforged there are some internal things that can optionally make it easier now, such as adding your custom town halls to the Gameplay Constants section in Categorization - Town Hall for the "town hall type unit" equivalency. The patch 1.32 changed how that works so that by default it will cause those new towns to prevent "You will be revealed to your opponents," although I think you can also fix the reveal thing in my link above, and so either way works whether you use my thing or leverage the 1.32 fix.

But that's a little bit more advanced. If you just want NAG triggers, that's pretty easy.

  • Events
    • Player - Player 1 (Red) enters NAG as (an exact match)
    • Player - Player 2 (Blue) enters NAG as (an exact match)
    • Player - Player 3 (Teal) enters NAG as (an exact match)
    • Player - Player 4 (Purple) enters NAG as (an exact match)
    • Player - Player 5 (Yellow) enters NAG as (an exact match)
    • Player - Player 6 (Orange) enters NAG as (an exact match)
    • Player - Player 7 (Green) enters NAG as (an exact match)
    • Player - Player 8 (Pink) enters NAG as (an exact match)
    • Player - Player 9 (Gray) enters NAG as (an exact match)
    • Player - Player 10 (Light Blue) enters NAG as (an exact match)
    • Player - Player 11 (Dark Green) enters NAG as (an exact match)
    • Player - Player 12 (Brown) enters NAG as (an exact match)
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Town Hall)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Temple of Tides) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Peasant)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Mur'gul Slave) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Great Hall)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Temple of Tides) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Peon)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Mur'gul Slave) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Necropolis)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Temple of Tides) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Acolyte)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Mur'gul Slave) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Hauntd Gold Mine)) and do (Multiple actions)
      • Actions
        • Kill (Picked unit)
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Tree of Life)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Temple of Tides) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Wisp)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (Mur'gul Slave) using (the new unit's relative) life and mana
But you probably want to add something to turn these functions off shortly after the game starts, so that they can't use this command 30 minutes into the game to do some weird interaction with replacing things multiple times, such as after capturing the enemy players workers with Charm

Edit:

Also, if I were you, I would take the basic example that I pasted above and upgrade it so that it was easy to copy & paste to make more races like Fel Orcs. To do that, you would want to have Mur'gul Slave and Temple of Tides in the trigger only 1 time with a variable, so that you can change them in one place after copying the trigger. It's boring enough to have to edit the event to say FEL instead of NAG each of the 12 times for the twelve players.

So to make that copiable version, maybe I would do this:

Click on yellow X at top of trigger editor. Click to make new variable. "Name" should be WORKER_TYPE and "Type" of variable should be "Unit-type." Then make a second one with "Name" set to TOWNHALL_TYPE and "Type" of variable should be "Unit-type."

Then add 2 actions to Set Variable on these two to their value, and afterwards change all of the Replace (whatever) with (whatever) actions to use these new variables.

That way, when you copy this trigger you can just edit the WORKER_TYPE and TOWNHALL_TYPE parts, and change "NAG" to some other thing.

  • Events
    • Player - Player 1 (Red) enters NAG as (an exact match)
    • Player - Player 2 (Blue) enters NAG as (an exact match)
    • Player - Player 3 (Teal) enters NAG as (an exact match)
    • Player - Player 4 (Purple) enters NAG as (an exact match)
    • Player - Player 5 (Yellow) enters NAG as (an exact match)
    • Player - Player 6 (Orange) enters NAG as (an exact match)
    • Player - Player 7 (Green) enters NAG as (an exact match)
    • Player - Player 8 (Pink) enters NAG as (an exact match)
    • Player - Player 9 (Gray) enters NAG as (an exact match)
    • Player - Player 10 (Light Blue) enters NAG as (an exact match)
    • Player - Player 11 (Dark Green) enters NAG as (an exact match)
    • Player - Player 12 (Brown) enters NAG as (an exact match)
  • Conditions
  • Actions
    • Variable - Set VariableSet WORKER_TYPE equal to (Mur'gul Slave)
    • Variable - Set VariableSet TOWNHALL_TYPE equal to (Temple of Tides)
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Town Hall)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (TOWNHALL_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Peasant)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (WORKER_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Great Hall)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (TOWNHALL_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Peon)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (WORKER_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Necropolis)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (TOWNHALL_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Acolyte)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (WORKER_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Hauntd Gold Mine)) and do (Multiple actions)
      • Actions
        • Kill (Picked unit)
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Tree of Life)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (TOWNHALL_TYPE) using (the new unit's relative) life and mana
    • Unit Group - Pick every unit in (Units owned by (Triggering Player) of type (Wisp)) and do (Multiple actions)
      • Actions
        • Replace (Picked unit) with a (WORKER_TYPE) using (the new unit's relative) life and mana
 
Last edited:

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
oh yeah but idk how to copy the triggers
You want to create a map but you don't want learn how to do the most basic things? This is like "Timmy's first trigger" levels of easy, I'm very confident that you can figure out how to do this yourself.

Start by looking through the list of possible Events. HINT -> See the prefix word Player, that means it's found in the Player section.
Then move onto the Conditions, which is empty so that keeps it simple.
Then move onto the Actions. You can use the Search For Text feature to help find them.
Everything is categorized in alphabetical order (Player, Unit Group, Unit). Use word association and patterns to figure things out, Warcraft 3 isn't that complicated of a game.

Anyway, adding onto what Retera said, you could also do it like this:
  • Events
    • Player - Player 1 (Red) enters NAG as (an exact match)
    • ... Add more Players as necessary
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) is A town-hall-type unit) Equal to True
          • Then - Actions
            • Unit - Replace (Picked unit) with a Temple of Tides using The new unit's max life and mana
          • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) is A peon-type unit) Equal to True
          • Then - Actions
            • Unit - Replace (Picked unit) with a Mur'gul Slave using The new unit's max life and mana
          • Else - Actions
It's often easier to use one Pick Every Unit loop and rely on the If Then Else action to keep it organized and readable.

There's also the OR condition to ask multiple questions that will all have the same outcome:
  • Loop - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Unit-type of (Picked unit)) Equal to Mur'gul Slave
            • (Unit-type of (Picked unit)) Equal to Dragon Turtle
            • (Unit-type of (Picked unit)) Equal to Naga Royal Guard
      • Then - Actions
        • ... Do something
      • Else - Actions
 
Last edited:
Top