• 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.

[JASS] Moving a region to Exit/Enterance of a maze generator system

Status
Not open for further replies.
Level 9
Joined
Jul 24, 2007
Messages
308
Converting & getting locations

How can i change this to a loaction (point) that i create region at :

JASS:
call DestroyWall[B](udg_ztemp[7],udg_ztemp[8]-1,udg_ztemp[7],udg_ztemp[8],udg_minX,udg_minY)[/B]

i want a point like this..
JASS:
set udg_POINTTEST = GetDestructableLoc(udg_ztemp[7],udg_ztemp[8]-1,udg_ztemp[7],udg_ztemp[8],udg_minX,udg_minY)
 
Last edited:
Level 11
Joined
Feb 18, 2004
Messages
394
Without fully reading that giant block of code (I don't have 30 minutes to spare), I can firstly say: You can not move a region. You CAN move rects. You will have to create new regions within the area designated the entrance and exit.

I would suggest using vJASS, for the simple purpose of having the .execute() syntax for functions and tossing all that code in to a library or something.
http://wc3campaigns.net/showthread.php?t=90999 JNG WE Hack
http://wc3campaigns.net/vexorian/jasshelpermanual.html vJASS Readme
 
Level 9
Joined
Jul 24, 2007
Messages
308
Its not problem if create the region, i just need a region to be there

p.s. its not actually 30 mins, its only 10 if you read the informations about the code.

edit: i think the answer is with the function GenerateRandomSideBlock but how can i create rect there?
 
Status
Not open for further replies.
Top