Guide - Tower Defense

D

Danger

Guest
errmmm ok but i dont know in what trigger is the problem :|.... i post all triggers?
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
No, please don't post all of the triggers. Make sure you have done everything like I told in the tutorial. There is also a downloadable demo map attached down, at the bottom of the third post, which should help.
 
D

Danger

Guest
Sincerly i made ALLLL THAT
Better way if i post the map you fix what you think its wrong and after you post again and anything will be fine ok?

EDIT: Andrewgosu check you private messages please :)
EDIT2: i am out of all ideeas i tryed anything to do... THE CREEPS STILL NOT FOLLOW THE PATH( REGION ) THEY SPAWN ON OTHER PLACE .... AND THEY ARE STAYING ONT SAME PLACE :( i dont have any other ideeas :( I AM GONNA :banghead: ~x(
 

Attachments

  • Around TD.w3x
    37 KB · Views: 365
B

bulldogg13

Guest
Better way if i post the map you fix what you think its wrong and after you post again and anything will be fine ok?

well not to be mean, that would be a horrible idea. why have him do your work??? doesn't make sense. but you could ask him maybe check it out and have him tell you what to go through to find the problem. but just hmmm just try to keep working at it i guess. i still have billions of problems to deal with too lol with the one i am trying to make :p, but i try and mess around with everything to see what they do and stuff. i am not telling you to not ask questions anymore, keep asking, but just try and figure out first what some triggers and other things do. :p
but keep up with the work at it ;)

~Bulldogg13

EDIT:
------------------------------------

ok i checked out your map, you have lots of work ahead of you in order for you to have it work. i will post something later that will show some things you can work on.
 
D

Danger

Guest
ok....

1 more thing... i didn't told him to make my work... i just sayd to him to CHECK it ( VERIFY IT ) what is bad on it .... because i dont have any oyher idea about it... i made all ideeas and nothing changed :| :(
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Danger, You have to place the players starting location on top of the "spawn" region, not the creeps starting location. Because You are making a single player TD, there is no need for the other players. Also, you have set the region arrays wrong.

Should be,

Code:
Region Initialization
    Events
        Map initialization
    Conditions
    Actions
        Set regionArray[[B]0[/B]] = Spawn <gen>
        Set regionArray[[B]1[/B]] = Region 002 <gen>
        Set regionArray[[B]2[/B]] = Region 005 <gen>
        Set regionArray[[B]3[/B]] = Region 008 <gen>
        Set regionArray[[B]4[/B]] = Region 010 <gen>
        Set regionArray[[B]5[/B]] = Region 012 <gen>
        Set regionArray[[B]6[/B]] = Region 014 <gen>
        Set regionArray[[B]7[/B]] = Region 016 <gen>
        Set regionArray[[B]8[/B]] = Region 017 <gen>
        Set regionArray[[B]9[/B]] = Region 019 <gen>
        Set regionArray[[B]10[/B]] = Region 020 <gen>
        Set regionArray[[B]11[/B]] = Region 021 <gen>
        Set regionArray[[B]12[/B]] = END <gen>

Not like,

Code:
Region Initialization
    Events
        Map initialization
    Conditions
    Actions
        Set regionArray[[B]1[/B]] = Spawn <gen>
        Set regionArray[[B]2[/B]] = Region 002 <gen>
        Set regionArray[[B]5[/B]] = Region 005 <gen>
        Set regionArray[[B]8[/B]] = Region 008 <gen>
        Set regionArray[[B]10[/B]] = Region 010 <gen>
        Set regionArray[[B]12[/B]] = Region 012 <gen>
        Set regionArray[[B]14[/B]] = Region 014 <gen>
        Set regionArray[[B]16[/B]] = Region 016 <gen>
        Set regionArray[[B]17[/B]] = Region 017 <gen>
        Set regionArray[[B]19[/B]] = Region 019 <gen>
        Set regionArray[[B]20[/B]] = Region 020 <gen>
        Set regionArray[[B]21[/B]] = Region 021 <gen>
        Set regionArray[[B]22[/B]] = END <gen>

I said, check that You have done everything I have mentioned in my tutorial, right...
 
W

whiteboi953

Guest
ok so i have reviewed my code and your code several times and i cannot find out my problem. i wont bother posting a sc of my code because i know for a fact its exactly like yours. my problem is that when the units spawn onto the spawn gen region, they do not proceed to the next region. i was doing some testing and i placed a killable builder near where the footmen spawn. when the footmen are drawn from the region, the kill the builder, this is a given. What is weird is when they return to the spawn gen, they then proceed to the next correct region. i was wondering where the error is and how i can fix it. thanx
 
W

whiteboi953

Guest
also i was wondering if you could further explain the tmpPoint variable. im not fully grasping that concept. i know its a point on the map but how does the editor know where it is and also, where is it lol. thanx

could you also explain this line of code:

Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)

this comes from the pathing trigger that is telling the units to move to the next region. im realized i dont know what this is saying.

here one of the lines of code that uses the tmpPoint variable that i dont understand:

Set tmpPoint = (Center of regionArray[(Custom value of (Triggering unit))])

i mainly dont get what custom value of triggering unit is defining.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Ok, I'll explain. Firstly, the regions are initialized,

-Events
Map initialization
-Conditions
-Actions
Set regionArray[0] = Spawn <gen>
Set regionArray[1] = Checkpoint <gen>
Set regionArray[2] = Checkpoint 2 <gen>
Set regionArray[3] = Checkpoint 3 <gen>
Set regionArray[4] = Checkpoint 4 <gen>
Set regionArray[5] = Checkpoint 5 <gen>

When the unit enters the regionArray[0] aka the "Spawn" region, its custom value is initially 0. It will be changed to custom value + 1 with the "
Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)" action. After that, it will be ordered to move to regionArray[(Custom value of (the unit))], in our case, it would be regionArray[1](because 0 + 1 is 1) and regionArray[1] is "Checkpoint 2 <gen>". And basically it loops to that point when it reaches the "end" region.
 
