Posted by: zuzzlan - Saturday, April 22, 2017 6:37:23 PM
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.
Posted by: zero hour mad map maker - Saturday, April 22, 2017 7:33:29 PM
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!
Posted by: i^love^mixery - Saturday, April 22, 2017 8:10:00 PM
[quote=Zero Hour Mad Map Maker;144487]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'
[/quote]
If this condition works inmultiplayer maps then you could work with adding/removing command buttons from the dozers/workers.
Posted by: zuzzlan - Monday, May 22, 2017 9:59:52 PM
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.
Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :
[code=cpp]
Object Slth_FakeGLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End
Object Slth_GLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End[/code]
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 .
Posted by: SkyMix_RMT - Tuesday, May 23, 2017 5:02:25 AM
[quote=Unknown Editor;145210]Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :
[code=cpp]
Object Slth_FakeGLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End
Object Slth_GLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End[/code]
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 .[/quote]
Map.ini in a multiplayer map will cause mismatches. Not a good ideia here.
Posted by: zuzzlan - Tuesday, May 23, 2017 9:41:50 AM
[quote=SkyMix_RMT;145214][quote=Unknown Editor;145210]Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :
[code=cpp]
Object Slth_FakeGLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End
Object Slth_GLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End[/code]
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 .[/quote]
Map.ini in a multiplayer map will cause mismatches. Not a good ideia here.
[/quote]
Yeah, I will not be able to change the map.ini when playing online. Anyone with another idea?
Posted by: Unknown Editor - Tuesday, May 23, 2017 9:56:06 AM
[quote=SkyMix_RMT;145214][quote=Unknown Editor;145210]Another Way is to use map.ini and I think MaxSimultaneousOfType , Yap .
It will work like a superweapon limitation .
Here is an Example :
[code=cpp]
Object Slth_FakeGLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End
Object Slth_GLABlackMarket
MaxSimultaneousOfType = 1
MaxSimultaneousLinkKey = BlackMarket
End[/code]
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 .[/quote]
Map.ini in a multiplayer map will cause mismatches. Not a good ideia here.
[/quote]
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 [wink]
Posted by: SkyMix_RMT - Tuesday, May 23, 2017 5:46:36 PM
You've played online with map.ini before? We're talking about multiplayer here not skirmish.
Posted by: Unknown Editor - Saturday, May 27, 2017 4:36:26 AM
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 [disappointed]