Build trained stops ?

wc345

Member
Reaction score
1
Why when i play about a 2 minutes of my game and it stops trained units from the buildings that i made them auto trains units :(
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
post the triggers please, we cant know what you are talking about till you do.
 

wc345

Member
Reaction score
1
Hey now i see when i make a barracks only they don't stops the train,but when i make another building they stops and that's with all buildings :( why is that ?
 

BlackRose

Forum User
Reaction score
239
Hi :)

Instead of taking screenshots of your triggers, I'll tell you something that will make your life much easier when it comes to sharing your triggers. Simply right click on the trigger and select "Copy as text", then you can paste it here. Make sure to apply
Trigger:
  • tags onto it.
    • Here's an example:
    • <div class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"><div class="bbCodeBlock-title">Trigger:</div><div class="wc3trigger"><ul class="wc3" id="wc3_1">
    • <li class="lastopen"><span class="default">Melee Initialization</span>
    • <ul>
    • <li class="open"><span class="events">Events</span>
    • <ul>
    • <li class="lasttree"><span class="default">Map initialization</span></li>
    • </ul>
    • </li>
    • <li class="tree"><span class="conditions">Conditions</span></li>
    • <li class="lastopen"><span class="actions">Actions</span>
    • <ul>
    • <li class="tree"><span class="melee">Melee Game - Use melee time of day (for all players)</span></li>
    • <li class="tree"><span class="melee">Melee Game - Limit Heroes to 1 per Hero-type (for all players)</span></li>
    • <li class="tree"><span class="melee">Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)</span></li>
    • <li class="tree"><span class="melee">Melee Game - Set starting resources (for all players)</span></li>
    • <li class="tree"><span class="melee">Melee Game - Remove creeps and critters from used start locations (for all players)</span></li>
    • <li class="tree"><span class="melee">Melee Game - Create starting units (for all players)</span></li>
    • <li class="tree"><span class="melee">Melee Game - Run melee AI scripts (for computer players)</span></li>
    • <li class="lasttree"><span class="melee">Melee Game - Enforce victory/defeat conditions (for all players)</span></li>
    • </ul>
    • </li>
    • </ul>
    • </li>
    • </ul>
    • </div></div>
    • As for your problem:
    • <blockquote data-attributes="" data-quote="" data-source=""
      • class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
      • <div class="bbCodeBlock-content">
        • <div class="bbCodeBlock-expandContent js-expandContent ">
          • Why when i play about a 2 minutes of my game and it stops trained units from the buildings that i made them auto trains units <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" />
        • </div>
        • <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
      • </div>
    • </blockquote>
    • Does the player have enough resources to train the unit?
    • <blockquote data-attributes="" data-quote="" data-source=""
      • class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch">
      • <div class="bbCodeBlock-content">
        • <div class="bbCodeBlock-expandContent js-expandContent ">
          • Hey now i see when i make a barracks only they don&#039;t stops the train,but when i make another building they stops and that&#039;s with all buildings why is that ?
        • </div>
        • <div class="bbCodeBlock-expandLink js-expandLink"><a role="button" tabindex="0">Click to expand...</a></div>
      • </div>
    • </blockquote>
    • I&#039;m not too sure if I understand you correctly, but here is what I got from what you&#039;ve said: the first barracks will automatically train units. However, when you build another barracks, the first will stop automatically training?
 

wc345

Member
Reaction score
1
Yes,exactly that's happend and the units don't required resources...

about posting the triggers,sorry i didn't know that,i will do it for next time :) thanks
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
The variable Building can only have one value. When you make the second Barracks, the first one is overwritten, and the second trigger only cause Building to train Footmen. As such, only the last constructed Barracks will automatically train Footmen. Try this:
Trigger:
  • Autospawn
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Footman
    • Actions
      • Unit - Order (Triggering unit) to train/upgrade to a Footman

I believe this is the method used in Castle Fight.
 

wc345

Member
Reaction score
1
Spawn1
Events
Unit - A unit Finishes training a unit
Conditions
(Unit-type of (Trained unit)) Equal to Footman
Actions
Unit - Order (Triggering unit) to train/upgrade to a Footman

i made this but it even don't want to start train...
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
I was assuming that you would automatically get constructed structures to train units. My bad.

Add this in.
Trigger:
  • Begin Autospawn
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Barracks
    • Actions
      • Unit - Order (Triggering unit) to train/upgrade to a Footman
      • Unit - Order (Triggering unit) to train/upgrade to a Footman
 

wc345

Member
Reaction score
1
But do i need to delete all other events and actions that i have ? like :

ON1
Events
Unit - A unit owned by Player 2 (Blue) Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Footman Barracks
Actions
Trigger - Turn on Spawn1 <gen>
Set Building = (Constructed structure)
 

wc345

Member
Reaction score
1
I tried to make a virable (Building2) but again when i make a for example another building that auto trains units and then make another bulding it doesn't matter that it is auto train or not auto train it again stops trains :(:(:( i can't figure out
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
The important things are the actions. If the events and conditions lead to the same effect, then don't remove them, just replace the old actions with the new ones.
 

wc345

Member
Reaction score
1
Well i can't do it,i try any variants but still they stops trains :( i tried and that what you post but again won't do it...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top