Blight Spread By Time

LichKingIsMe

Member
Reaction score
0
Hello people, I'm new to this forum and to the world editor. I want the blight tileset to spread all over the map in a circle that would increase over seconds or minutes. Can anyone help me. Any answers are appredciated
 

Imp Midna

Active Member
Reaction score
52
Do you only have one spot from where the blight is growing? Multiple spots? Do you know them all when the map starts?
 

LichKingIsMe

Member
Reaction score
0
It is starting at the middle that there was no blight in the start and that in minutes or seconds, there was blight spreading in a circle like in the Blue Dragon anime that the darkness is spreading all over the world but in my map the blight is spreading to corrupt the enemy's making the corrupted ones be controlled by the undead and that when the ones who spread the blight will be killed the blight will spread slower and slower. and when the hero dies the enemies win and the blight will go back at the center imprisoned forever. Image 1 is the begginning and image 2 ins the time the blight is spreading. I edited the map to show what i meant
 

Attachments

  • 1.PNG
    1.PNG
    1.4 MB · Views: 296
  • 2.PNG
    2.PNG
    1.7 MB · Views: 318

Imp Midna

Active Member
Reaction score
52
Ok, there are two ways to do that.
Thats because, in the Trigger editor, there are two ways to create blight on the map: in a circle and in a square. Then again, for the square solution, you have again two ways to do that.
The pictures you uploaded look like a square, so i will go with that solution.

First of all, you need the region the blight is gonna be created on. As for those, you have two ways to create them:
1: you place them in your editor. Every step will then fill the next region. The Problem with this methoid is that, if you want it to grow fluently (like every one or two seconds), you have to create a shitloads of regions. The good thing is that you can exactly controll the regions so it wont... look ugly.
2: you calculate the regions. For this, you need a mathmatical function telling you how fast the region grows with the time, m*x, x^2, log(x), e^-x or something like that. It can be a pitty to get a function that looks neat, but its easy to create a fluent growth with it.

First, you need to variables. To create them, press that little x on the trigger editor. You need:
- a integer variable to count the time
and, if you took method 1:
- a region array (check the checkbox)
or if you took methoid 2:
- a region.

Remember to give them appropriate names.

Now, if you took method 1, you need to safe the regions you created into the region array. To do this, you create a new trigger. Set the Event to "Map initialization". In the Actions, you need to insert the regions you created into your array. click on "New Action" - "Set Variable" - Click on the red word that says "Variable" and Select your Region Array, in the index, put a ascending number (0,1,2,3...) and in the Value, put the regions you created from the smallest to the biggest. The Trigger will look like this:
Trigger:
  • Blight Initialisation
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Region[0] = Blight 1 <gen>
      • Set Region[1] = Blight 2 <gen>
      • ...


If you took method 2, you can skip that step

Now you need a second Trigger where the blight is created and where you count how much blight has allready been created.

If you took method one, it would look something like this:
Trigger:
  • Blight Creation
    • Events
      • Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Environment - Creat Blight for Player 1 (Red) across Region[BlightCounter]
      • Set BlightCounter = (BlightCounter + 1)

Note that you would have to turn the trigger off once everything is blighted.

Using Methoid two, the trigger would be something like this:

Trigger:
  • Blight Creation
    • Events
      • Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set Region = (Region centered at (Center of (Playable map area)) with size (((Real(BlightCounter)) x 12.00), ((Real(BlightCounter)) x 12.00)))
      • Umgebung - Erzeugen Blight for Spieler 1 (Rot) across Region
      • Set BlightCounter = (BlightCounter + 1)

(This example uses x*12, that means it grows 12 meters every 2 seconds. Note that warcraft will only create a new blight like every 100 meters or so).
 

LichKingIsMe

Member
Reaction score
0
I can't make the Set Region and Set Blight Counter on the Method 2. Can you please specify what action to choose on the selection because I'm almost complete
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
I think they're both Set Variable actions, where Region is a region variable and BlightCounter is an integer variable.
 

LichKingIsMe

Member
Reaction score
0
Your answers were almost understanded but this is what i got yet. I still can't complete it.
 

Attachments

  • Capture.PNG
    Capture.PNG
    20.5 KB · Views: 231

Juno**

Member
Reaction score
6
U can place a dummy unit (no model, locust, invulnerable) in the center of the map as the source of the blight then make triggers similar to this

  • Creation of blight
    • Events
      • Every ___ seconds of game time
    • Conditions
    • Actions
      • Create Blight for (Player) from (Position of (Dummy_Unit)) to a radius of Size of the Blight Circle

That was from the source of the blight... and to control the corrupted ones within the blight, you can use the trigger action Unit - Change Owner... (Suggestion: To make it look cool, u can add a special effect at the position of the corrupted unit and make it spread blight too) Then as you described. when the corruptor dies, u can remove the blight by the trigger action Environment - Create/Remove Blight Circle...

NOTE: These are just my suggestions but Imp Midna's suggestion looks much more cooler and more pro-like.
 

LichKingIsMe

Member
Reaction score
0
U can place a dummy unit (no model, locust, invulnerable) in the center of the map as the source of the blight then make triggers similar to this

  • Creation of blight
    • Events
      • Every ___ seconds of game time
    • Conditions
    • Actions
      • Create Blight for (Player) from (Position of (Dummy_Unit)) to a radius of Size of the Blight Circle

That was from the source of the blight... and to control the corrupted ones within the blight, you can use the trigger action Unit - Change Owner... (Suggestion: To make it look cool, u can add a special effect at the position of the corrupted unit and make it spread blight too) Then as you described. when the corruptor dies, u can remove the blight by the trigger action Environment - Create/Remove Blight Circle...

NOTE: These are just my suggestions but Imp Midna's suggestion looks much more cooler and more pro-like.

Your idea was cool but the idea of Imp Midna was really great and almost easy to understand but if Imp Midna's guide can't be complete for my map I'll try yours
 

Solu9

You can change this now in User CP.
Reaction score
216
Ehm. I have a simple solution for you. With this solution the blight will not spread slower and slower though. It will spawn at a constant rate. But hey, you might find it useful.

Like Juno** posted before, create a dummy unit with no model, locust ability and the neutral invulnerable ability.
Then create an ability base on the undead "blight growth".

Expansion amount: I would leave it at 64
Area of effect: How far the blight will spread
Duration: This is how often the blight will spread outwards

Give the ability to your dummy unit and your are done. Try it and see if you can use it.
 

LichKingIsMe

Member
Reaction score
0
I made a duplicate of the map and tried the idea of Juno** but I can't complete the position of Dummy Unit. If can be helped completely, ultimately appreciated

I didn't understand the whole thing. Can you please explain it. Thanks
 

Solu9

You can change this now in User CP.
Reaction score
216
What do you mean by "can't complete the position of the Dummy Unit"?

There are several ways to place the dummy. Here are two.

Either of the following will do the job.
1. Place the dummy unit in the map editor.
2. Create a region and make a trigger where you create the dummy when the game begins.
 

Solu9

You can change this now in User CP.
Reaction score
216
Event: elapsed time 0.5 second
Condition:
Action: Unit - create dummy unit at center of X region.

If you are really paranoid about the single point leak then set the point with a point variable.
 

Juno**

Member
Reaction score
6
I didn't know if Solu9 is making one but I had nothin' to do so I made it. :D
 

Attachments

  • BlightGrowth.zip
    17.2 KB · Views: 193

LichKingIsMe

Member
Reaction score
0
I didn't know if Solu9 is making one but I had nothin' to do so I made it. :D

Almost completed on the blight spread part but I want that when they aren't seen they will not show the green circle because they will think there is an enemy there. I want to remove the black thing that protects the enemies from being seen. Can you help me in that?
 

LichKingIsMe

Member
Reaction score
0
I also want to make the enemies who are in the circle of blight be changed to a corrupted version which are some models I will edit from their normal selves and be controlled at the same time... Help!!!!!!!!!!!!!!

I also want the water to change into the felwood corrupted waters.
 

Solu9

You can change this now in User CP.
Reaction score
216
Almost completed on the blight spread part but I want that when they aren't seen they will not show the green circle because they will think there is an enemy there. I want to remove the black thing that protects the enemies from being seen. Can you help me in that?

Give the unit the Locust ability and change its model to nothing (I usually change the model to "...")
On a second note. You should really read or see some tutorials about the map editor. You seem to lack some of the very basic knowledge about it. Correct me if I am wrong.
 
General chit-chat
Help Users

      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