VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Hey guys,

How do i grant the local player a science without the command center?

This is what i have:
*** IF ***
    True.
*** THEN ***
   Player '<Local Player>' is granted Science 'SCIENCE_EmergencyRepair1'.
   Player '<Local Player>' is granted Science 'SCIENCE_RebelAmbush1'.
   Player '<Local Player>' set Science 'SCIENCE_EmergencyRepair1' availability to Science availability 'Available'.
   Player '<Local Player>' set Science 'SCIENCE_RebelAmbush1' availability to Science availability 'Available'.
But it doesn't work until I apply a command center to the map, on the local players team.
How do i make the sciences available without a command center?

Thanks
Rank up!
Sponsor
NewNightmare
14 years ago
through map.ini I think, You have to add modules to the type of CC will have for sure, or simply place a CC outside of the game border, and make it transfer to the player along with the sciences. You also would have to adjust lose conditions if selecting he 2nd option.
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Yes, because the local player is set to lose when all factories and units belonging to local player is destroyed, but they can't destroy the command center outside of the map, so how am i supposed to exclude that command center for them to destroy in the lose conditions?

Thanks
Rank up!
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
I tried this instead:

First script:
*** IF ***
    True.
*** THEN ***
   Player '<Local Player>' is granted Science 'SCIENCE_EmergencyRepair1'.
   Player '<Local Player>' is granted Science 'SCIENCE_RebelAmbush1'.
   Player '<Local Player>' set Science 'SCIENCE_EmergencyRepair1' availability to Science availability 'Available'.
   Player '<Local Player>' set Science 'SCIENCE_RebelAmbush1' availability to Science availability 'Available'.
Second script:
*** IF ***
    Player Player '<Local Player>' acquired Science 'SCIENCE_RebelAmbush1'.
    *AND* Player Player '<Local Player>' acquired Science 'SCIENCE_EmergencyRepair1'.
*** THEN ***
  [???] Command button: 'Command_TerrorCell' is added to all objects of type 'GLABarracks' in slot number  4  (1-12).
  [???] Command button: 'Command_EmergencyRepair' is added to all objects of type 'GLAArmsDealer' in slot number  4  (1-12).
It does work, except that when i click on the emergency repair for example, and then try to click on the ground, the cursor turns into a red cross symbol/no symbol.

And I couldn't find the "Command_RebelAmbush" in this codes drop-down box:
*** IF ***
    Player Player '<Local Player>' acquired Science 'SCIENCE_RebelAmbush1'.
    *AND* Player Player '<Local Player>' acquired Science 'SCIENCE_EmergencyRepair1'.
*** THEN ***
  [???] Command button: 'Command_TerrorCell' is added to all objects of type 'GLABarracks' in slot number  4  (1-12).
  [???] Command button: 'Command_EmergencyRepair' is added to all objects of type 'GLAArmsDealer' in slot number  4  (1-12).

So I tried "Command_TerrorCell" instead but that didn't work out, I don't even know what "Terror Cell" is, lol.
Please check the map out to see what I mean and if you can solve it, it's a .rar file.


Thanks!   GLA - Mission 1.rar (81kb) downloaded 1 time(s).
Rank up!
Annihilationzh
14 years ago
Make a script that deletes the off map CC if the player doesn't have any other CCs.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
But if I remove the off-map CC the sciences on the right side of your screen would disappear right?

EDIT*

The emergency repair is placed in the 4th slot of the Arms Dealer and the Rebel Ambush in the 4th slot of the Barracks.
By the way, where do I find the button that places the rebel ambush, I can only find the one that says something like:
"Command_PurchaseScienceRebelAmbush1".

I Tried "Command_TerrorCell" but that didn't work...

EDIT*

Please download the map and check the scripts and the 4th slot in the Barracks and the Arms Dealer, it's hard to explain.

Thanks   GLA - Mission 1.rar (81kb) downloaded 2 time(s).
Rank up!
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Okay i fixed it, I placed an off-map CC and then made a script like this:

*** IF ***
    All factories belonging to  Player '<Local Player>' have been destroyed.
*** THEN ***
   Unit 'CC'is dealt a lethal amount of damage.

And then ofcourse the game over script.

Thanks for the help.
Rank up!
NewNightmare
14 years ago
glad it worked ^^
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Thanks 🙂
Rank up!
NewNightmare
14 years ago
Just a thing I've noticed, 'you've all factories gone'... what if a player has $2000000, a power plant and a dozer? game still over?
You can add
***if doesn't have a unit of type 'All kinds of dozers and workers here'***
on top of those factories to ensure the 'fairness' ofc unless your survival OBJ is to keep some factories alive :)
Similar thing is used in Chi06 for generals in win/lose conditions script ( if no lotus and barracks, cya m8)
VTULCobra
  • VTULCobra
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Oh yes, cool, didn't think of that. 🙂
Rank up!