HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Auto-Building help needed.

03-24-2007, 11:55 PM#1
Phish-Paste
Does anyone know the trigger which causes units to be built from a building? I can't seem to find the trigger that affects general units.

The GUI trigger is only available for specific units, and I want it so the trigger will cause a building to create the unit in the first slot.

Thanks in advance~
03-25-2007, 03:21 AM#2
Szythe
I'm not quite sure what you're asking for due to your extremely short and vague explanation, however I'll take a stab at it:

Trigger:
Train A Unit
Events
Conditions
Collapse Actions
Unit - Order (A Unit) to train/upgrade to a Footman

This sounds like the action you need, however I can't be sure due to the wording of your question.
03-25-2007, 03:59 AM#3
TaintedReality
You can't order a building to build units based on what slot they're in. However, as Szythe pointed out it's very easy to have the building build units as long as you know what unit you want them to build.
03-25-2007, 04:56 AM#4
Phish-Paste
EDIT: There's a glitch in my system, so, it doesn't work.
03-25-2007, 05:00 AM#5
Dil999
I dont think theres a way to build any unit using a building, unless you give the buldings all those units to start out with. The easiest thing to do would be create it with a trigger and make the building play its build anim.
03-25-2007, 05:15 AM#6
Earth-Fury
Quote:
Originally Posted by Phish-Paste
Also, how do I post GUI pictures into the text box?
in the world editor:
Right Click->Copy as text

On the forum:

[trigger]
paste here
[/trigger]
03-25-2007, 05:26 AM#7
Phish-Paste
Trigger:
Recreate
Collapse Events
Unit - A unit Finishes training a unit
Collapse Conditions
((Triggering unit) is A structure) Equal to True
Collapse Actions
Unit - Order (Triggering unit) to train/upgrade to a (Unit-type of (Trained unit))

Thats what I have as the "auto-build" feature.

BUT, the glitch is that once that trigger executes, no other commands can be made with the building(ex. cannot upgrade, only build units).

If anyone can help, feel free. I also can understand a bit of JASS, so you can help me that way also. Thanks.
03-25-2007, 05:54 AM#8
Pyrogasm
What's the problem? It should only add that unit to the queue. After it's been ordered to train/upgrade 1, it should fill the slot. Then, as long as there is an open slot in the queue, the upgrade/whatever else you want to do should be added to it.


I don't understand; does the trigger fire when you cancel a unit from the build queue?
03-25-2007, 07:35 AM#9
Phish-Paste
Quote:
Originally Posted by Pyrogasm
What's the problem? It should only add that unit to the queue. After it's been ordered to train/upgrade 1, it should fill the slot. Then, as long as there is an open slot in the queue, the upgrade/whatever else you want to do should be added to it.


I don't understand; does the trigger fire when you cancel a unit from the build queue?

The trigger works, but it locks all other commands.

You can only build the unit and ONLY the unit; you can't upgrade the tier, or click any other button the building has. It's like when a unit is silenced, you can't cast, except in this case, I can't upgrade.
Before trigger


After trigger
03-25-2007, 07:40 AM#10
Pyrogasm
That's odd. I'll look into this.
03-25-2007, 02:45 PM#11
darkwulfv
Well if you're trying to upgrade the building like a tier (town hall, etc.), then when something is already being done, you can't upgrade it. Unit upgrades, however, should still work fine.
03-25-2007, 07:32 PM#12
Phish-Paste
Quote:
Originally Posted by darkwulfv
Well if you're trying to upgrade the building like a tier (town hall, etc.), then when something is already being done, you can't upgrade it. Unit upgrades, however, should still work fine.

Even after the unit finishes building, It still remains as in my "After" picture.
03-25-2007, 07:43 PM#13
Dil999
Because its training another.

Give players a command -auto on and -auto off, so they can stop autbuild to upgrade.
04-01-2007, 11:01 PM#14
Phish-Paste
Quote:
Originally Posted by Dil999
Because its training another.

Give players a command -auto on and -auto off, so they can stop autbuild to upgrade.

That's simply not it. All units have been done training, yet it seems like there are still units being trained. Is there some sort of loop hole in the trigger?