Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Change.  
#1 Posted : Saturday, February 24, 2018 8:04:35 AM(UTC)
Change.
Private
Joined: 2/24/2018(UTC)
Posts: 3

Hi all!
I've been messing around with the worldbuilder, hoping to make some interesting multiplayer maps, and I've been looking into a "game mode" where late game cash suppliers (Drop Zones, Hackers and Black Markets) are impossible to build or aquire, or where they can't generate cash.
Now, I actually only have the base game (Generals) and not ZH, but the world builder is pretty similar, as far as I can tell.
So I've been looking at a script function called "[Scripting] Remove a command button from an object type", which should do the job, but I just can't seem to make it work.. for testing I set it like this:

if
true
then
Command button: 'Command_ConstructAmericaBarracks' is removed from all object of type 'AmericaVehicleDozer'
(then it displays a string (to ensure the script is actually running))

I place the script in the 'PlyrCivilian' folder (because that seems to affect all players) and make it evaluate every 2 seconds (because sometimes evaluating things ever frame seems to mess things up). I use "constructamericabarracks" from "americaVehicleDozer" just to make testing simple. I start a game as USA, and the string shows up. And again. And again. But when I select my dozer in-game, I can still build a barracs. Why?
Have I misunderstood how the command works? How does the command actually work?

My best bet would be if you couldn't make drop zones, couldn't use the hacker's cash hack ability, and mabye limit the amount of black markets you can build to 1 or something

o/
Sponsor
Offline acidbrain  
#2 Posted : Saturday, February 24, 2018 12:36:13 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
If you want a unit to be not buildable you can add a map.ini to the mapfolder with the following code, i take the USA Barracks as example:
Code:

Object AmericaBarracks
  Buildable = No
End


Cheers
Panem et kirkinses
Offline AdrianeMapMaker  
#3 Posted : Sunday, February 25, 2018 7:37:15 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
Just saying that the world builder cant insure what he says. This tool is beta..

BTW some of the under the scripting tag is not available at unnofficial maps.. Like that one that you use.
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline acidbrain  
#4 Posted : Sunday, February 25, 2018 12:27:40 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Originally Posted by: adrianemapmaker Go to Quoted Post
Just saying that the world builder cant insure what he says. This tool is beta..

BTW some of the under the scripting tag is not available at unnofficial maps.. Like that one that you use.

Question

Now i think of it there is also the invisible extra character bug...
Check This thread for more info.

Cheers

Edited by user Sunday, February 25, 2018 12:29:45 PM(UTC)  | Reason: Secret

Panem et kirkinses
Offline Change.  
#5 Posted : Monday, February 26, 2018 9:11:18 AM(UTC)
Change.
Private
Joined: 2/24/2018(UTC)
Posts: 3

Great, thanks Thumb Up
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.