• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How can i move a region?

Status
Not open for further replies.
Level 2
Joined
Jan 19, 2011
Messages
12
hi im just wondering if you can move a region? and if so how?


and also im wondering can you spawn special effects at the position of a spell missile?
 
Level 12
Joined
Apr 16, 2010
Messages
584
To move region use this action:
  • Region - Center (Region you want to move) on (Some other point)
You want the effect to be spawned every (lets say) 1 range at position of missile or at it end point?
If you want to create an effect every time missile changes its position you'll need to make a custom spell, in trigger editor.
Please describe more about creating special effect at missile point
 
Level 2
Joined
Jan 19, 2011
Messages
12
To move region use this action:
  • Region - Center (Region you want to move) on (Some other point)
You want the effect to be spawned every (lets say) 1 range at position of missile or at it end point?
If you want to create an effect every time missile changes its position you'll need to make a custom spell, in trigger editor.
Please describe more about creating special effect at missile point

Wanted the effect to spawn everytime it moved yes :/
 
You can't move a region. A region is defined by a set of points and rects. You can certainly add a rect to a region and move the rect, but moving a region is impossible because a region isn't just one point or square; P.


JASS:
local location p = Location(15, 15)
local region r = CreateRegion()
call RegionAddCellAtLoc(r, p)
call MoveLocation(p, 16, 16) //moved

If you wanted a square, you'd do the same thing using a rect instead.
 
Level 2
Joined
Jan 19, 2011
Messages
12
You'll need to trigger whole ability then, to do that, if you don't know how, please paste your ability description here so we could create a working spell in triggers.

Edit: Do not double-post, use the Edit button below...

i want a spell which first sends a wave of flamestrikes like a shockwave type, and when units gets hit they get a dot on them.

You can't move a region. A region is defined by a set of points and rects. You can certainly add a rect to a region and move the rect, but moving a region is impossible because a region isn't just one point or square; P.


JASS:
local location p = Location(15, 15)
local region r = CreateRegion()
call RegionAddCellAtLoc(r, p)
call MoveLocation(p, 16, 16) //moved

If you wanted a square, you'd do the same thing using a rect instead.

i have no idea what your talking about o_O
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,289
You can not remove regions.

You actually are asking "How can I move a rect", which there is a native to do so. In GUI, they call the type "rect" a "region" but that is wrong as a "region" is a completly separate type which behaves totally differently.

A rect is a rectangular area of the playfield made of 2 X and 2 Y components represening boundaries.
A region represents area of the playfield and is made up of rects and terrain cells (does not have to be rectangular). I believe that it may convert rects into an array of terrain cells which it adds but have no proof for this.
 
Status
Not open for further replies.
Top