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.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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 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