Tutorial: Basics Of Regions

ragingspeedhorn

Is a Banned Asshole
Reaction score
94
Basics of Regions
by ragingspeedhorn, with some edits by Archian.


Index Of Content:

- What Is A Region?
- Where Do I Find The Place To Add Regions?
- What Do I Use These Regions For?
- You Also Mentioned Custom Weather, What Is That?
- Also Ambient Sound, What Is That? ...And Why Is It Turned Off?!
- Conclusion.



Note: In this tutorial we will explain to you the basics of working with regions, what a region is and some other usefull tips. This tutorial is in no way geared towards experienced modders but is meant as a helpfull hand to the newbeginners within Wc3 modding.

What Is A Region?

A region is a invisible field (ingame that is, in the editor your region is visible when you are using the region palette (but only when using the region palette, though you can change it so it's viewable while you're working in any of the other palettes)) used for triggered events, custom weather for certain areas (the area the region stretches over) and for ambient sound.
The last two being choosable in the individual regions properties and the first in the trigger editor.

The regions that this tutorial is about are called rects in JASS, that is because they are rectangular.
Besides rects JASS does also have the type region which is composed of many tiny sqares, so that you can have regions with any shape you want (for example a circle).
Contributed by: PitzerMike.

Now for the 'Unit enters Rect'-event: When this event is registered with a trigger, WC creates a temporary rectangular JASS-region with the same dimension as the GUI-region that will be specified in the trigger editor. And the event will be registered for that temporary JASS-region, not for the rect (because rects technically don't even have Enter/Leave-Events).
Contributed by: PitzerMike.


Where Do I Find The Place To Add Regions?

Go up in "Layer" and select "Regions", then the "Region Palette" pops up and from that you are able to manage and add new regions. You add the new regions through the grey button.

This is what the Region Palette looks like.
regionspic1mw9.jpg


This is how the regions looks like.
regionspic2xs1.jpg


As you can see the regions on the picture has different colors, you can change the color of the region inside the region properties (acces the properties by double clicking the region which you wish to change).
regionspic3zo3.jpg


What Do I Use These Regions For?

As said before regions are mostly used for triggered events.
Here is some basic examples of a simple trigger involving the "Unit enters region" event:

Code:
Test Trigger
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        Unit type of (Entering unit) Equal to (Footman)
    Actions
        Unit - Kill (Entering unit)

This trigger will kill any units that enters region "000" if they are of the type Footman.
It is a pretty basic example, a commonly used trigger which involves a region.

Code:
Region Trigger
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
        (Owner of (Triggering unit)) Equal to Player 1 (Red)
    Actions
        Unit - Order (Entering unit) to Move To (Center of Region 001 <gen>)

This trigger makes the unit entering "Region 000" move to Region 001 if the entering unit is owned by Player 1.

Code:
Region Spawn Trigger
    Events
        Unit - A unit enters Region 000 <gen>
    Conditions
    Actions
        Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 001 <gen>) facing Default building facing degrees

This trigger creates a Footman unit at the center (middle) of Region 001 when a unit owned by any player enters Region 000.

You Also Mentioned Custom Weather, What Is That?

The custom weather is the Weather Effect box. If you wish to have let's say an area where it is raining you create a region over the desired area like shown below.
regionspic4xz1.jpg


Once that is done you open up the Region Properties and check out the Weather Effect box.
regionspic5fy0.jpg


Once that is done you can choose your desired effect, as an example I have used "Ashenvale Rain (Heavy)".
regionspic6hj2.jpg


The Weather Effects which you have to choose from are all the different effects premade by Blizzard which they used in the RoC & TFT campaigns, there are 21 in total. Also you are able to import your own custom Weather Effects, check out THIS tutorial made by CryoniC.

Also Ambient Sound, What Is That? ...And Why Is It Turned Off?!

The reason why you are not able to choose a Ambient Sound right away is because you can only use sounds once you have added them to your map as sounds through the Sound Editor (if you add them as music you will not be able to use them as Ambient Sounds, it needs to be as a sound). As shown below I have added the Credits theme as a sound file and then it becomes selectable in the Region Properties.
regionspic7ab0.jpg


regionspic8vp4.jpg



Conclusion.
Hopefully with this tutorial you have learned abit more about regions and their basic use, if you got any suggestions for improvements or such please leave a comment :)
 
C

Capt Griffen

Guest
A region is a invisible field (ingame that is, in the editor your region is visible when you are using the region palette (but only when using the region palette))

You can check an option in the WE to be able to see them.

used as rally points for triggered events

Wrong, though you can generate a location (point in GUI) in the middle of one. Unit enters/leaves events are not rally points, by the way.


You also completely failed to talk about the rect/region complex GUI has (which can be very important, even in GUI) or creating/destroying them, or in fact much.
 

wonderpriest

New Member
Reaction score
18
Why so many tutorials? Some of them are nice, but a Regions tutorial...seriously?
I was playing with regions and making triggers with them within a few minutes of opening WE for the first time :p.

Should be more like a "Palette Tutorial" that incorporates everything (cameras, regions, units, terrain, doodads).
It's nice that you spent your time on this, but you should add more, or in my opinion it's just telling you what you will learn yourself from a few minutes experimenting. We don't need a tutorial for everything...
 

SFilip

Gone but not forgotten
Reaction score
634
i'm afraid i have to agree with the two posts above.
you should've at least explained the gui actions that handle regions like moving/creating/destroying etc. without that this tutorial is pretty useless.
 

ragingspeedhorn

Is a Banned Asshole
Reaction score
94
I see your points and I know this does not cover that much, the reason why I made it was because I know some people that well... they know nothing about map making and wanted me to explain almost everything to them, that is why I made this tutorial (and a general basics of the WE one in the works) that tells people the most basic uses of regions and what regions actually are. But if needed I could update it with some more info, but still sticking to the basics theme, this is simple on purpose, not everyone is quick at learning even the simpliest things :)
 

Knights

You can change this now in User CP.
Reaction score
71
ragingspeedh said:
Oups, I'm not the best at English grammar, I'll fix that when I update the thread, thanks for the correction.



*Oops. :D
 

Volkof

Well-Known Member
Reaction score
31
I have a question but it has nothing to do with regions
Just curious, so dont kill me :)


How do u get those pictures? From internet or World Editor? If World Editor did u use photograph or some other programs
:D :D :D :D :D :D :D :D :D
 

ragingspeedhorn

Is a Banned Asshole
Reaction score
94
Vokofe said:
I have a question but it has nothing to do with regions
Just curious, so dont kill me :)


How do u get those pictures? From internet or World Editor? If World Editor did u use photograph or some other programs
:D :D :D :D :D :D :D :D :D

I took screenshots and putted them into paint cutting out the parts I needed.


EDIT: Also updated the tutorial abit.
 
M

MysterySoul

Guest
Too basic? Not at all, this is like... ... ... BINGO for me! :D
Been looking for stuff that makes a unit or hero move from place to place
and now, this is IT! Thanks a lot, mate! :p
 

ragingspeedhorn

Is a Banned Asshole
Reaction score
94
Thanks for all the positive replys lately, I think I will actually update the tutorial sometime soon then so it will have a bit more content to get approved :)
 
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
    +2
  • 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