|  |
|  |
07-24-2005, 01:50 AM
|
#1 (permalink)
| BattleForums Newbie
Join Date: Jul 2005 Age: 15 Posts: 5
| How do u do this I was making amap i have a question how do u make a unit change to another unit and still be in the same place then change back |
| | | | Sponsored Links |
07-24-2005, 08:36 PM
|
#2 (permalink)
| I still play games
Join Date: Nov 2003 Posts: 1,711
| Quote:
Trigger 1:
Condition:
Bring(<player>,<atleast/atmost/exactly>,<number>,<unit>,<location>)
Action:
SetSwitch 2
Trigger 2:
Condition:
Switch2 is set
Always
Action:
RemoveUnitAtLocation(<number of units>, <unit>, <player>, <location>)
CreateUnit(<number of units>, <unit>, <location>, <player>)
SetSwitch 1
ClearSwitch 2
PreserveTrigger
Trigger 3:
Conditions:
Switch1 is set
Bring(<player>,<atleast/atmost/exactly>,<number>,<unit>,<location>) //for the unit you would put the unit that you just created
Always
Action:
RemoveUnitAtLocation(<number of units>, <unit>, <player>, <location>) //unit you just created
CreateUnit(<number of units>, <unit>, <location>, <player>)//unit that was removed before
SetSwitch 2
ClearSwitch 1
PreserveTrigger
|
This should work, unless of course I've forgotten everything I know about starcraft...
Of course, I love to overcomplicate things, so you should probably be able to do this in about maybe 4 actions or something.
/fixed
__________________ Quote: |
My perception crit, now I can see why kids love Cinnamon Toast Crunch cereal.
|
Last edited by Octopor; 07-24-2005 at 08:43 PM.
|
| |
07-24-2005, 10:33 PM
|
#3 (permalink)
| BattleForums Newbie
Join Date: Jul 2005 Age: 15 Posts: 5
| i got another question how do u get a unit appear next to unit
but that unit (the one is there not the on appear)is not on a location :nooob |
| |
07-25-2005, 12:26 AM
|
#4 (permalink)
| BattleForums Addict
Join Date: Aug 2002 Location: The Swiming Pools Age: 20 Posts: 834
| you can use a trigger to move a location to a unit.
__________________ I Will Rise from the Depths and be HEARD! |
| |
07-25-2005, 04:09 AM
|
#5 (permalink)
| BattleForums Senior Member
Join Date: Jan 2005 Location: near Watertown, NY Age: 23 Posts: 2,985
| One of the actions available is "Move Location to Unit controlled by Player at Anywhere". If you have any trouble from there, or any more questions, just ask.
__________________  WHEN WILL TEH EGG HATCH!?!! MEOWZ!!1
Last edited by -Azrael666-; 07-25-2005 at 09:44 PM.
Reason: To make you read one more sentence.
|
| |
07-25-2005, 06:27 PM
|
#6 (permalink)
| I still play games
Join Date: Nov 2003 Posts: 1,711
| Quote: |
Originally Posted by Icedragon you can use a trigger to move a location to a unit. | Bah.
I'm rusty. 
__________________ Quote: |
My perception crit, now I can see why kids love Cinnamon Toast Crunch cereal.
| |
| | | |  | | Get rid of all these ads! Take 30 seconds to register. |