W

whiteboi953

Guest
ok so i got most of it working but still one problem. the units move to the correct regions except for regions three and(if im remembering correctly the eighth region). they just seem to skipp them and continiue on. my code:

region initialization 1

Events
Map initialization
Conditions
Actions
Set regionArray[0] = spawn top left <gen>
Set regionArray[1] = first top left <gen>
Set regionArray[2] = second top left <gen>
Set regionArray[3] = third top left <gen>
Set regionArray[4] = fourth top left <gen>
Set regionArray[5] = fifth top left <gen>
Set regionArray[6] = sixth top left <gen>
Set regionArray[7] = seventh top left <gen>
Set regionArray[8] = eighth top left <gen>
Set regionArray[9] = ninth top left <gen>
Set regionArray[10] = tenth top left <gen>
Set regionArray[11] = eleventh top left <gen>
Set regionArray[12] = twelveth top left <gen>
Set regionArray[13] = thirteenth top left <gen>
Set regionArray[14] = fourteenth top left <gen>
Set regionArray[15] = fifteenth top left <gen>
Set regionArray[16] = sixteenth top left <gen>
Set regionArray[17] = seventeenth top left <gen>
Set regionArray[18] = eighteenth top left <gen>
Set regionArray[19] = nineteenth top left <gen>
Set regionArray[20] = twentieth top left <gen>
Set regionArray[21] = twenty first top left <gen>
Set regionArray[22] = endpoint top left <gen>


region

Events
Unit - A unit enters spawn top left <gen>
Unit - A unit enters first top left <gen>
Unit - A unit enters second top left <gen>
Unit - A unit enters third top left <gen>
Unit - A unit enters fourth top left <gen>
Unit - A unit enters fifth top left <gen>
Unit - A unit enters sixth top left <gen>
Unit - A unit enters seventh top left <gen>
Unit - A unit enters eighth top left <gen>
Unit - A unit enters ninth top left <gen>
Unit - A unit enters tenth top left <gen>
Unit - A unit enters eleventh top left <gen>
Unit - A unit enters twelveth top left <gen>
Unit - A unit enters thirteenth top left <gen>
Unit - A unit enters fourteenth top left <gen>
Unit - A unit enters fifteenth top left <gen>
Unit - A unit enters sixteenth top left <gen>
Unit - A unit enters seventeenth top left <gen>
Unit - A unit enters eighteenth top left <gen>
Unit - A unit enters nineteenth top left <gen>
Unit - A unit enters twentieth top left <gen>
Unit - A unit enters twenty first top left <gen>
Unit - A unit enters endpoint top left <gen>
Conditions
(Owner of (Triggering unit)) Equal to hostileCreeps
Actions
Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)
Set tmpPoint = (Center of regionArray[(Custom value of (Triggering unit))])
Unit - Order (Triggering unit) to Move To tmpPoint
Custom script: call RemoveLocation( udg_tmpPoint)
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Yes, MS Excel. But, You can do the planning in any text editing program, or, even on paper. ;)
 
W

whiteboi953

Guest
andrewgosu will you answer my question above on the seventh page.
 
H

h0vding

Guest
ok I have been trying to work something out here for like 4-6hours :\
pretty noob at this.. I get most of the things going with the variables stuff.. but one point where I cant figure out how to setup is where it say's
etc.
Set creepArray[1] = Footman
Set creepCountIndex = 5

how to get "footman" / "5" there or incase the monster I added for lvl 1 spawn creep...
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
To set variables, open the variables editor (CTRL + B) then create a new variable (Sign with the "+X") Name it, then select the type. Press ok...

Then, click the actions button (The "movie ACTION" sign) then go to "General | Set Variable"... Select your variable then click the value and OK then you're done! :D
 
H

h0vding

Guest
To set variables, open the variables editor (CTRL + B) then create a new variable (Sign with the "+X") Name it, then select the type. Press ok...

Then, click the actions button (The "movie ACTION" sign) then go to "General | Set Variable"... Select your variable then click the value and OK then you're done! :D

yes I know how to creat variables.. but it says
Set creepArray[1] = Footman
Set creepCountIndex = 5

dont under stand how to get "5" or "footman"..
I got "Set creepArray[1] = "
cant get that afther "="
(edit)

what to do there :S
(edit)
 
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