Poll | | What game does everyone play now? | Starcraft 2 | | 26% | [ 8 ] | Warcraft 3 | | 35% | [ 11 ] | League of Legends | | 19% | [ 6 ] | World of Warcraft | | 0% | [ 0 ] | Diablo 2 | | 0% | [ 0 ] | No games at all | | 10% | [ 3 ] | Other game not listed | | 10% | [ 3 ] |
| Total Votes : 31 |
|
|
| Map Help - AmAz | |
| | Author | Message |
---|
AmAzIn[G] Commander
| Subject: Map Help - AmAz Tue Feb 23, 2010 8:23 pm | |
| //***************************************************************************
function CreateRegions takes nothing returns nothing local weathereffect we
set udg_rect01=Rect(-2848.0,-3488.0,-2592.0,-3232.0) endfunction
Basically thats a jass function. Its creating a region.
What i dont understand is after deleting 50 some regions, jass helped wont help me fix what needs to be fixed. I need only around 20 regions created.
The regions that were deleted were regions that blocked bullets from hitting walls, and grenades from hitting walls. For some reason there still in the game, and are still working.
I need to reset this trigger so that the only regions created are the ones that are NOW set, and not the ones that were set previously.
THe problem? The =Rect(-2848.0,-3488.0,-2592.0,-3232.0) i believe this is using coordinates, in which case i have no idea how to use.
In coordinates i only know of 3 variables you have to enter. This shit has 4. WTF? | |
| | | nomorholywar Sergeant
| Subject: Re: Map Help - AmAz Tue Feb 23, 2010 11:28 pm | |
| 1. thats creating a rect, not a region.
2. 4 inputs are xmin, ymin, xmax, ymax. why would it take 3? noob.. | |
| | | Pat1487 Moderator
| Subject: Re: Map Help - AmAz Wed Feb 24, 2010 6:22 pm | |
| Rect is the same as region Well, regions are made up of multiple rects, but they serve the same purpose The gui uses both, but calls them all regions (in an attempt to be less confusing) Theres 4 numbers because you are drawing a rectangle Like i said before, you can just use pre-placed regions like you normally would If you insist on using the Rect() jass function it works like how normor said Heres a visual: So Rect(-10, -10, 10, 10) would put a region in the center of the map As for them still working even after you deleted them Look in the triggers for the grenades and bullets, there may be some rects that are hardcoded into those triggers Anywhere you see udg_rect##=Rect(##,##,##,##) you can delete it if you want to make sure theres no old regions from the original stuff And check the variables too, they might be pre-set, but you probably already wouldve checked something like that | |
| | | AmAzIn[G] Commander
| Subject: Re: Map Help - AmAz Wed Feb 24, 2010 8:50 pm | |
| HAH PAT UR TOO LATE I ALREADY FIGURED IT OUT! HAHAHAHAH IN UR FUCKING FACES.
(amazing now realizes how stupid the above comment was and would like to appologize.) (while still admiting he finally did something on his own.) | |
| | | Pat1487 Moderator
| Subject: Re: Map Help - AmAz Wed Feb 24, 2010 9:04 pm | |
| I didnt respond the other day cause you said "no one has responded in the past x mins, post now!!"
And now you do that
Im just not even going to try to help you anymore Most likely youll realize the other thing thats wrong soon and will be posting here again But im not responding to it | |
| | | nomorholywar Sergeant
| Subject: Re: Map Help - AmAz Wed Feb 24, 2010 11:39 pm | |
| - Pat1487 wrote:
- Rect is the same as region
Well, regions are made up of multiple rects, but they serve the same purpose The gui uses both, but calls them all regions (in an attempt to be less confusing) Amaz isn't using gui. Therefore, region =/= rect. Gui doesnt use both, they use just rect, and call it region. | |
| | | Pat1487 Moderator
| Subject: Re: Map Help - AmAz Thu Feb 25, 2010 10:19 am | |
| - nomorholywar wrote:
- Amaz isn't using gui.
Therefore, region =/= rect.
Gui doesnt use both, they use just rect, and call it region. I know he wasnt using gui, i said that cause he used gui more then jass, has more experience with it, and understands it better Region does = rect Regions are made up of multiple rects They do the same things, and are used for the same things You could replace a region with a rect or vice versa and the result would be the same The gui uses both Sometimes its rect() other times its createregion() This is only when you create regions with the gui trigger editor Pre-placed regions are all rects Regions created using the gui trigger editor are either rect or region The gui always calls them regions Theres no Region - Create Region in the gui But i remember there being a way to create a region using something in the gui It was there that i remember seeing CreateRegion() I cant remember what it was though, its been awhile since then | |
| | | nomorholywar Sergeant
| Subject: Re: Map Help - AmAz Thu Feb 25, 2010 11:07 am | |
| Pat, l o l. come on, now you're just being difficult.
Region in GUI = rect in jass, of course.
But since amaz wants to use jass..
region does not equal rect in jass! they are two separate variable types.. sure you can use them for similar purposes, but they are NOT interchangable variable types.
I was trying to highlight this point to amaz so he doesnt make that mistake | |
| | | Pat1487 Moderator
| Subject: Re: Map Help - AmAz Thu Feb 25, 2010 4:55 pm | |
| Oh, i didnt think he would make a mistake like that
In fact i didnt even think of a mistake like that being made Now i see how what i said might cause someone to make a mistake | |
| | | Sponsored content
| Subject: Re: Map Help - AmAz | |
| |
| | | | Map Help - AmAz | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |