Thank you both for your help! Ive got the problem solved! Thanks to you guys and this website im learning more and more every day. without this i be stuck spinning in circles for a lot longer troubleshooting over and over.
yeah i actually had the same variable in my code (that was just example code) but for some reason it wasnt working still. im gonna give the For Each Integer idea a try... wish me luck lol
EDIT: i fixed both the Example Code and my real code to the same variable
What im expecting this trigger to do is get set a variable to a random number between 5 and 20 then Run the Actions that many times thus Creating a unit that many times and adding him to a unit group.
Im doing the trigger this way because i dont know how to add multiple units to a unit group with the add unit to unit group action or else id just tell it to create a random amount of units between 5 and 20 then add them all to a unit group.
So either a suggestion as to how to make this work or a suggestion on how to add multiple created units to a unit group would be awesome! Thx for any help in advance!
@hellzthunder: Go
Thank you both for your help! Ive got the problem solved! Thanks to you guys and this website im learning more and more every day. without this i be stuck spinning in circles for a lot longer troubleshooting over and over.
@Usernameisntworkingright: Go i think theres a way but im not exactly sure how
@Usernameisntworkingright: Go
dude you nailed it
here let me show yo uhaw i predefined specific arrays gimme a min
The Triggers actions is setting each Var[#] to a game link of a unit
@Molsterr: Go
Somethings still kinda screwball. If you god the time. id love a code sample :-) of how i can make this work <3
@Molsterr: Go
so Molsterr is it better to go with the For Each Integer in this case?
and my code needs to be For Each Integer UnitCreateAmount1 from 1 to UnitCreateAmount?
@hellzthunder: Go
oh crap i didnt even think of that. okay going back to repeat
@Usernameisntworkingright: Go
For Each Integer
im thinking that might work better
Ive got all my Variables for units already preset in my Global Variables. For example i have 9 different types it picks from and theyre all defined
im just getting for example. 1 probe 1 hydra 1 zergling 1 marine etc
not multiple for some strange reason
By the way you are epic for helpin me out with this :-) your suggestions and comments are both great and helpful
This is what my stuff currently looks like
@hellzthunder: Go
crud. still isnt working? any more suggestions this is frustrating haha.
essentially it only makes random (from my unit vars) 1 unit and adds that unit to the group rather than doing this over and over
@Usernameisntworkingright: Go
yeah i actually had the same variable in my code (that was just example code) but for some reason it wasnt working still. im gonna give the For Each Integer idea a try... wish me luck lol
EDIT: i fixed both the Example Code and my real code to the same variable
What im expecting this trigger to do is get set a variable to a random number between 5 and 20 then Run the Actions that many times thus Creating a unit that many times and adding him to a unit group.
Im doing the trigger this way because i dont know how to add multiple units to a unit group with the add unit to unit group action or else id just tell it to create a random amount of units between 5 and 20 then add them all to a unit group.
So either a suggestion as to how to make this work or a suggestion on how to add multiple created units to a unit group would be awesome! Thx for any help in advance!