PDA

View Full Version : Need help asap plz


Eternal255
09-11-2005, 1:16 AM
im making a wc3 map and im having trouble with a trigger:
Event:
unit enters <region>
Actions:
Create 1 <unit> for <player> at <region> facing <direction>

so i go to try out this trigger, however when i get to the region, the game freezes, does anyone know why?

also when i try to play this online w/friends to test, they always get disconnected when i begin the map

ty ahead of time

XZminX
09-11-2005, 3:32 PM
There's nothing wrong with the trigger, search for errors elsewhere

Eternal255
09-11-2005, 11:55 PM
LoL im stupid :P
i made the reagon u enter and the region the unit is created in the same (so it instantly created inf units)

so i fixed that......

cobracao
09-12-2005, 11:00 AM
Actually I had the same problem. I changed mine to also turn the trigger OFF after unit generation. I created another region elsewhere to re-enable the trigger - as I wanted it to keep generating untill a specific building was destroyed..

Which got kind of funny, cuz if the player has a large contingent of units moving about in the areas, you could all of a sudden generate a LOT of units - during testing my 10 level 10's got murdered after generating 126 opponents :p

So I added a condition to check how many live opponents are within the region... Now if I can just fix my new triggers :(

AHREN34
09-14-2005, 6:46 PM
what you need to do is in condion you need to put the max amount of units its alowd to make and/or hold in the region

Zipsco
09-19-2005, 5:52 AM
Ahren34's solution is the right solution to this problem, though making a seperate region they spawn in is also a reliable solution.. either way you want.... Though making a diffrent region in which you need to switch between using that and the old region to spawn units, now thats just anoying, unless it serves to some purpose... like, the unit continues to get random speed, and you should create as many units as possible, would be quite boring, but who knows, some migth find it fun!