Page 1 of 3
Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:12 pm
by Darktiger138
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:13 pm
by 3ICE
There is no event on the second trigger, so it never fires.
A periodic time event would suffice.
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:23 pm
by Darktiger138
Oops, I missed the event
Events
Time-Every 5.00 seconds of game time
thats what I have for the second one
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:25 pm
by 3ICE
In that case, check to make sure the player has enough resources to train the unit. Also make sure the unit can be trained (no tech requirements, listed on the building, training time close to 0, gold/wood/supply cost 0)
Debugging step: Change everything (units, triggers, resources) around, so you are the dark green player. Does anything happen?
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:27 pm
by Darktiger138
I have the cost of the unit at 0 gold 0 lumber 0 food, so thats not the problem.
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:27 pm
by 3ICE
At this point sharing the map would be the quickest way to a solution.
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:30 pm
by Darktiger138
Its no where near finished and its a bit of a mess, but sure.
I attached it to my first post.
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:39 pm
by 3ICE
As mentioned above:
3ICE wrote:...make sure the unit can be trained (..., listed on the building,...)
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:40 pm
by Darktiger138
I thought that was the problem, but the Shoota Boi units dont get trained either, under the same circumstances.
Re: Making new units be built by a Comp controlled barracks.
Posted: Fri Apr 13, 2012 7:53 pm
by 3ICE
The SpawningDG1 trigger never fires. If I delete the condition, it works.
It is because you are using quests instead of boolean variables for storing a true/false value.
Quests need to be initialized before they can be enabled:
This is how to do it
Quest - Create a Required quest titled t with the description d, using icon path i
Set Level1Units = (Last created quest)
Quest - Enable Level1Units