Element Tower Defense

MissKerrigan

Active Member
Reaction score
23
Hey guys,

I don't know if any of you know/plays element tower defense
I got a few questions about it, if you like to anwser them, I really apreciate


1. In the end wave the fruit appears, but it has over 100.000 hitpoints, how?

2. There is a tower which can be programmed to fire weakest, strongest or farest creeps, how create this option?

3. Sometimes I see towers which shows '3,5 damage'. Why does units taking FOUR damage from these?

4. If 4 players chosing 'very hard' and the other 4 players chosing 'very easy', it will be normal difficoulty, how to create this?

MissKerrigan
 

X-maul

AKA: Demtrod
Reaction score
201
1.
This can be done with a buff type behavior and in Behavior - Modification under the Unit tab set the Vital Max Bonus to 150,000 this should give a unit which already have 100,000 hp 250,000 hp.

4.
I'm not entirely sure how, but I asume that you will have a number for each option, eg you have Easy = 1, Medium = 2 and Hard = 3. And then every time a person votes, the amount is plussed together, so if two people votes hard, and two votes medium that would make it look like this:
3+3+2+2 = 10, now we devide by the amount of people who have voted (4) to find the average;
10/4 = 2.5

Now we have to decide what the score means;
the most obvious would be to make easy = 1-2, medium = 2-3 and hard 3

Now you will need an if/then/else that checks if the number is both higher than, or equal to 2, and lower than and not equal to 3.

So the final result, in this example, would be medium.

NOTE: This method will work, I'm just not sure that it is the one used in Elemental TD.
 

MissKerrigan

Active Member
Reaction score
23
well I was already thinking something like that


votes

- very easy = 1
- easy = 2
- normal = 3
- hard = 4
- very hard = 5
- insane = 7


niveau

- number between 8 and 16 = 10% enemy shield
- number between 16 and 20 = 20% enemy shield
- number between 20 and 28 = 30% enemy shield
- number between 28 and 32 = 40% enemy shield
- number between 32 and 40 = 50% enemy shield
- number between 40 or higher = 75% enemy shield


Ok, let's say that 4 players choose easy and 4 players choose normal
The number will be 20 now

1. how do I make the trigger in start? is there any trigger-event that says ' number of integer = 20?

2. what if only 4 players are in the game and choose insane? will the number be 28 now?

3. how to create a dropbox in start which shows the 6 options?


I want create the dropbox just like you see when you pressing the menu
Is this hard to create? or should it just be a few things?

I tried to use a trigger 'create dialog' but NOTHING appear in the game
 

X-maul

AKA: Demtrod
Reaction score
201
The number will never be over 7 in this example.

When you devide the combined result with the amount of players voting, you will get the average, which CANT be over 7.

So the score would be more like this:
Very Easy = 1-2
Easy = 2-3
Normal = 3-4
Hard = 4-5
Very Hard = 5-6
Insane = 6

(I set Insane to only 6, if it was 7, it would weight too heavy, so it would count more if you voted insane than voting easy)

I made an example map here;
Download
 

MissKerrigan

Active Member
Reaction score
23
omg are you joking?

I mean that everytime a player votes it ADDS the number to the integer
So you're wrong about the number can't be greater than 7
If there is only ONE player, then the integer can't be greater than 7 that's right

If 4 player chosing easy and 4 players chosing normal then the integer will be 20
Ofcourse the integer starts with the amount of 0

(2 + 2 + 2 + 2 + 3 + 3 + 3 + 3 = 20)

So my problem is that if there are 3 players in the game and voting for insane, the integer is 21, then the enemies getting 30% shield while it has to be 75%
I need to make a trigger anyway that checks the number and makes the right triggers which contains the right niveau

I'm sorry if I made you angry or something but you know I don't mean it like that, it's just my english can't find better words
 

X-maul

AKA: Demtrod
Reaction score
201
Misskerrigan...
You need the AVERAGE of the voted number. Did you even see the map I attached?
to get the average, you devide the total with the amount of player. If you did not get the average, if you played single player, you would not be able to get more than a total amount of 7 (or 14 if you were 2).

You havent studied math havent you?
 

MerrillPhish

Active Member
Reaction score
10
I admire that you ask a lot of questions but you need to use your head sometimes.
And it is quite clever to use a female sn and pic to get your questions answered.

After you have the vote sum.
Divide the vote sum by total number of votes cast.
This will return a number between 1-6.
You can determine total number of votes cast by creating a counter variable or something.

Now to determine the difficulty use an if statement.

Using an average will solve your problem no matter how many people voted.
 

MissKerrigan

Active Member
Reaction score
23
I think I get it

3 players in game:

player 1 votes normal (3)
player 2 votes easy (2)
player 3 votes also normal (3)

now the number get's 2.66? is that ok?


to be clear:

+ means add
- means subtract

does : means divide?

(never heard of divide in english)



o btw! I forgot something: in element defense, weapon speed 1.0 = 1 real second, how they do this? I guess it's in some UI data somewhere?
 

X-maul

AKA: Demtrod
Reaction score
201
to be clear:

+ means add
- means subtract

does : means divide?

(never heard of divide in english)



o btw! I forgot something: in element defense, weapon speed 1.0 = 1 real second, how they do this? I guess it's in some UI data somewhere?
DID YOU OPEN THE MAP I ATTACHED?

Devide means to split it
so if you devide 10 with 2 it would look like this:
10/2 = 5.
 

MissKerrigan

Active Member
Reaction score
23
sorry but I can't download your DOWNLOAD thing

it asks me to install a program, my sister said I must not do this, could be any virus
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top