Units i've previously destroyed are showing up on the fogged part of the map (before it becomes discovered). They are enemy units so i'm not sure why they're showing. How do i fix this to where when i destroy a unit, it doesn't show up in fog.
I've been watching some (old) youtube videos that use the data editor and i've noticed on a few of them if you double click on the data element (like Veterancy), it brings up a pop up window that allows you to determine what to populate into the field.
I am not able to make these pop up windows appear. Is there a certain option i should be using?
So for Veterancy's case, the guy in this video gets a window to key in levels and experience.....all i can do is modify the text field to a new value.
I'm having an issue where moving a destructable unit via trigger is causing the footprint not to move with it. What is the best way to fix this problem?
So i created around 30 wall units to form a wall. on Initial placement, they have collision. Once i run a trigger and move them somewhere on the map, units can pass through them. I'm guessing I need to update CUnit_Collide +? Can i do this after each time i move a unit? Also would i have say 20 wall units that are the same model/unit in the data editor, can I do just one update?
If i follow the syntax listed, then attempt to place a unit in the resized region, the unit is placed why outside the boundaries of the region, sometimes on the other side of the map.
So given the picture below i went with:
Variable - Set Region = (Region(2x, 4x, 2y, 4y))
I went ahead and echo'd the x,y values to the game as objectives to make sure i have the points right and I do. The unit placement isn't following it though...using the following action:
Unit - Move (unit) instantly to Random Point in Region (No Blend)
I understand the editor assigns a unit ID of some sort to each created unit so I was hoping this piece could be simple
The problem i'm having is if i try to declare all units to their array value in map initialization, i get an error saying more or less i have too many triggers. Can i break out where i declare global variables?
I've tried this and failed:
using set variable:
set array[$var][$var2] = unit Point(x,y)
set array[$var][$var2] = unit Point(x+$var3,y)
Playing with unit create, i can't seem to come up with a way to create a unit and automatically assign it to an array. Is this possible without having to declare each variable like:
unit[1][1] = blah
unit[1][2] = superblah
etc
I feel like i have to create the units in one trigger and assign them to their variable in separate triggers.
If i assign values to variables in Melee Initialization, are they local or global? I suspect local. If local, where do I assign global variables (in an array) a value?
0
Units i've previously destroyed are showing up on the fogged part of the map (before it becomes discovered). They are enemy units so i'm not sure why they're showing. How do i fix this to where when i destroy a unit, it doesn't show up in fog.
0
@basballguy: Go
resolved myself...i didn't realize there was a "View Raw Data" button which i had checked.
0
I've been watching some (old) youtube videos that use the data editor and i've noticed on a few of them if you double click on the data element (like Veterancy), it brings up a pop up window that allows you to determine what to populate into the field.
I am not able to make these pop up windows appear. Is there a certain option i should be using?
So for Veterancy's case, the guy in this video gets a window to key in levels and experience.....all i can do is modify the text field to a new value.
0
@TheAlmaity: Go
thanks almaity...already tested and works...this makes my life tons easier cause now i don't have to create 300 units and move them every 5 minutes :)
0
@basballguy: Go
so I'm looking for an answer to either fix my footprints problem, or assign units to variables once they're created.
0
@Neonsz: Go
No problem doing that if i'm able to assign units i haven't created yet to variables. However i don't know how to do that.
0
I'm having an issue where moving a destructable unit via trigger is causing the footprint not to move with it. What is the best way to fix this problem?
0
@DrSuperEvil: Go
How do i know the footprint is lingering at the old spot? Do i need to update the data table for the unit every time i move it?
What if i have multiple instances of the same unit?
0
So i created around 30 wall units to form a wall. on Initial placement, they have collision. Once i run a trigger and move them somewhere on the map, units can pass through them. I'm guessing I need to update CUnit_Collide +? Can i do this after each time i move a unit? Also would i have say 20 wall units that are the same model/unit in the data editor, can I do just one update?
0
@Nerfpl:
user error
0
I'm having issues with the correct syntax for this function
http://www.sc2mapster.com/wiki/galaxy/triggers/convert-rectangle-to-region/
If i follow the syntax listed, then attempt to place a unit in the resized region, the unit is placed why outside the boundaries of the region, sometimes on the other side of the map.
So given the picture below i went with:
Variable - Set Region = (Region(2x, 4x, 2y, 4y))
I went ahead and echo'd the x,y values to the game as objectives to make sure i have the points right and I do. The unit placement isn't following it though...using the following action:
Unit - Move (unit) instantly to Random Point in Region (No Blend)
0
@Nerfpl:
fair enough...what i want to do will involve a loop i can write but more or less
do while (condition) {
array[$var][$var2] = unit_create(marilne)
array[$var][$var2 + 1] = unit_create(marine)
array[$var][$var2 + 2) = unit_create(marine)
}
I understand the editor assigns a unit ID of some sort to each created unit so I was hoping this piece could be simple
The problem i'm having is if i try to declare all units to their array value in map initialization, i get an error saying more or less i have too many triggers. Can i break out where i declare global variables?
I've tried this and failed:
using set variable:
set array[$var][$var2] = unit Point(x,y)
set array[$var][$var2] = unit Point(x+$var3,y)
but does not work
0
Playing with unit create, i can't seem to come up with a way to create a unit and automatically assign it to an array. Is this possible without having to declare each variable like:
unit[1][1] = blah
unit[1][2] = superblah
etc
I feel like i have to create the units in one trigger and assign them to their variable in separate triggers.
0
@Nebuli2: Go
thanks!
0
If i assign values to variables in Melee Initialization, are they local or global? I suspect local. If local, where do I assign global variables (in an array) a value?