Maybe someone experienced enough can clarify a few things?
1. Lets assume that we want to spawn units from a specific point, facing a specific point throughout a long period of the game. Can we set a unique variable to those points and keep using them over and over again without any leak? Can we do that with unit\player groups also? (I've seen it before I think)
Initialization
Trigger-1
Trigger-2
If we use trigger-1 and trigger-2, 400 times before we destroy the points and group, will it leak?
Current answer:
2.Is there any way to simulate "right-click" with a trigger?
When you right click on a friendly unit, you will follow that unit but you will also attack if the unit you are following isn't moving. Using a trigger to order a "right-click" will just follow and never attack.
Current answer:
3.Is there any way for an ally to upgrade a research that you own?
Current answer:
4.I've read somewhere, long time ago that using Player 1 is not good(true/false?). If you set those globals to a variable, would it be better/faster?
Current answer:
5.If you use different variables for everything you do and finally end up with 1000 variables the game has to remember, isn't it the same with having 1000 leaks?
Current answer:
6.Recently I'm trying my luck with hashtables, there is a tutorial that states that you shouldn't have more than 10 hashtables in your map. Is it because hashtables can be reused and you don't need more, or is there another restriction? (eg. bugs, slower performance etc)
Current answer:
7.At "scenario-Player properties", opponents are set to computer and when the game begins, it shows "computer(normal)", giving no choice to players for easy or insane. Atm I cannot change that, no matter what I try.
Is there a way to change one of the computers to easy and others to insane?
Is there any way to give the choice to players?
Current answer:
8.When I create a local game, any player who clicks on my game lags for several seconds before he is able to join. Then, when he attempts to join the game, he lags again for even more time before he finally joins. Is this due to the minimap preview image? The loading image? Does the game loads any part of the game (or variables) beforehand?
How can this be avoided or minimized?
Current answer:
9.While playing, the first time you open the "quest" panel, you freeze for a few seconds. (The map has 6-7 quests or so).
Is there any way to prevent\preload that?
Current answer:
10.How much "heavier" is using auras for adding bonuses to a hero(range 25000) than using an ability on that hero? (eg. Aura for armor vs armor bonus ability)
Current answer:
I've spent quite some time looking these up and either I found nothing or the answers were foggy/contradicting.
Thank you for taking the time to read this long post and thank you in advance for helping out.-
EDIT: I've updated the questions with the answers provided so far. I'll try to keep them updated, for others who seek answers to similar questions and to keep track what is answered or not.
1. Lets assume that we want to spawn units from a specific point, facing a specific point throughout a long period of the game. Can we set a unique variable to those points and keep using them over and over again without any leak? Can we do that with unit\player groups also? (I've seen it before I think)
Initialization
Code:
Set Perm_Point1 = (Point(1537.00, -352.00))
Set Perm_Point2 = (Point(2311.00, -1352.00))
Set Perm_Group = (Units in (X_Region))
Trigger-1
Code:
Unit - Create 1 footman for Player 1 at Perm_Point facing Perm_Point2
Add (last created unit) to Perm_Group
Trigger-2
Code:
Unit Group - Pick every unit in Perm_Group and do (Unit Group - Remove (Picked unit) from Perm_Group)
Unit - Create 1 archer for Player 1 at Perm_Point facing Perm_Point2
Add (last created unit) to Perm_Group
If we use trigger-1 and trigger-2, 400 times before we destroy the points and group, will it leak?
Current answer:
2.Is there any way to simulate "right-click" with a trigger?
When you right click on a friendly unit, you will follow that unit but you will also attack if the unit you are following isn't moving. Using a trigger to order a "right-click" will just follow and never attack.
Current answer:
call IssueTargetOrder(GetSummonedUnit(), "smart", GetSummoningUnit())
3.Is there any way for an ally to upgrade a research that you own?
Current answer:
Probably not
4.I've read somewhere, long time ago that using Player 1 is not good(true/false?). If you set those globals to a variable, would it be better/faster?
Current answer:
Makes no difference
5.If you use different variables for everything you do and finally end up with 1000 variables the game has to remember, isn't it the same with having 1000 leaks?
Current answer:
Many variables will not slow down the performance significantly
6.Recently I'm trying my luck with hashtables, there is a tutorial that states that you shouldn't have more than 10 hashtables in your map. Is it because hashtables can be reused and you don't need more, or is there another restriction? (eg. bugs, slower performance etc)
Current answer:
False, there is no 10 hashtables limit
7.At "scenario-Player properties", opponents are set to computer and when the game begins, it shows "computer(normal)", giving no choice to players for easy or insane. Atm I cannot change that, no matter what I try.
Is there a way to change one of the computers to easy and others to insane?
Is there any way to give the choice to players?
Current answer:
Unclear
8.When I create a local game, any player who clicks on my game lags for several seconds before he is able to join. Then, when he attempts to join the game, he lags again for even more time before he finally joins. Is this due to the minimap preview image? The loading image? Does the game loads any part of the game (or variables) beforehand?
How can this be avoided or minimized?
Current answer:
Unclear
9.While playing, the first time you open the "quest" panel, you freeze for a few seconds. (The map has 6-7 quests or so).
Is there any way to prevent\preload that?
Current answer:
The abilities cause this. The reason or circumstances - unknown
10.How much "heavier" is using auras for adding bonuses to a hero(range 25000) than using an ability on that hero? (eg. Aura for armor vs armor bonus ability)
Current answer:
It's the same
I've spent quite some time looking these up and either I found nothing or the answers were foggy/contradicting.
Thank you for taking the time to read this long post and thank you in advance for helping out.-
EDIT: I've updated the questions with the answers provided so far. I'll try to keep them updated, for others who seek answers to similar questions and to keep track what is answered or not.