• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] My first map FAIL! HELP

Status
Not open for further replies.
Level 1
Joined
Jul 27, 2012
Messages
7
SOLVED!!! My first map FAIL! HELP

So i cant get the DEFEAT triggers to work, and the units keep backtracking for some reason PLEASE HELP!
Ps. this is my first map and it is a td extremely simple but ofc i failed.
Pss. For some reason even after i saved the map i cant upload it to the site as it isn't listed in the files i can choose from please help!
 
Last edited:
Level 4
Joined
Jul 14, 2012
Messages
100
  • Defeat
    • Events
      • Unit - A unit enters End of Maze <gen>
    • Conditions
    • Actions
      • Set Lives = (Lives - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Lives Equal to 0
        • Then - Actions
          • Game - Defeat Player 1 (Red) with the message: Too many creeps lea...
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: A creep leaked.
I'm assuming you know how a region works and to make units move along your "maze" for your TD, so I made the final destination a region called End of Maze. So basically when a unit enters this region, it means they completed the maze unstopped, so the player would lose a life. He simply gets a life deducted via the first action Set Lives= Lives-1. You can set what his initial value is by going to your variables or in initilization by settings Lives = something.

Then do an If/Then/Else, and if the lives = 0, the Defeat Command is under Game, not Player. And if the lives are not = 0, then you could Do Nothing, but I put a little Game message that says A creep leaked.
 
Level 1
Joined
Jul 27, 2012
Messages
7
  • Defeat
    • Events
      • Unit - A unit enters End of Maze <gen>
    • Conditions
    • Actions
      • Set Lives = (Lives - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Lives Equal to 0
        • Then - Actions
          • Game - Defeat Player 1 (Red) with the message: Too many creeps lea...
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: A creep leaked.
I'm assuming you know how a region works and to make units move along your "maze" for your TD, so I made the final destination a region called End of Maze. So basically when a unit enters this region, it means they completed the maze unstopped, so the player would lose a life. He simply gets a life deducted via the first action Set Lives= Lives-1. You can set what his initial value is by going to your variables or in initilization by settings Lives = something.

Then do an If/Then/Else, and if the lives = 0, the Defeat Command is under Game, not Player. And if the lives are not = 0, then you could Do Nothing, but I put a little Game message that says A creep leaked.

Thank you very much it worked! but for some reason the units (at random points in the maze) turn around and go back towards the spawn. (i turned off flee on all units)

move
Events
Unit - A unit enters StartPoint 1 <gen>
Conditions
Actions
Unit - Order (Entering unit) to Move To (Center of endpoint 1 <gen>)
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
try using player as a computer instead of neutral xy if you use neutrals.
There are a lot of problem with neutral units which are ordered to move
for instance: if you order neutral units to attack-move to centre of map and they go around something at lets say 1/2 of way, they will kill(or try to do so) those things and then go back where they spawned but if the units are player X they continue to go.
Good example is dota creeps, they are not neutral hostile but they are player 1(sentinels) and player 6(scourge).

Hope this solves your problems.
 
Level 1
Joined
Jul 27, 2012
Messages
7
try using player as a computer instead of neutral xy if you use neutrals.
There are a lot of problem with neutral units which are ordered to move
for instance: if you order neutral units to attack-move to centre of map and they go around something at lets say 1/2 of way, they will kill(or try to do so) those things and then go back where they spawned but if the units are player X they continue to go.
Good example is dota creeps, they are not neutral hostile but they are player 1(sentinels) and player 6(scourge).

Hope this solves your problems.

THANKS A BUNCH!!! it worked!
 
Level 1
Joined
Jul 27, 2012
Messages
7
Ok new problem haha! The map after it saves doesnt show up in the save location of:
C:\Program Files (x86)\Warcraft III\Maps\My Maps
instead it creats a LINk not a w3x file here:
C:\Users\David\AppData\Roaming\Microsoft\Windows\Recent
and when i click the link this shows up:
windows is searching for MyTdV1.w3x. to locate the file yourself, click browse

Now when i press saveAs it shows up there but with a yellow lock on the icon and after i save it isn't in the list anymore.
Also I can test map but if I Open WC3 and go to create a game The map doesn't show up in the list. Please help again and ty for all the help so far!
 
Level 4
Joined
Jul 14, 2012
Messages
100
You have to Save As in a folder called Maps under your main Warcraft 3 Folder. When you go to create a game, the "list" is everything under the Maps folder. Just save it all there.

Also, to play downloaded game, its under a folder called Downloads, also in the Warcraft 3 folder.
 
Level 1
Joined
Jul 27, 2012
Messages
7
You have to Save As in a folder called Maps under your main Warcraft 3 Folder. When you go to create a game, the "list" is everything under the Maps folder. Just save it all there.

Also, to play downloaded game, its under a folder called Downloads, also in the Warcraft 3 folder.

LOL i know this it doesnt show up in the list after i save as or just save but when i press save as and it shows the folder it shows the map there., but when i look for it then it doesnt exist
 
Status
Not open for further replies.
Top