soloooy0 Posted March 4, 2020 Report Share Posted March 4, 2020 (edited) Estoy editando un mapa, para hacer un disparo, numancia, necesito saber ciertas cosas sobre la creación de mapas ... ¿Cómo podría hacer que el ataque gaia cada x veces, las posiciones iniciales del mapa no sean automáticas en el editor superior? El manual de Atlas está muy desactualizado y no da respuestas a nada de lo que necesito. ¿Cómo pongo unidades en estructuras gaia? Actualmente el mapa no funciona pero es una creación bastante hermosa de @ LankusnavGracias por la ayuda Currently it has too many failures to finish putting things on the map, so it is clean of some parts ..... Edited March 4, 2020 by soloooy0 2 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted March 4, 2020 Report Share Posted March 4, 2020 Quote I'm editing a map, to make a shot, Numancia, I need to know certain things about creating maps ... How could I make the gaia attack every x times, the initial positions of the map are not automatic in the top editor? The Atlas manual is very outdated and doesn't give answers to anything I need. How do I put units in gaia structures? Currently the map doesn't work but it's a rather beautiful creation of 'Lankusnav Thank you for your help. Quote Link to comment Share on other sites More sharing options...
Panther Posted March 5, 2020 Report Share Posted March 5, 2020 (edited) Open your map .xml with a text editor of choice, I recommend Notepad++. Add the following line: Spoiler { "CircularMap": true, "Description": "text", "Keywords": ["trigger"], "Name": "YourMap", "PlayerData": [ {}, {}, {} ], "Preview": "icon.png", "TriggerScripts": [ "scripts/TriggerHelper.js", "skirmishes/YourTrigger.js" ], "VictoryConditions": [ "conquest" ] } Create your trigger script.js based on this code: Spoiler Trigger.prototype.SpawnAndAttack = function() { var intruders = TriggerHelper.SpawnUnitsFromTriggerPoints( pickRandom(["C", "B"]), "units/athen_infantry_marine_archer_e", this.attackSize, 0); // use whatever unit you want here // c and b trigger objects are defined as spawn point for gaia unit for (var origin in intruders) { var playerID = TriggerHelper.GetOwner(+origin); var cmd = null; for (var target of this.GetTriggerPoints("A")) // gaia will walk to trigger object a { if (TriggerHelper.GetOwner(target) != playerID) continue; var cmpPosition = Engine.QueryInterface(target, IID_Position); if (!cmpPosition || !cmpPosition.IsInWorld) continue; // store the x and z coordinates in the command cmd = cmpPosition.GetPosition(); break; } if (!cmd) continue; cmd.type = "attack-walk"; cmd.entities = intruders[origin]; cmd.targetClasses = { "attack": ["Unit", "Structure"] }; // checks for enemy units and structures to attack cmd.allowCapture = false; //if true gaia will try to capture your buildings cmd.queued = true; ProcessCommand(0, cmd); } // enlarge the attack time and size var rand = randFloat(1, 3); this.attackTime *= rand; this.attackSize = Math.round(this.attackSize * rand); this.DoAfterDelay(this.attackTime, "SpawnAndAttack", {}); }; { let cmpTrigger = Engine.QueryInterface(SYSTEM_ENTITY, IID_Trigger); cmpTrigger.attackSize = 1; // attack with 1 soldier cmpTrigger.attackTime = 60 * 1000; // attack every 1 minute cmpTrigger.DoAfterDelay(cmpTrigger.attackTime, "SpawnAndAttack", {}); } Lastly add trigger objects to your map by using Atlas: Spoiler Quote How do I put units in gaia structures? It is not possible to place units in buildings using Atlas. Edited March 5, 2020 by Panther - 3 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 5, 2020 Report Share Posted March 5, 2020 21 minutes ago, Panther said: It is not possible to place units in buildings using Atlas. You can do it using triggers though. @Freagarach is working on adding the possibility for the next alpha. 1 Quote Link to comment Share on other sites More sharing options...
Panther Posted March 5, 2020 Report Share Posted March 5, 2020 1 hour ago, Stan` said: Freagarach is working on adding the possibility for the next alpha. Sounds great! I hope it's done soon. Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 7, 2020 Report Share Posted March 7, 2020 Almost there https://code.wildfiregames.com/D2597 2 Quote Link to comment Share on other sites More sharing options...
soloooy0 Posted March 7, 2020 Author Report Share Posted March 7, 2020 big problem atlas doesn't let me play any game I have to reinstall 0ad or how error reports are sent this happens to me with all the maps, both because they are by default as mine (custom) Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 7, 2020 Report Share Posted March 7, 2020 42 minutes ago, soloooy0 said: big problem atlas doesn't let me play any game I have to reinstall 0ad or how error reports are sent this happens to me with all the maps, both because they are by default as mine (custom) What mods do you use? Quote Link to comment Share on other sites More sharing options...
soloooy0 Posted March 7, 2020 Author Report Share Posted March 7, 2020 f-good mod and auto civ Do mods affect the atlas? Quote Link to comment Share on other sites More sharing options...
Stan` Posted March 7, 2020 Report Share Posted March 7, 2020 They do Now I'm not sure what @ffffffff or @nani did but I guess one could fix it provided with the interestinglog.html file or you could just disable those mods Quote Link to comment Share on other sites More sharing options...
soloooy0 Posted March 7, 2020 Author Report Share Posted March 7, 2020 thanks, now good and bad news, the Iberian wall of beginning, was removed at the beginning of the game, to put it out as I do ?? Quote Link to comment Share on other sites More sharing options...
soloooy0 Posted January 27, 2021 Author Report Share Posted January 27, 2021 I think I have put 8 players with help, but T.T does not work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.