Completely new to Starcraft 2 Editor, I spent thousands of hours in the wc3 editor so guess it wont take too long time to get used to this one.
Anyway, having some problems with the triggers, mostly the variables, was easy in wc3 but now I am a bit confused, I'm sure if someone helped me out, and explained a little to me about it, I could continue to learn more on my own, but I am really stuck and desperate for help now! :P
Here is a wc3 example of how I would make, for example, a unit type variable for easy access and easy to change in the future.
And this is what I want to do/learn in sc2 editor atm.
So I can create units in my map, to appear, dissapear, get bonuses, /dance, whatever.
But I can not make a variable for this, and I do not want to make a trigger like this:
"Unit create 5x Overlords"
I want it to be more like this: "Unit create 5x Unit_Type [1]"
It's the ARRAY I want to make, but I can not copy the variable.
Because two variables can not have the same name, which is a problem for me because I'm used to wc3 editor where they could have the same now, copy paste like in the picture but cant do the same way in starcraft 2 editor for some weird reason.
You... create a Variable of type "Unit Type"? I don't see the part where you are stuck.
I don't think the way you would set up the actions in your screenshot is different in SC2. I don't know how Variables were created/declared in the WC3 editor but in SC2 you just Right Click -> New Variable or default hotkey is Ctrl+B I think.
edit:
You can also come into the SC2Mapster IRC and ask short questions like this there, that's usually the easiest way of solving a problem.
As you can see, I can not change [1] to [2], and that is, one huge problem, because it kinda ruins the whole idea of having an array variable to begin with! xD
That did the trick, never had to tell my variable how big it should be ever before, imo it's a bit weird :S
Either way, thanks ALOT for your help, this opened up some more knowledge for me how the variables work nowadays!
That's the difference between static and dynamic arrays. You can probably google that if you are interested in it, I don't know why the WC3 scripting language apparently had dynamic arrays automatically and how that was exactly set up.
I'm glad I could help and go join the SC2M Chat! Also feel free to ask any further questions that come up :)
SOLVED
- Thanks to Bommes
Completely new to Starcraft 2 Editor, I spent thousands of hours in the wc3 editor so guess it wont take too long time to get used to this one.
Anyway, having some problems with the triggers, mostly the variables, was easy in wc3 but now I am a bit confused, I'm sure if someone helped me out, and explained a little to me about it, I could continue to learn more on my own, but I am really stuck and desperate for help now! :P
Here is a wc3 example of how I would make, for example, a unit type variable for easy access and easy to change in the future.
And this is what I want to do/learn in sc2 editor atm.
Any help appreciated, Cheers!
@redbean87: Go I'm not sure why you're stuck, or what you want with that trigger. Could you explain?
@SoulFilcher: Go
I want to make a Unit Type variable.
So I can create units in my map, to appear, dissapear, get bonuses, /dance, whatever.
But I can not make a variable for this, and I do not want to make a trigger like this: "Unit create 5x Overlords"
I want it to be more like this: "Unit create 5x Unit_Type [1]"
It's the ARRAY I want to make, but I can not copy the variable. Because two variables can not have the same name, which is a problem for me because I'm used to wc3 editor where they could have the same now, copy paste like in the picture but cant do the same way in starcraft 2 editor for some weird reason.
You... create a Variable of type "Unit Type"? I don't see the part where you are stuck.
I don't think the way you would set up the actions in your screenshot is different in SC2. I don't know how Variables were created/declared in the WC3 editor but in SC2 you just Right Click -> New Variable or default hotkey is Ctrl+B I think.
edit:
You can also come into the SC2Mapster IRC and ask short questions like this there, that's usually the easiest way of solving a problem.
@Bommes: Go
Like I haven't tried that lol :P
I guess I need to explain even more
Two more screenshots coming up! :)
As you can see, I can not change [1] to [2], and that is, one huge problem, because it kinda ruins the whole idea of having an array variable to begin with! xD
You have to change the Array Size for your Variable.
@Bommes: Go
That did the trick, never had to tell my variable how big it should be ever before, imo it's a bit weird :S Either way, thanks ALOT for your help, this opened up some more knowledge for me how the variables work nowadays!
@redbean87: Go
That's the difference between static and dynamic arrays. You can probably google that if you are interested in it, I don't know why the WC3 scripting language apparently had dynamic arrays automatically and how that was exactly set up.
I'm glad I could help and go join the SC2M Chat! Also feel free to ask any further questions that come up :)