~~NOTOC~~ {{page>navigation}} {{ mapeditor_guide_tab6.png|Sixth tab of the editor}} {{mapeditor_tab6.png}} Units ===== Inventory ===== The small row of buttons [A] [B] [C] at the top lets you fill the inventory with a preset number of ships. This will reset the inventory if you have already put things there, and you cannot quickly undo. The red button will clear all units assigned to the inventory. ===== Units ===== This tab allows you to place units in the level, or add/remove them from the player's inventory. The green/red buttons below each unit will add/remove 1 of that unit from the inventory. The blue button will grab the unit and allow you to place it directly in the level. ===== Changing Unit Properties ===== In addition to placing units, you can also alter their properties, e.g. how much creeper should emitters spawn, how many phantoms should a phantom emitter produce etc. In order to do this, click on the unit you want to alter to select it. When selected, a new UI panel will appear:\\ {{ mapedit_guide_unit.png }} To alter how much creeper this Fixed Emitter will produce, you have to click on the appropriate //Controller// that controls this behavior. In our case, out of the two available, the most obvious option is the "CEMITTER", so let's click that. \\ {{ mapedit_guide_unit_controller.png }} From here, we have two options. * Production Interval affects how often this emitter will emit. 5 means every 5 game frames, or every 1/6th of a second. * Production Amt affects how much creeper to emit. Some units are comprised of child parts. Units can have multiple parts that each have their own controllers. This is the UI of a regular Emitter:\\ {{ mapedit_guide_childpart.png }} This unit has two elements on it, a controller, and a single child part. Based on their names it looks that the emitter settings are inside the child part, so let's click that. Inside of this child part is a single controller called Emitter. If we click that, we get to this emitter's settings: * Maker Production Interval - How often this emitter deploys creeper maker particles. Particles deploy creeper maker sand on contact with other sand. 15 means twice a second. * Maker Particle Emit Count - How many creeper maker particles to deploy at once. To change how much creeper is produced by creeper maker sand, you can do that through the [[ixe:mapmaking:editor:controls|Controls]] section in the editor (third tab). ===== List of Unit Properties ===== This section contains a list of units from the Units tab in the editor, how to get to their properties and what they mean. Most units have properties that can be changed, this section will only include the ones deemed particularly relevant. Note that intervals are in most cases provided in "frames". There are 30 frames in a second. An interval of 15 means twice per second. ==== AC Ore Emitter ==== Click the unit, then click "ACOREMAKER" Controller. * MakerProductionInterval - Interval between emissions of ACOre sparticles. * MakerParticleEmitCount - Amount of sparticles to produce. ==== Beast ==== Alt+Click the unit, then click "BEAST.IRPL" Script. * SandToFollow - The sand ID that the beast will move inside. The beast must be on top of this sand, and have this sand adjacent, in order to move around. * Speed - The speed of this unit's movement. * EmitAmt - Amount of creeper to emit. * EmitInterval - Emission interval. * EmitGlobalCap - If total creeper on the map exceeds this number times 1000, this unit will stop emitting. 1000 means 1 million creeper must be reached. To see total creeper on the map, you can open the creeper chart inside a mission using the Graph button in the top-right game interface. ==== Fixed Emitter ==== Click the unit, then click "CEmitter" Controller. * ProductionInterval - Emission interval. * ProductionAmt - Creeper to emit. ==== Emitter ==== Click the unit, then click "WEAPON_EMITTER.JSON" Child Part, then click Emitter Controller. * MakerProductionInterval - Interval between emissions of ACOre sparticles. * MakerParticleEmitCount - Amount of sparticles to produce. ==== Spawner ==== Click the unit, then click "BOTSPAWNER" Controller. * ProductionInterval - The interval between subsequent bot spawns. * InitialDelay - Time until the first bot being spawned. * BotHealth - The health of spawned bots. * BotSpeed - The speed of spawned bots. * BotMaxCount - The maximum number of bots that this specific spawner can have in the level at once. As bots are killed, new will be spawned. ==== Phantom Emitter ==== Click the unit, then click "PHANTOMEMITTER" Controller. * Creeper - The amount of creeper to spawn on impact by a phantom. * ProductionInterval - The interval between subsequent phantom waves. * InitialDelay - Time until the first phantom wave. * Count - The amount of phantoms per wave. ==== Hibernation Pod / Info Cache / Tech Module / Upgrade Gem ==== These units utilize several controllers that are useful for different tasks. === Conversation Spawner === Click the "CONVERSATIONSPAWNER" Controller. The single property Conversation controls which conversation to display upon this unit's destruction (a collection leads to the unit's destruction). The name you insert here must match the name of a conversation in the level. To create a new conversation, consult the [[ixe:mapmaking:editor:info|Info]] editor tab (5th tab). === Send Message === Click the "SENDMESSAGE" Controller. This will broadcast an IRPL message when this unit is destroyed/collected. Sending a message is used in IRPL to run some code when a message is intercepted. "Channel" is the message channel the message will be broadcast to. "Message" is the data that will be passed to the callback. === Pickup === Click the "PICKUP" Controller. This will add a unit to the player's inventory upon destruction/collection. * Plan - The folder path to the unit being granted. * Amt - The amount to add. * Rowhint - information needed