Make regions by clicking

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Make regions by clicking

Post by JJ2197 »

I would like to know how to make a region by clicking for the MinX MinY and MaxX MaxY
Like you say -whatever then you issue a unit an event order and that sets the MinX and Y
then the 2nd time you do it, it sets the MaxX and Y. Then a region would be created at that
location...
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Make regions by clicking

Post by Aero »

Event - Unit issued order...

Conditions?

Actions - Log points...when points = 4 create rect...

Care to elaborate a bit more/
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Make regions by clicking

Post by JJ2197 »

Thought that was good enough... but okay...

So first you say, -whatever (doesn't really matter)
Then you click (anywhere) and that will be the min X and Y
Then you click somewhere else and that will be the max X and Y
And a rect will be created from the first to second click...
That's about the best I can explain it... =/
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Make regions by clicking

Post by Aero »

There's no convenient way to detect a click.

Most authentic way around this would probably be to make it when you type that command, it selects a "Rect maker" unit for you.
Then this unit has an ability where you target a point.

I think the best solution is making a "createrect" command.
Then you would have a rect array.
The command would be like this...

-createrect x1,y1,x2,y2,#

Then you would loop through and count commas basically... Get the coordinates and create the rect in rectarray[#]

As to getting the coordinates, that's another problem.
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Make regions by clicking

Post by JJ2197 »

Well I know you can detect a click by giving a unit an order...
So what I was thinking was making it so you say something it
enables a certain trigger for it to work then you select a unit (any)
tell him to go somewhere (Min x and y) then you tell him to go somewhere
else (Max x and y) and a rect would be created and it would start over...
So you can make more...
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Make regions by clicking

Post by Aero »

How multi-instanceable would this have to be?
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Make regions by clicking

Post by JJ2197 »

Could you possible reword that... not sure what you mean?
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: Make regions by clicking

Post by tru_power22 »

Multi-Instanceable means all players can do it, or a few.
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
User avatar
JJ2197
Legendary Genius
Posts: 1311
Joined: August 8th, 2007, 8:10 am
Title: Legendary Genius²
Location: St. George Utah

Re: Make regions by clicking

Post by JJ2197 »

Whoever says the command...
Computer Specs:
Motherboard: GA-990FXA-UD3
CPU: FX-8350 @ 4.0GHz
PSU: Corsair CX500
RAM: G.Skill Ripjaws X 8GB @ 1866
GPU: Radeon HD 4870 1GB
HDD: OCZ Vertex series 30GB SSD
Case: Antec 900
Monitor: Toshiba 32"
OS: Windows 7 Ultimate
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Make regions by clicking

Post by Aero »

Therefore the command is Multi-player instanceable.

I'll edit this post later with as a solution if I get around to it.