| 05-30-2006, 09:07 AM | #1 |
Hi, how do you make it such that when an unit enters a region. It is given a spell: Blink. and how do you make it such that when it enters another different region, the spell: Blink will be removed? Thank you. |
| 05-30-2006, 09:18 AM | #2 |
To add blink you can use this: Trigger: To remove it use this: |
| 05-30-2006, 09:57 AM | #3 |
Thanks .. seems like ur online may i just request another question? Trigger: SOMEHOW, it just doesnt work .. When i test the map (Ctrl + F9), the mortar team doesnt attack the ground .. my units patrol works. edit: Its like the mortar team "hates" the region that its attacking, it sounds funny, but its what happened. Its like nothing happened. .. |
| 05-30-2006, 10:09 AM | #4 |
If it is able to attack other places, maybe you have a trigger interrupting, or it can't reach the region, maybe the way is blocked by destructables or doodads? |
| 05-30-2006, 11:09 AM | #5 |
Do orders work during map init? Perhaps a Wait - 0.00 before the order will do the trick. |
| 05-30-2006, 03:44 PM | #6 |
| 05-30-2006, 04:09 PM | #7 | |
ARHGG IT JUST CANT WORK. It only works when: 1) i place the mortar team uber far from the mortar team that works. 2) when i just .. "randomly" placed my region and my mortar. I'll attach my map, hopefully you guys can help? Quote:
Tried it.. dl my map and you'll see. |
| 05-30-2006, 04:34 PM | #8 |
The reason its not working is because the mortar team you are ordering to attack is to close to the attacked region. Move the mortar team further away from the center of the region and it should work fine If you've ever played normal blizzard maps, with the human mortar team, the message comes up saying "Target inside minium range" or something. Mortar teams have a max and a min attack range EDIT: I realised your using the action Center Of Region, and quite alot of times. This is critically bad, it 'leaks' a point (location). So after a while it will get slower, and slower and slower. Instead of something like this: Trigger: Use this: Make a point variable called TempPoint |
| 05-30-2006, 08:30 PM | #9 |
If you do "Set TempPoint = No region" instead of "Custom Script: call RemoveLocation(udg_TempPoint)", will the "Set TempPoint = No region" leak? |
| 05-31-2006, 05:46 AM | #11 |
I am not sure at all, but try to unpause the units when you kill and revive them, that *might* help, but it is just a guess. Of course remember to pause them after you have killed/revived them. |
| 05-31-2006, 09:30 AM | #12 | |
Quote:
Yes it will still leak, you need to destroy the point or it will be in your game forever!. Also, doing this: JASS:Set TempPoint = No region Fact: If you do NOT need to use any variable anymore (such as points, orders, unit creation etc) you do not need the point anymore, so you MUST remove it or that memory is making your game slower, the more you dont delete the slower it gets! (if you leak about 150, you will not get lag, if you run a action, like "Order unit to move to (center of someregion)" every 0.01 seconds. You are done for. |
| 05-31-2006, 09:41 AM | #13 | |
Quote:
|
| 05-31-2006, 09:43 AM | #14 |
Sorry, i read over the things i write before i write them, but im not good at explaining things |
| 05-31-2006, 01:03 PM | #15 |
ehm im still having problem .. the revive trigger wont work. tried unpausing and pausing units between the wait 2.00 seconds .. |
