Guide - Tower Defense

kungfuturte0

New Member
Reaction score
2
Hmm...

I must say this is an AMAZING!!! tutorial. I new the basics of TDs now i no the advanced parts so thanks a bunch! :D One thing i need help on tho :( Do you no how to make it so that when a life is lost text appears saying summat like: A life has been lost! XX Lifes remaining! I can make it say life lost but not how many lifes remaining! Thanks for any help :D
 

master maste

New Member
Reaction score
32
you mean like this:

Code:
Unit - A unit enters (You end region where you loose lifes)
(Unit-type of (Triggering unit)) Not equal to YourBuilder
Game - Display to (All players) the text: You have lost a lif...
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Insert the following lines to the "Lose Lives" trigger:

"Game - Display to inGamePlayers the text: (1 life lost! + ((String(livesCount)) + lives remaining.))"
 
D

Drummer13

Guest
I love your tutorial but i'm stuck. In my TD I have 10 players and I was wondering if you knew the codes for gray and light blue.

Note: Player colours.

|c00ff0303 – Red
|c000042ff – Blue
|c001ce6b9 – Teal
|c00540081 – Purple
|c00fffc01 – Yellow
|c00feba0e – Orange
|c0020c000 – Green
|c00e55bb0 - Pink
 

LiL_AH

New Member
Reaction score
0
Help :0

So I am using your template (really I couldnt be assed to write all those scripts) and changed some things, this includes the pathing since I want to make a two team hero defence thing. First I went with changing pathing / spawning. I made people spawn from red, pink, blue, and teal. I then only edited the pathing for red, and just a minor change for pink at the bottom. But for some reason, once they get to red/pink 6 they start running to the middle of the map. I moved the end spot :p, but the blue and teal spawns all walk straight into it... The creeps are as in your template from player 12(brown) and I allready set the creep return time etc. to 999... WHAT AM I DOING WRONG ?!:banghead: :confused:

EDIT:
OMFG I can't believe what the little shitty bug was... Just before I was going to turn off my computer I test my map again and see that the creeps, after going to their starting spot they would follow the route again, and end up at the other spawn... I just overlapped the last checkpoint... gah so obvious -.-
EDIT2: Nearly forgot to say thank you for the awesome tut :D
 

morno

Active Member
Reaction score
2
hello all!

i have followd the instruction and the creeps dont spwan i have rechecked it all like 5 times now and im getting sick if it.. here is my trigger:

Code:
Spwan on player 1
    Events
        Map initialization
    Conditions
    Actions
        Set Regionarry[0] = SPWAN P1 <gen>
        Set Regionarry[1] = P1 01 <gen>
        Set Regionarry[2] = P1 02 <gen>
        Set Regionarry[3] = P1 03 <gen>
        Set Regionarry[4] = P1 04 <gen>
        Set Regionarry[5] = P1 05 <gen>
        Set Regionarry[6] = P1 06 <gen>
        Set Regionarry[7] = P1 07 <gen>
        Set Regionarry[8] = P1 08 <gen>
        Set Regionarry[9] = P1 09 <gen>
        Set Regionarry[10] = P1 10 <gen>
        Set Regionarry[11] = P1 11 <gen>
        Set Regionarry[12] = P1 12 <gen>
        Set Regionarry[13] = P1 13 <gen>
        Set Regionarry[14] = P1 14 <gen>
        Set Regionarry[15] = P1 15 <gen>

and here is the region they will spwan in the SPWAN P1<gen>:

Code:
Spwan p1
    Events
        Unit - A unit enters SPWAN P1 <gen>
        Unit - A unit enters P1 01 <gen>
        Unit - A unit enters P1 02 <gen>
        Unit - A unit enters P1 03 <gen>
        Unit - A unit enters P1 04 <gen>
        Unit - A unit enters P1 05 <gen>
        Unit - A unit enters P1 06 <gen>
        Unit - A unit enters P1 07 <gen>
        Unit - A unit enters P1 08 <gen>
        Unit - A unit enters P1 09 <gen>
        Unit - A unit enters P1 10 <gen>
        Unit - A unit enters P1 11 <gen>
        Unit - A unit enters P1 12 <gen>
        Unit - A unit enters P1 13 <gen>
        Unit - A unit enters P1 14 <gen>
        Unit - A unit enters P1 15 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to hostilecreep
    Actions
        Unit - Set the custom value of (Triggering unit) to ((Custom value of (Triggering unit)) + 1)
        Set tmpPoint = (Center of Regionarry[(Custom value of (Triggering unit))])
        Unit - Order (Triggering unit) to Move To tmpPoint
        -------- leak removal --------
        Custom script:   call RemoveLocation( udg_tmpPoint )

and i have put the starting point were the creeps will spwan.. so its not that.. my TD will be a 4 player TD, and i haven't put out the other 3 Region.. i just whant to see if it works for player 1..
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
You should probably create a new thread in the World Editor Help Zone if you're having a problem.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
There's a thread asking about it in the Help Zone....
 

morno

Active Member
Reaction score
2
here is my spwan trigger i hope:

Code:
Spwan creep
    Events
        Time - CreepTime expires
    Conditions
    Actions
        Countdown Timer - Destroy CreepTimedWindow
        For each (Integer A) from 1 to CreepSpwanCount[LevelCount], do (Actions)
            Loop - Actions
                Wait 0.25 seconds
                Player Group - Pick every player in ingameplayers and do (Actions)
                    Loop - Actions
                        Set tmpPoint = ((Picked player) start location)
                        Unit - Create 1 CreepArry[LevelCount] for hostilecreep at tmpPoint facing 0.00 degrees
                        -------- Leak Removal --------
                        Custom script:   call RemoveLocation( udg_tmpPoint )

If this isent the spwan trigger u whant look at my Thread: http://www.thehelper.net/forums/showthread.php?t=63398 there i have added all my triggers i have on my TD..
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Sorry Ghan, didn't notice that thread. Anyway, you have setup your spawn amount, but, the trigger is never ran - it does not have an event.

And please, narrow down the search of the problem, you do not need to post ALL of your triggers.
 

morno

Active Member
Reaction score
2
ok thx i diddent see that... but i had gone thrue all my triggers 5 times :p how code i not totest that? :p tyx for the help!
 
D

Dragon654

Guest
Pathing Issue

Andrewgosu,
Ive followed your guide and i must say- Its Awsome!
But I have an issue I think is related to the general shape of my map. Ive used your triggers and theve all set up really nicely until i got to the regions and pathing lines. Your guide im guessing is set up for creeps to take individual paths to the center of the map (or wherever the epicenter of defense is), but im making a squarelike map where creeps travel halfway around the perimeter of the square and then proceed into the center, resembling the AirStrike TD and the Warhammer 40k TD if you are familiar with those. The problem I am having with your tutorial is that i cant figure out a way to make your array work so that the creeps path overlaps with regions of other creeps paths. And when I comand them to move from one region to the center region, how can I keep creeps that are still supposed to be going around the square from stepping into the region that will send them into the middle instead of continuing thier path around.
 

Cornface

Avoid, if at all possible.
Reaction score
112
Hello, I just want to say great tutorial, it is really good. I've been using the most of your triggers for the creeps and such, and I have one slight problem. When the creeps spawn after the countdown timer, the don't move from the spawn, when I attack them, you just run away, but after a while, the attacked one start to move.

I decided to post it in the WE help zone instead. Anyway, imba tutorial!
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
With this post, I hereby announce that Part II - Object Editor has gone under a massive nip/tuck process.

Some of the changes:

  • Fixed a lot of grammatical errors
  • Made it shorter, removed unnecessary text, but, made it more in-detail.
  • Added better explanations.


In addition, all feedback is greatly appreciated. Suggest ideas, and I just might add them. E.g "How to ...?", "How can I ...?" etc.


P.S Don't forget to rate this tutorial. It's very easy.

"Rate thread" option.
 
R

RobRobRob

Guest
This is a great tutorial, thanks Andrewgosu. I'm quite a novice at map making and even this tutorial was quite daunting for me to start with, but after I got the hang of variables and found some of the more obscure or complicated triggers, I blasted through the tutorial with very few problems. One thing, though, I had a problem with the spawn location of the creeps and found that you'd specified it as the picked player start location (check your spawn creeps trigger). I'm not sure if that was a typo or not, but it caused the creeps to spawn on top of my builder. I resolved it simply by setting tmpPoint to the spawn region.

Anyway, thanks again, +rep on its way to you.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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