Yeah exactly the same for me. I was bored when I saw crazy korean with like 400 actions minutes...
The key to accomplish your map is to ask when you don't know how to do what you want. I lost hundreds of hours to understand and you will save a lot of time with the forum.
You should have the script that you made, but when your ebay dies, add a condition that the building must be completed. If you cancel the ebay, the program will act as if it died.
You seem to have more knowledge than me, but I always though that 1 variable with 4 arrays takes less place than 4 single variable, like 4 drawers with 1 place takes much more place in a bedroom than 1 drawer with 4 places. I always use the 0 array in variable, this is why i have 3 arrays in my function.
For your question, I made an example of what you wanted with a nice shaped script. As you can see, I added and If condition to be sure to not go through the limit of the array. The 'constant unit order' is a variable who have the value of the first array of your global UnitOrder (which is 15 in your example).
Here's an example of what I tell you. It's more a workaround than a real upgrade because if I remember well, you cannot 'unlearn'' an upgrade (you can go level 2 but you cannot do down to level 1). So I took the marine with 3 buffs that have different requirements. Just build an Ebay with your scv and you'll see the marine armor with a +1 bonus each time you build one until 3 ebays.
Yeah, I have one question : is there a way I can download your videos? I don't have internet at my house, so I could download it at my friend and watch in my home.
Sorry to necro it, but man, it's totally AMAZING! Thank you so much, I always wanted a tuto on designing buildings like warcraft. When I'll be tall, I'll be exactly like you !;)
You show your local variable, but what is the limit of your global set unit order? It seems that your global must be heavy because of the number of loops you have in your script. As it is the only variable with arrays, it is sure that the problem is here.
If you want some hints, make only 1 local with 4 arrays (much better) and use while loop instead of for each action. For each integer is an action that cannot be nested (1 for each inside 1 for each) if I remember well.
0
@thelittlemaster: Go
@ScrinKing: Go
C'mon guys, open your mind a bit please...
@ThePhail: Go
Nice job, you gave a nice focus on the energy
0
@Kanitala: Go
It's like leaving a blank page in an exam in philosophy at the university. There's no more good answer than no answers ;)
0
@MaskedImposter: Go
Yeah exactly the same for me. I was bored when I saw crazy korean with like 400 actions minutes...
The key to accomplish your map is to ask when you don't know how to do what you want. I lost hundreds of hours to understand and you will save a lot of time with the forum.
0
@joecab: Go
God damn... you have done more than Beyoncé in all of her life!
0
I gave you 1 like for the effort.
More seriously, it looks like a lot to warcraft map.Nice job!
0
You also have a very nice forum if you need ideas or you have questions
0
@wargirlwargirl: Go
Take it easy little girl, you need to have more experience ;)
Seriously, I thought I asked sixen like... 2 years ago?? If there's no offer, don't lose your time asking it.
@Mozared: Go
Yeah, would like to have mod powers too.
0
Sorry guys, but I don't have time and I also don't like Warcraft 3. Maybe next WTE ;)
0
You should have the script that you made, but when your ebay dies, add a condition that the building must be completed. If you cancel the ebay, the program will act as if it died.
0
@ImperialGood: Go
You seem to have more knowledge than me, but I always though that 1 variable with 4 arrays takes less place than 4 single variable, like 4 drawers with 1 place takes much more place in a bedroom than 1 drawer with 4 places. I always use the 0 array in variable, this is why i have 3 arrays in my function.
0
@ImperialGood: Go
Thanks for the reply. I was always scared about for each actions.
@Mitch8778: Go
For your question, I made an example of what you wanted with a nice shaped script. As you can see, I added and If condition to be sure to not go through the limit of the array. The 'constant unit order' is a variable who have the value of the first array of your global UnitOrder (which is 15 in your example).
0
Here's an example of what I tell you. It's more a workaround than a real upgrade because if I remember well, you cannot 'unlearn'' an upgrade (you can go level 2 but you cannot do down to level 1). So I took the marine with 3 buffs that have different requirements. Just build an Ebay with your scv and you'll see the marine armor with a +1 bonus each time you build one until 3 ebays.
0
Yeah, I have one question : is there a way I can download your videos? I don't have internet at my house, so I could download it at my friend and watch in my home.
0
Sorry to necro it, but man, it's totally AMAZING! Thank you so much, I always wanted a tuto on designing buildings like warcraft. When I'll be tall, I'll be exactly like you !;)
0
You show your local variable, but what is the limit of your global set unit order? It seems that your global must be heavy because of the number of loops you have in your script. As it is the only variable with arrays, it is sure that the problem is here.
If you want some hints, make only 1 local with 4 arrays (much better) and use while loop instead of for each action. For each integer is an action that cannot be nested (1 for each inside 1 for each) if I remember well.