• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Stop unit Training

Status
Not open for further replies.
Level 3
Joined
Apr 27, 2005
Messages
28
I just need and action to stop unit train... anyone know what/ where one is?

Here my trigger and i just need to stop the training once the unit is creat... will make instant build...

Code:
Units
    Events
        Unit - A unit owned by Player 1 (Red) Begins training a unit
        Unit - A unit owned by Player 2 (Blue) Begins training a unit
        Unit - A unit owned by Player 3 (Teal) Begins training a unit
        Unit - A unit owned by Player 4 (Purple) Begins training a unit
        Unit - A unit owned by Player 5 (Yellow) Begins training a unit
        Unit - A unit owned by Player 6 (Orange) Begins training a unit
        Unit - A unit owned by Player 7 (Green) Begins training a unit
        Unit - A unit owned by Player 9 (Gray) Begins training a unit
    Conditions
    Actions
        Unit - Create 1 (Trained unit-type) for (Triggering player) at (Position of (Triggering unit)) facing Default building facing (270.0) degrees
 
Level 6
Joined
May 8, 2005
Messages
249
multiple ways to fix,

you could make the building sell items, with the units icons, and say item is sold, create unit.

or you could issue and order to stop, but not sure if the order will work.

why not just make the unit not take so long to train?


edit: i read your other post, just use items. create an item with unit info and unit icon, and make the building able to sell that item. set teh gold and lumber cost, and delete the item abilities. also, delete the item buff or effect, and make it a power up.
then do trigger:
generic or specific unit sell an item (from shop)
item type = the item to each unit
create unit at facing
 
Level 3
Joined
Apr 27, 2005
Messages
28
so there is or isent an action for stoping unit trainig?

- I am trying to do this trigger to make the unit build instant thus im am doing it to get around the 1 second time between when a unit stops staining and when the next start...
 
Level 6
Joined
May 8, 2005
Messages
249
if there is, its order unit to stop, or some custom string that i dont know. but items work great, because you can delay the trigger and set cool downs for the items.
 
Level 3
Joined
Apr 27, 2005
Messages
28
im trying to make it so that once i click on an icon a unit matching the icon would be created with no cooldown of the icont makeing it so that it can be repepeeated without any time in between...
 
Level 6
Joined
May 8, 2005
Messages
249
generic unit sells item(from shop)
item type of item being sold = your item
create unit at

just make the item a power up.
if you need help, ill make an example map for you.
 
Level 3
Joined
Apr 27, 2005
Messages
28
This is what i have and item is base on Glyph of Ultravision and is sold from a barracks...

Units Copy
Events
Unit - A unit owned by Player 1 (Red) Sells an item (from shop)
Unit - A unit owned by Player 2 (Blue) Sells an item (from shop)
Unit - A unit owned by Player 3 (Teal) Sells an item (from shop)
Unit - A unit owned by Player 4 (Purple) Sells an item (from shop)
Unit - A unit owned by Player 5 (Yellow) Sells an item (from shop)
Unit - A unit owned by Player 6 (Orange) Sells an item (from shop)
Unit - A unit owned by Player 7 (Green) Sells an item (from shop)
Unit - A unit owned by Player 9 (Gray) Sells an item (from shop)
Conditions
Actions
Unit - Create 1 (Trained unit-type) for (Triggering player) at (Position of (Triggering unit)) facing Default building facing (270.0) degrees

If this isent right can you post an example...
 
Level 3
Joined
Apr 27, 2005
Messages
28
there is still that wait time... do you think you could do this on a map as an example and post it to see if there is any diffrence...?
 
Status
Not open for further replies.
Top