I cant find a way to make "create cargo units" work for neither of my transport units...
TO make it most simple i have made such test trigger (i have had other triggers like the one after unit is being created etc, but thought maybe im making some silly sleepy mistake in them so i made this simple one):
Events
Unit Selection - Any Unit is clicked by Player Any Player
Local Variables
Conditions
Actions
Unit - Create 1 Marine as cargo in (Triggering unit)
and after clicking each of transporters, nothing happens... Can someone tell me what am i doing wrong?
edit: This freaking trigger is just broken! I have made a new, blank map with 1 medivac and this trigger, and it still dosnt work...
@Azzaaer: Go
Dont know what yor doing wrong accept the unit your trying to make cargo in doesnt have room. here is a trigger i use in one of my maps that works very well.
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables
Vehicle Cost = 0 <Integer>
Transport = No Unit <Unit>
Conditions
(Vehicle Select Dialog Menu[1] is visible for (Triggering player)) == true
(Triggering player) is in Team 01) == true
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Triggering player) Minerals) >= Vehicle Cost[1]
Transport Blocked[1] == false
(Used dialog item) == SCV[1]
Then
Variable - Set Transport Blocked[1] = true
Variable - Set Vehicle Cost = Vehicle Cost[1]
Player - Modify player (Triggering player) Minerals: Subtract Vehicle Cost[1]
Unit - Create 1 Hercules (Lander, Flying) for player 13 at Vehicle Spawn Point Team 1 using default facing (No Options)
Variable - Set Transport = (Last created unit)
Unit - Create 1 Vehicle Type[1] as cargo in Transport
Unit - Set (Last created cargo unit) scale to (200.0%, 200.0%, 200.0%) of its original size
Unit - Order Transport to (Hercules - Land (Terran Buildings) targeting Vehicle Delivery Team 1) (After Existing Orders)
Unit - Order Transport to (Hercules - Unload All (Medivacs) targeting Vehicle Delivery Team 1) (After Existing Orders)
General - Wait 20.0 Game Time seconds
Unit - Order Transport to (Hercules - Lift Off (Terran Buildings)) (Replace Existing Orders)
General - Wait 5.0 Game Time seconds
Unit - Order Transport to ( Move targeting Vehicle Spawn Point Team 1) (After Existing Orders)
General - Wait 10.0 Game Time seconds
Unit - Remove Transport from the game
Variable - Set Transport Blocked[1] = false
Your post is blurred for my tired eyes tbh. But what do you mean that unit have no room? Im talking about totally empty transport units, so how does it make any sense?
Ow a breaktreough! Trigger works with periodic event instead of click on unit. Good sign. Seems "unit is clicked" is one of not working events.
edit2:
yep... it all wokrs now. I propably had some error in my pevious triggers, and this "unit is clicked" broken event made me think that action "create cargo" is broken ;P Thats what happens when you play in galxy editor instead of sleeping for several hours now.
Your post is blurred for my tired eyes tbh. But what do you mean that unit have no room? Im talking about totally empty transport units, so how does it make any sense?
I was just saying to make sure the cargo unit you were loading cargo into was (1 capable of loading cargo and (2 had room for the unit that was being loaded. Sorry for the fd up post before.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I cant find a way to make "create cargo units" work for neither of my transport units...
TO make it most simple i have made such test trigger (i have had other triggers like the one after unit is being created etc, but thought maybe im making some silly sleepy mistake in them so i made this simple one):
Events
Unit Selection - Any Unit is clicked by Player Any Player
Local Variables
Conditions
Actions
Unit - Create 1 Marine as cargo in (Triggering unit)
and after clicking each of transporters, nothing happens... Can someone tell me what am i doing wrong?
edit: This freaking trigger is just broken! I have made a new, blank map with 1 medivac and this trigger, and it still dosnt work...
@Azzaaer: Go Dont know what yor doing wrong accept the unit your trying to make cargo in doesnt have room. here is a trigger i use in one of my maps that works very well.
Events Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables Vehicle Cost = 0 <Integer> Transport = No Unit <Unit>
Conditions (Vehicle Select Dialog Menu[1] is visible for (Triggering player)) == true (Triggering player) is in Team 01) == true
Actions
General - If (Conditions) then do (Actions) else do (Actions) If (Player (Triggering player) Minerals) >= Vehicle Cost[1] Transport Blocked[1] == false (Used dialog item) == SCV[1]
Then Variable - Set Transport Blocked[1] = true Variable - Set Vehicle Cost = Vehicle Cost[1] Player - Modify player (Triggering player) Minerals: Subtract Vehicle Cost[1] Unit - Create 1 Hercules (Lander, Flying) for player 13 at Vehicle Spawn Point Team 1 using default facing (No Options)
Variable - Set Transport = (Last created unit) Unit - Create 1 Vehicle Type[1] as cargo in Transport Unit - Set (Last created cargo unit) scale to (200.0%, 200.0%, 200.0%) of its original size Unit - Order Transport to (Hercules - Land (Terran Buildings) targeting Vehicle Delivery Team 1) (After Existing Orders) Unit - Order Transport to (Hercules - Unload All (Medivacs) targeting Vehicle Delivery Team 1) (After Existing Orders) General - Wait 20.0 Game Time seconds Unit - Order Transport to (Hercules - Lift Off (Terran Buildings)) (Replace Existing Orders) General - Wait 5.0 Game Time seconds Unit - Order Transport to ( Move targeting Vehicle Spawn Point Team 1) (After Existing Orders) General - Wait 10.0 Game Time seconds Unit - Remove Transport from the game Variable - Set Transport Blocked[1] = false
Else
@IsoRev: Go
Your post is blurred for my tired eyes tbh. But what do you mean that unit have no room? Im talking about totally empty transport units, so how does it make any sense?
@Azzaaer: Go
Ow a breaktreough! Trigger works with periodic event instead of click on unit. Good sign. Seems "unit is clicked" is one of not working events.
edit2:
yep... it all wokrs now. I propably had some error in my pevious triggers, and this "unit is clicked" broken event made me think that action "create cargo" is broken ;P Thats what happens when you play in galxy editor instead of sleeping for several hours now.
"Unit is clicked" events only fire when the unit's "Unclickable" flag is not checked, which the default for most units.
I was just saying to make sure the cargo unit you were loading cargo into was (1 capable of loading cargo and (2 had room for the unit that was being loaded. Sorry for the fd up post before.