PK_Soar 0 Posted June 20, 2018 I've recently picked up work on an old project of mine, a game mode for Zero Hour modeled after Battlefield's conquest, in which you drain your enemies 'tickets' by capturing objectives. Scripting the majority of the mode is done, it works basically as intended. Among other things, some more work needs to be done to balance the Toxin and Infantry faction, by replacing their specialized Toxin Rebel and Minigunner units with their vanilla counterparts (at least for the early game), and also by revealing a small circle around the objectives in the fog of war. For the unit switch: 'Chem_GLAInfantryRebel' becomes Buildable (No) Command button: 'Command_ConstructGLAInfantryRebel' is added to all objects of type 'Chem_GLABarracks' in slot number 1 (1-12). And... 'Infa_ChinaInfantryMiniGunner' becomes Buildable (No) Command button: 'Command_ConstructChinaInfantryRedguard' is added to all objects of type 'Infa_ChinaBarracks' in slot number 1 (1-12). The first part of each script works, as the button for those units are not present, but the more important second part doesn't seem to be doing the job. As for the map reveal: [???]The map is revealed at Waypoint 'Ob1' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob2' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob3' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob4' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob5' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob6' with a radius of 100.00 feet for Player 'player_0'. [???]The map is revealed at Waypoint 'Ob1' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob2' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob3' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob4' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob5' with a radius of 100.00 feet for Player 'player_1'. [???]The map is revealed at Waypoint 'Ob6' with a radius of 100.00 feet for Player 'player_1'. The map is revealed at Waypoint 'Ob1' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob2' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob3' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob4' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob5' with a radius of 100.00 feet for Player '<Local Player>'. The map is revealed at Waypoint 'Ob6' with a radius of 100.00 feet for Player '<Local Player>'. Been at it for a good few hours today, without much luck. Any help is greatly appreciated! Share this post Link to post
SkyMix_RMT 0 Posted July 10, 2018 The command buttons have an invisible character that you have to delete, after clicking on the command button you want from the drop-down list, select the end of the text and press backspace, no characters should be deleted, but if you press ok you will see that world builder will say that the command button doesn't exist, ignore, it's a world builder error, if world builder says the command button exists it wont work in game, it will only work if you delete the invisible character that's at the end of the text of every command buttons. As for the reveals, you need to have permanent reveals if you want the players to be able to always see the area revealed, and the players are named as "playerX" not "player_X" (player0, player1 for example). Share this post Link to post