Need help with a New TD Idea

Dismembered

New Member
Reaction score
1
Yo guys i got a very cool idea....( i love it :) ) so think what u want )) hmmm i want to set a random level every level of the game lol....that s not saying much about my idea lol hmmm...i made all my 40 lvls.....like a classic TD....lvl 1 - Frog lvl 2 - murloc etc.....but i want to have like....3 level 1... like level 1 Frog Unarmored, level 1 ''alchimist'' medium armor and level 1 ''gorgon '' Fortified....i want it to be totally random....its a team td so everybody is fighting the same Wave of ennemies....how can i set 3 kind of unit for 1 level and how can i make it random ?
 

DuckieKing

Elitist Through and Through
Reaction score
51
Oh right, you kinda have to use an array for the level...
You know to make the trigger "Create one unit of unit-type UnitSpawn[TDLevel]" right?
I skipped everything you said except the last sentence. I really don't know what you need, and I'm not going to read that big chunk without proper punctuation to seperate the thoughts. I'm already a naturally confused person.
 

Dismembered

New Member
Reaction score
1
Yea i got this trigger but only for my 40 waves....Idk how to make it random...do i need to make new variables ? a new variable for each new unit per level ? i will tell you my plan.... example : level 1 has 5 diferent units that can be THE level 1....Light armored unit , medium armored unit , heavy armored unit , fortified unit and unarmored unit....for now...My level 1 is only an Unarmored level....i want it to be random....sometimes...u can play my map and fight fortified lvl 1...or fight medium armored unit as the level 1....u probably already understood me from the 1st reply lol but now u know everything :) can u help me ?
 

DuckieKing

Elitist Through and Through
Reaction score
51
Okay, again... not gonna read all that. Condense it, please. Ask your question with one sentence.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Make your "wave" array filled like this:

1) Frog
2) Alchemist Frog
3) Gorgon
4)
5)
6)
7)
8)
9)
10)
11) Murlok
12) Crazy Murlok
13) Murlok Slave
...etc...

Then, to pick one of the random creeps for that round, use: (Current Level * 10) + (Random Integer between 1 and 3)

(the reason I put so many empty indices is so it's easy to, say, make four creeps per wave instead of three later on.)
 

Dismembered

New Member
Reaction score
1
Hmm shit where can i file my Wave like u just show me ? I understand more but not perfectly :| i found the random number between X and X. I already have my 2 variables called : RoundEnnemy ( used to give the UNIT as my lvl ) and RoundAmount...to know how many unit will spawn for this round....I will need to set like RoundEnnemy[1] = Random number between 1 and 3 ? if yes..can u explain a bit more ? ty
 

DuckieKing

Elitist Through and Through
Reaction score
51
You will need to set the possible creeps to be spawned in an intialization trigger.
Then in the spawning trigger you'll set the array index of RoundEnnemy to the round + a random number.
 

Dismembered

New Member
Reaction score
1
kk and what will the trigger be ? like...

Event : map initialization....
( any conditions ???) :

Action :
Set RoundEnnemy[1] : Frog, Murloc, Gorgon ?



idk where to put the random thing....
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Did you even read my post?

Make a trigger at map initialization, which does the following:

Code:
Set Wave_Unit_Types[1] = Frog
Set Wave_Unit_Types[2] = Alchemist
Set Wave_Unit_Types[3] = Gorgon
Set Wave_Unit_Types[11] = Murlok
Set Wave_Unit_Types[12] = Crazy Murlok
Set Wave_Unit_Types[13] = Murlok Slave
...etc...

Then, when the wave trigger goes, do:

Set Current_Wave_Type = Wave_Unit_Types[(((Current Wave) x 10) + (Random Integer between 1 and 3))]

You can then reference the current wave type in the variable Current_Wave_Type.
 

DuckieKing

Elitist Through and Through
Reaction score
51
*10 is so you can have up to 10 options for randomization.
Korolen said:
Set Wave_Unit_Types[1] = Frog
Set Wave_Unit_Types[2] = Alchemist
Set Wave_Unit_Types[3] = Gorgon
Set Wave_Unit_Types[11] = Murlok
Set Wave_Unit_Types[12] = Crazy Murlok
Set Wave_Unit_Types[13] = Murlok Slave
Since it picks from 3 random units, this gives 3 units to be randomed from. Round 0*10=0, +random 1, 2, or 3=1, 2, or 3 so you get a frog alchemist or gorgon.
Round 1*10=10, +random 1, 2, or 3=11, 12, or 13 so you get a murlok of some kind.
 

Dismembered

New Member
Reaction score
1
AH AH ! finally i understand :D here i go for a long 5 strait hours to finish this ?%$/ map :p lolll ty guys :) +rep
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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
  • 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
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      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