Page 2 of 3

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 7:56 pm
by Darktiger138
But when I had no quest for the primary spawns (Shoota Bois) then they worked fine, but the Nobs didn't initialize, so I tried to see if I could fix it up, but failed.
Ok, I'll use your variation.

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 7:58 pm
by 3ICE
They work for me. Try using booleans instead of quests.

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:21 pm
by Darktiger138
I got it
No I don't
Ok I got, thanks heaps!

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:24 pm
by 3ICE
Depends on what your goal is.

Why did you originally make those variables into quests? Do you intend to have a quest log (F9)? Or did you just not know about boolean variables?

If you want a quest to show what unit type is being spawned, leave them as quests.

If you simply want to fix the spawning system with the least amount of work, change them to boolean.

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:32 pm
by Darktiger138
But wait, when I put the variables as Boolean I cant get the 'Last created Quest' I just end up with (Level1Units=(Last created quest) is enabled, completed, failed, discovered or required)

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:34 pm
by 3ICE
Boolean is not a quest variable. It simply holds the value true or the value false. You do not need to check a non existent quests's state.

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:36 pm
by Darktiger138
I know that, but do I just use the Boolean statement to compare the quest variable?

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:38 pm
by 3ICE
Forget about quests.

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:40 pm
by Darktiger138
But then how do I assign the any unit initialization to a Boolean variable.

Re: Making new units be built by a Comp controlled barracks.

Posted: Fri Apr 13, 2012 8:46 pm
by 3ICE
Set it to True.