So instead of creating many triggers can I create one trigger using Galaxy Script that does this:
Create 1 unit for triggering player at Point("Pos" + AnyVariable.GetValue.tostring)... something like that.Is it possible?
However, all points have numbers which can be used to access the point:
point p = PointFromId(5); Something like that
If you created all your points sequentially then they're most probably continuously numbered like 93/94/95/...
So then you can access them by
PointFromId( 92 + ImmoVar );
To find the number id of a point you can make a GUI trigger and put some event/action in it that uses this point. Then you look that up in galaxy script (F11) and you'll find it there.
Something like that. At map initialization, you store all your needed points in an array, resembling the order you need. Then you can call these points by their index in the array.
However, all points have numbers which can be used to access the point:
point p = PointFromId(5); Something like that
If you created all your points sequentially then they're most probably continuously numbered like 93/94/95/...
So then you can access them by
PointFromId( 92 + ImmoVar );
To find the number id of a point you can make a GUI trigger and put some event/action in it that uses this point. Then you look that up in galaxy script (F11) and you'll find it there.
So you might not even need an array, if you created the points sequentially.
So instead of creating many triggers can I create one trigger using Galaxy Script that does this: Create 1 unit for triggering player at Point("Pos" + AnyVariable.GetValue.tostring)... something like that.Is it possible?
No, Galaxy doesn't do this kind of runtime name evaluation (besides, that's very inefficient). Just use an array of points.
Is this what you're looking for?
http://www.sc2mapster.com/wiki/galaxy/triggers/create-units-facing-point/
libNtve_gf_UnitCreateFacingPoint ( int count, gamelink type, preset flags, int player, point pos, point facing )
Just call this function and key in all the parameters. Check the wiki documentation for the parameters that can be taken.
For example: I have 10 points named: ImmortalPos 1, ImmortalPos 2, ImmortalPos 3, ImmortalPos 4....and so on.. ImmortalPos 10
I have one variable: Set ImmoVar = 1
Then I make an action: Create 1 Immortal at Point("ImmortalPos " + ImmoVar.GetValue.toString)...
Is it understandable?If yes, is it POSSIBLE?
Not possible this way.
However, all points have numbers which can be used to access the point:
point p = PointFromId(5); Something like that
If you created all your points sequentially then they're most probably continuously numbered like 93/94/95/...
So then you can access them by
PointFromId( 92 + ImmoVar );
To find the number id of a point you can make a GUI trigger and put some event/action in it that uses this point. Then you look that up in galaxy script (F11) and you'll find it there.
It would be safest to just store them all in an array and be done with it.
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
@Alevice: Go
could you clerify that with the array?
Something like that. At map initialization, you store all your needed points in an array, resembling the order you need. Then you can call these points by their index in the array.
Also:
So you might not even need an array, if you created the points sequentially.
@Kueken531: Go
how do i declare the array variable?
The line:
point[5] = MyPoints;
is the declaration.
In this case Kueken declared it as a global variable since it is outside the void init function.
@FuzzYD: Go
@Kueken531: Go
thx dudes i think i got it done..if you have any question ask me xD!