Warcraft III resources & community, 2003–2006 · archived

Stop unit Training

15 posts
#1

Stop unit Training

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...

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
#2
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
#3
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...
#4
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.
#5
What would i use as an even the unit owned by player 1 red <does what?>
#6
umm.. for wat?
wat are you trying to do? im lost...
generic unit sells item?
#7
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...
#8
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.
#9
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...
#10
condition:
item type of item being sold = to
#11
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...?
#13
I solved it...
#14
was i of any help?
#15
yes very helpful :P