Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Moveunits doesn't work! Need help fast!, MoveUnits

Creator: shafka
Time: Mar 8 2008, 10:38 am

Post #1     shafka Mar 8 2008, 10:38 am

[Avatar]
 offline contact
Ok, i'll try be as clear as possible...
There is one location where units are, and there is other location to which those units are moved, when you need to choose them. This is trigger after u choose 1 of 3 units:

Bring(P7, Exactly, 2, AnyUnit, P1 CHOOSE UNITS);

KillUnitAt(All, AnyUnit, P1 CHOOSE UNITS, P7);
MoveUnit(1, AnyUnit, CurrentPlayer, RANDOM UNITS, UNIT 1 P1);
MoveUnit(1, AnyUnit, CurrentPlayer, RANDOM UNITS, UNIT 2 P1);
MoveUnit(1, AnyUnit, CurrentPlayer, RANDOM UNITS, UNIT 3 P1);
PreserveTrigger();

So...my problem is: as i know there are limitations for units, and to avoid useless killing of them i decided, to get them back to that random unit place where they are located, so instead of KillUnitsAt i tried to use MoveUnit command, like this:

MoveUnit(All, AnyUnit, P7, P1 CHOOSE UNITS, RANDOM UNITS RESET);
MoveUnit(1, AnyUnit, CurrentPlayer, RANDOM UNITS, UNIT 1 P1);
MoveUnit(1, AnyUnit, CurrentPlayer, RANDOM UNITS, UNIT 2 P1);
MoveUnit(1, AnyUnit, CurrentPlayer, RANDOM UNITS, UNIT 3 P1);
PreserveTrigger();

This command work till: those 2 units which are left after choosing, is moved to my location, BUT new units doesn't apear!!! WTF???? why with KillUnitsAt they appear after killing, and with MoveUnits command when they are moved back to start location, new units does not appear after they're moved?

If Anyone can help with this please reply :) thank you for your time
Top

Post #2     who Mar 8 2008, 10:43 am

[Avatar]
someone09
 offline contact
does the "p1 choose units" location happen to overlap the "Unit 1 P1" location?
(user posted image)
Top

Post #3     NudeRaider Mar 8 2008, 11:23 am

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
You said you wanted to be clear but you should tell us where the locations and the units are when these triggers fire or we can guess what is happening.

I don't understand what's going on at all...
Try writing the triggers or explaining them.
Code is hard to read if you have no clue whats supposed to happen.
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #4     shafka Mar 8 2008, 12:15 pm

[Avatar]
 offline contact
Ok...i'll try explaining... There is location with units as i said which are moved to choosing locations at start of each level. The choose location is consistent with 8 locations:
1. P1 CHOOSE UNITS (square form which contains other lcoations)
2. P1 GET UNIT 1 (u walk there and get that unit which is in this location)
3. P1 GET UNIT 2 --"--
4. P1 GET UNIT 3 --"--
5. UNIT 1 P1 (it's a location to which 1 unit is moved from where they all are)
6. UNIT 2 P1
7. UNIT 3 P1

So basicaly the idea is: when u choose ex. Level 1, u get civilian, and from all unit location 3 units are being moved to Unit 1, 2 ,3 for Player 1 (5,6,7) Then u choose 1 unit (when u get to locations (2,3,4) u get that unit, and then other are killed and new ones are moved, based on howm any civs u get to choose units. And there is problem whichc i asked u to help with
Top

Post #5     who Mar 8 2008, 1:02 pm

[Avatar]
someone09
 offline contact
i think you should post up the map; it's kind of confusing and it would help if we could see all the triggers and locations
(user posted image)
Top

Post #6     shafka Mar 8 2008, 1:32 pm

[Avatar]
 offline contact
OK here it is...looking forward for help
Attachments:
scx file
Impossible Nirvana.scx (407.54 kb)
2 hits.
Top

Post #7     NudeRaider Mar 8 2008, 2:29 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Uhm so you are trying to implement a level chooser. The choosing takes place at P1 choose units
And dependent on that level you give the players their units at the right spots UNIT 1-3 P1,5-7.

So you have a couple of locations to choose the level from (P1,5-7 GET UNIT 1-3) and on that beacon the units you get for that level are standing?
Then make a triggers like this:

C: Player 1 brings at least 1 civ to 'P1 GET UNIT 1'
A: Remove all civ of P1
A: Move <unit of P1, level 1> at 'P1 GET UNIT 1' to UNIT 1 P1
A: Move <unit of P5, level 1> at 'P5 GET UNIT 1' to UNIT 1 P5
A: Move <unit of P6, level 1> at 'P6 GET UNIT 1' to UNIT 1 P6
A: Move <unit of P7, level 1> at 'P7 GET UNIT 1' to UNIT 1 P7

C: Player 1 brings at least 1 civ to 'P1 GET UNIT 2'
A: Remove all civ of P1
A: Move <unit of P1, level 2> at 'P1 GET UNIT 2' to UNIT 2 P1
A: Move <unit of P5, level 2> at 'P5 GET UNIT 2' to UNIT 2 P5
A: Move <unit of P6, level 2> at 'P6 GET UNIT 2' to UNIT 2 P6
A: Move <unit of P7, level 2> at 'P7 GET UNIT 2' to UNIT 2 P7

C: Player 1 brings at least 1 civ to 'P1 GET UNIT 3'
A: Remove all civ of P1
A: Move <unit of P1, level 3> at 'P1 GET UNIT 3' to UNIT 3 P1
A: Move <unit of P5, level 3> at 'P5 GET UNIT 3' to UNIT 3 P5
A: Move <unit of P6, level 3> at 'P6 GET UNIT 3' to UNIT 3 P6
A: Move <unit of P7, level 3> at 'P7 GET UNIT 3' to UNIT 3 P7
(signature image)
http://sonsofwar.pyrom.net/index.html___0% (user posted image) 100%
Top

Post #8     shafka Mar 8 2008, 2:51 pm

[Avatar]
 offline contact
Hm....i think u didn't get that :) or maybe i'm not getting it, i posted my map, try it and you will see what i am talking about
Top
0 members in this topic: None
+ 0 guest(s)


[02:48 am]
[Echo]:] -- i was gonna ask dark marine to pop in :(
[02:45 am]
Obama.l)ark_ssj9kevin -- wtf fail you cant have the same person for that
[02:45 am]
Obama.l)ark_ssj9kevin -- thats right meowth? wtf?
[02:45 am]
NerdyTerdy -- Meowth Dat’s right!
[02:45 am]
NerdyTerdy -- Surrender now or prepare to fight!
[02:42 am]
[Echo]:] -- Team Rocket, blast off at the speed of light!
[02:42 am]
NerdyTerdy -- James!
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions