Two maps in one?

Handless

New Member
Reaction score
2
I want that any hero would be able to enter one building in my map, and I thought that it would be best to make own map for that building.. So how can I make unit to enter another map when it enters a region?

I saw this system in TBR 2.0 but I have no idea how it is made.

+rep for helpers :)
 

Rainther

I guess I should write something of value here...
Reaction score
61
What... you can enter other maps in The Black Road 2...? Or is it an other map? I mostly recall Everquest to have this feature.
 

Handless

New Member
Reaction score
2
When you choose a hero you are in a different map than the playing map, or atleast the minimap is much smaller. And if you type repick you get to there again.

So how do I do this or is there some way to show minimap only for certain region and/or make so you can't select anything outside the region?
 

Rainther

I guess I should write something of value here...
Reaction score
61
Ah, you mean like that. I don't know how to do that, but would like to know too. :D And it's not new region, it's locked down at the most south western parts of the map.
 

trees123

New Member
Reaction score
6
If I understand this right, you just want to lock a player's camera to a set region, yes? If that's the case, then you would use a trigger to set the camera to that specific region. I think it would be camera - set bounds or something like that.
 

Rainther

I guess I should write something of value here...
Reaction score
61
Cool. Found it :)
Trigger:
  • Camera - Set the camera bounds for Player 1 (Red) to (Current camera bounds)
 

Whisky

New Member
Reaction score
45
You can either lock the camera to a region or to an unit:
Trigger:
  • Actions
    • Camera - Set the camera bounds for (Triggering Player) to (InsertYourRegionHere)
    • Camera - Lock camera target for (Triggering Player) to (Entering unit), offset by (0.00, 0.00) using Default rotation


I hope this helps :thup:

Edit: Damn, now you were faster :p
 

Handless

New Member
Reaction score
2
But this requires the area to be a square right? Or can I set the camera boundaries to many regions at the same time?

Thanks alot anyways :eek:
 

Rainther

I guess I should write something of value here...
Reaction score
61
The bounds are the size of your Region. It's by default bound to playable map, which is a Region itself.
 

Handless

New Member
Reaction score
2
Yes but I mean can i add bounds to a region like this
Code:
 _________________
|                  |
|                  |
|                  |
|                  |_____________________
|                                       |
|                                       |
|_______________________________________|
Which has two regions in it of course.
I could lock the camera on my hero but i think it is lame and i dont like it :(
 

Rainther

I guess I should write something of value here...
Reaction score
61
I can honestly say that I don't understand that example. You could otherwise do like this I believe:
Trigger:
  • Change
    • Events
      • Unit - A unit enters Region001<gen>
    • Conditions
    • Actions
      • Camera - Set the camera bounds for (Owner of (Triggering unit)) to Region001
 

Handless

New Member
Reaction score
2
Yeah i screwed the first example but now it should be fine?
Maybe i try explain what i mean: Normal region is like the white box you type your posts in, but when you copy that box and turn it 90 degrees and but it on the original box so the corners hit together you have a region shaped like a boot :)
 

Rainther

I guess I should write something of value here...
Reaction score
61
It looks good now, however I'm pretty sure that's not possible to do. You'd have to use blackness in that empty area or do like I said with setting new camera bounds for new region.
 

tmow

New Member
Reaction score
7
Yea...make the mage hugeee!! and seperate it with something like boundarys and have it so the camera cant leave the bounds of ur first area and when you go into the building it PAns to that area and locks again.
 

ChaosWarlock

New Member
Reaction score
7
If you want an irregular shape you can just put a boundary in the open spaces to fill out the shape you want.

Example:
lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
llll.....................lllllllllllllllllllllllllllll
llll.....................lllllllllllllllllllllllllllll
llll....................................llll
llll....................................llll
llll.........lllllllll......................llll
llll.........lllllllllllllllll.................llll
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
 

Sevion

The DIY Ninja
Reaction score
413
Actually, a rect is a square and a region is a combination of rects to make any shape. Thus, you can make lots of regions, break them into rects, then combine whatever rects to make your area.

Or use coords to make a region.

Or start out with rects and skip the first regions and just combine those rects.

This is, of course, assuming you know how to.
 

Sevion

The DIY Ninja
Reaction score
413
It's only in JASS, my friend.

GUI commands don't accept rects as rects and regions are different types. Just like Units and Unit-Groups are different types.
 
General chit-chat
Help Users

      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