zuzzlan
  • zuzzlan
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago
Is there a way you could limit how many of a certain structure a certain player can have on multiplayer (aka not editing the .ini file) such as not making them able to build more than 5 black markets or 3 arms dealers or such.
Sponsor
zero hour mad map maker
8 years ago
This would work to an extent, however, it would disable all building powers......

*** IF ***
Player 'GLA' has Equal To 5 unit or structure of type 'GLABlackMarket'
*** THEN ***
Player 'GLA' is unable to build buildings.

*** IF ***
Player 'GLA' has Less than 4 unit or structure of type 'GLABlackMarket'
*** THEN ***
Player 'GLA' is able to build buildings.


When it comes down to specifics though, I looked around and couldn't find anything in particular. There is a way to do it, but I've never thought of that xD. I'm sure someone would know!




Ready for Anything! --- C&C Labs Staff , Maps Staff , Moderator
i^love^mixery
8 years ago

This would work to an extent, however, it would disable all building powers......

*** IF ***
Player 'GLA' has Equal To 5 unit or structure of type 'GLABlackMarket'

Originally Posted by: Zero Hour Mad Map Maker 



If this condition works inmultiplayer maps then you could work with adding/removing command buttons from the dozers/workers.
zuzzlan
  • zuzzlan
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago
I've gotten the Black Markets to sort of work. The cameo flickers at rare times, especially just after you've selected a worker. But when Black Markets are enabled they become properly buildable. You still have time to bypass the script and build more Black Markets though if you just spam the shortcut button to select the Black Market. This is what I did.

*** IF ***
Player 'player2' has Less Than 5 unit or structure of type 'GLABlackMarket'
*** THEN ***
'GLABlackMarket' becomes Buildable (Yes)

*** IF ***
Player 'player2' has Greater Than or Equal To 5 unit or structure of type 'GLABlackMarket'
*** THEN ***
'GLABlackMarket' becomes Buildable (No)

Another issue I have is that I also want to limit hackers to 8 in total. But this could be exploited by just killing one of your hackers, and then build 9 more, due to the script not triggering as long as the hacker hasn't been fully constructed yet. This is what I did.

*** IF ***
Player 'player0' has Less Than 8 unit or structure of type 'ChinaInfantryHacker'
*** THEN ***
'ChinaInfantryHacker' becomes Buildable (Yes)

*** IF ***
Player 'player0' has Greater Than or Equal To 8 unit or structure of type 'ChinaInfantryHacker'
*** THEN ***
'ChinaInfantryHacker' becomes Buildable (No)

Strangely enough the hacker cameo doesn't flicker like the Black Market does. Help with any of these problems would be appreciated.
Unknown Editor
8 years ago
Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :

Object Slth_FakeGLABlackMarket
  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

Object Slth_GLABlackMarket

  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

By this Player can not Order 4 or 5 Black Markets and then after Finishing 1 of them then Player Becomes Unable to Build more .
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
SkyMix_RMT
8 years ago

Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :


Object Slth_FakeGLABlackMarket
  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

Object Slth_GLABlackMarket

  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

By this Player can not Order 4 or 5 Black Markets and then after Finishing 1 of them then Player Becomes Unable to Build more .

Originally Posted by: Unknown Editor 



Map.ini in a multiplayer map will cause mismatches. Not a good ideia here.

Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
zuzzlan
  • zuzzlan
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago

Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :


Object Slth_FakeGLABlackMarket
  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

Object Slth_GLABlackMarket

  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

By this Player can not Order 4 or 5 Black Markets and then after Finishing 1 of them then Player Becomes Unable to Build more .

Originally Posted by: SkyMix_RMT 



Map.ini in a multiplayer map will cause mismatches. Not a good ideia here.

Originally Posted by: Unknown Editor 



Yeah, I will not be able to change the map.ini when playing online. Anyone with another idea?
Unknown Editor
8 years ago

Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :


Object Slth_FakeGLABlackMarket
  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

Object Slth_GLABlackMarket

  MaxSimultaneousOfType = 1
  MaxSimultaneousLinkKey = BlackMarket
End

By this Player can not Order 4 or 5 Black Markets and then after Finishing 1 of them then Player Becomes Unable to Build more .

Originally Posted by: SkyMix_RMT 



Map.ini in a multiplayer map will cause mismatches. Not a good ideia here.

Originally Posted by: Unknown Editor 



We can't Actually say "WILL" , I have played with map.ini sometimes that I got bored of a regullar Game .
That's Right that there is 50% to get a mismatche but there is always a chance for any Errors .
Lots of times , I got mismatches in ini-Less Maps even Officials .
But anyways , If I found any better ways , I'll notice You 😉
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
SkyMix_RMT
8 years ago
You've played online with map.ini before? We're talking about multiplayer here not skirmish.
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
Unknown Editor
8 years ago
Sorry For Being OffLine for this 3 Days .
Yap , I've Played with it By "Game Ranger" ; First It Sends the .map and Then .tga and then map.ini and map.str and then I don't know Why but Sometimes It'll Take a Mismatch at the Game Start , Other Hand it will Work Correctly , However I've Gotten lots of Mismatches in the Games I've Played even In Official maps , I don't know why maybe Their Hardwar Can not Support the Game Like mine and Mine Like Others and also it Happens aLot when There are too Many Units .
For example Once I was About to Attack my opponent with 200 units and then Mismatch Detected 😞
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%