• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!

[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