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
613
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
613
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
613
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.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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