Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Expanding Fronts trigger documentation v1.0
- Change Unit Data, Change Property Object and Change Unit Variable effects work by entering the text command string in the message box
- The string format for most attributes is
- [COMMAND] [VARIABLE] [AMOUNT]
- unless a different one is explicitly specified in the detailed documentation below.
- [COMMAND]: Can be either of the following:
- SET (replace the current amount with the specified amount)
- ADD (add the specified amount to the current amount)
- MUL (multiply the current amount by the specified amount)
- [VARIABLE]: Attribute to change. See documentation below.
- [AMOUNT]: Amount. Interpretation depends on command and variable.
- Difference between Change Unit Data and Change Property Object effects:
- Change Unit Data works like the stock stat changing effects (change attack and HP)
- Change Property Object lets you change stats of all units of the selected type, similar to how upgrades work in the game
- The following attributes can be changed via Change Unit Data and Change Property Object effects:
- Class 2 bytes Unit class. Do not change unless you know what you're doing
- DeathMode 1 byte 0 - transform into dead unit, 1 - show undead graphics
- HitPoints 2 bytes Maximum HP
- LineOfSight float Line of sight (maximum effective value is 20, can break the fog, use with extreme caution)
- GarrisonCapacity 1 byte Unit garrison capacity
- CollisionSizeX float Collision area width (x)
- CollisionSizeY float Collision area width (y)
- CollisionSizeZ float Collision area height
- DeadUnitID 2 bytes ID of a unit to create when the unit dies
- PlacementMode 1 byte ???
- AirMode 1 byte ???
- IconID 2 bytes # of frame in the icon SLP, starting with zero
- HideInEditor 2 bytes basically useless
- ClearanceSizeX float see AGE tooltips
- ClearanceSizeY float see AGE tooltips
- HillMode 1 byte see AGE tooltips
- FogVisibility 1 byte see AGE tooltips
- TerrainRestriction 2 bytes see AGE tooltips
- FlyMode 1 byte see AGE tooltips
- ResourceStorageType1 2 bytes First resource to store (-1 = none)
- ResourceStorageType2 2 bytes Second resource to store (-1 = none)
- ResourceStorageType3 2 bytes Third resource to store (-1 = none)
- Resource1Storage float First resource amount
- Resource2Storage float Second resource amount
- Resource3Storage float Third resource amount
- ResourceCapacity 2 bytes Resource Capacity
- ResourceDecay float Resource decay
- BlastDefenseLevel 1 byte Blast armor. See AGE tooltips for more info
- Unknown2InteractionModeMinimapMode 1 byte see AGE tooltips
- InteractionMode 1 byte see AGE tooltips
- MinimapMode 1 byte see AGE tooltips
- Command ID 1 byte Command interface type. See AGE tooltips for more info
- SelectionMask 1 byte see AGE tooltips
- SelectionShapeType 1 byte see AGE tooltips
- SelectionShape 1 byte see AGE tooltips
- UnitAttribute 1 byte Unit attribute bitfield. Do not use. Use "Give/Remove Ability" effect instead
- Civilization 1 byte Civilization
- AttributeLeftover 2 bytes completely useless
- Unselectable 1 bytes Supposedly makes the unit unselectable
- SelectionShapeSizeX float not sure
- SelectionShapeSizeY float not sure
- SelectionShapeSizeZ float not sure
- Speed float Unit Speed
- RotationSpeed float The higher the value the slower the unit rotates
- TrackingUnit 2 bytes Tracking unit ID. May not work for units that aren't projectiles
- TrackingUnitUsed 1 byte 1 - used, 0 - not used
- TrackingUnitDensity float see name
- RotationsInRadians1 float see AGE tooltips
- RotationsInRadians2 float see AGE tooltips
- RotationsInRadians3 float see AGE tooltips
- RotationsInRadians4 float see AGE tooltips
- RotationsInRadians5 float see AGE tooltips
- ActionWhenDiscovered 2 bytes see AGE tooltips
- SearchRadius float Unit search radius
- WorkRate1 float I'm not sure if these two work correctly. Find out yourself
- WorkRate2 float ^
- DropSite2 2 bytes this one is bugged. It changes drop site 1 instead. You cannot change drop site 2 as of now
- DefaultArmor 2 bytes see AGE tooltips
- Range float Maximum range
- BlastRadius float Area of effect radius
- BlastLevel 1 byte Blast attack level
- ReloadTime1 float Weapon reload time
- ProjectileUnitID 2 bytes Projectile unit ID
- Accuracy 2 bytes Accuracy (%)
- TowerMode 1 byte ???
- FrameDelay 2 bytes Delay in frames before projectile is shot
- ProjectileGraphicDisplacementX float width (x)
- ProjectileGraphicDisplacementY float width (y)
- ProjectileGraphicDisplacementZ float height
- MinRange float Minimum range
- DisplayedMeleeArmor 2 bytes Displayed base melee armor
- DisplayedAttack 2 bytes Displayed base attack
- DisplayedRange 2 bytes Displayed base range
- ReloadTime2 float apparently useless
- AccuracyErrorRadius float How badly the projectile misses the target if it does
- Cost1Type 2 bytes First resource type
- Cost1Amount 2 bytes First resource amount
- Cost1IsPaid 2 bytes 0 - required but not paid, 1 - required and paid
- Cost2Type 2 bytes Second resource type
- Cost2Amount 2 bytes Second resource amount
- Cost2IsPaid 2 bytes 0 - required but not paid, 1 - required and paid
- Cost3Type 2 bytes Third resource type
- Cost3Amount 2 bytes Third resource amount
- Cost3IsPaid 2 bytes 0 - required but not paid, 1 - required and paid
- TrainTime 2 bytes Train/build time
- TrainLocation 2 bytes Train location unit ID (might not work)
- TrainButton 1 byte see AGE tooltips
- DisplayedPierceArmor 2 bytes Displayed base pierce armor
- MinDuplMissiles float Number of projectiles shot when no units are garrisoned inside
- MaxDuplMissiles 1 byte Maximum number of projectiles
- MissileSpawningAreaWidth float see name
- MissileSpawningAreaLength float see name
- MissileSpawningRandomness float see name
- MissileDuplUnit 2 bytes Projectile to use for duplicate missiles, -1 = use normal one
- HeroMode 1 bytes 1 - an hero, 0 - not an hero
- Attack 2 bytes Changes the specified attack class value. Has no effect if the unit has no attack of the specified class
- Format: [COMMAND] [VARIABLE] [CLASS] [AMOUNT]
- See AGE armor lists for documentation
- Armor 2 bytes Changes the specified armor class value. Has no effect if the unit has no armor of the specified class
- Format: [COMMAND] [VARIABLE] [CLASS] [AMOUNT]
- See AGE armor lists for documentation
- The following attributes can be changed via Change Unit Variable effect
- HP Changes unit HP without restriction
- HPPercent Changes unit HP by % of max HP
- SP Changes unit SP
- SPPercent Changes unit SP by % of max SP (=max HP)
- ReloadCooldown Changes unit weapon's (current) reload cooldown
- ReloadCooldownPercent Same as above, except % of reload time is used
- HPRegen Edit HP regeneration. Always sets
- Format: [COMMAND] [VARIABLE] [AMOUNT] [TIME]
- HPRegenPercent Edit HP regeneration, in %. Always sets
- Format: [COMMAND] [VARIABLE] [AMOUNT] [TIME]
- EXAMPLES:
- Change Unit Data or Change Property Object:
- SET IconID 10 Set icon to frame #10
- MUL Speed 0.5 Reduce movement speed by half
- ADD Range 1 Increase range by 1
- ADD MinRange -1 Decrease minimum range by 1
- ADD Attack 21 5 Add 5 attack bonus vs buildings (class 21)
- SET Armor 4 0 Set melee (class 4) armor to 0
- Change Unit Variable:
- ADD SP 50 Immediately charge unit shield points by 50
- SET ReloadCooldown 10 Unit will not be able to fire a projectile for 10 seconds
- SET SPPercent 1000 Set unit shield points to 10 times max hp
- SET HPRegen 10 120 Enable HP regeneration for 120 seconds at 10 hp/min
- SET HPRegenPercent 10 60 Regenerate HP by 10% per minute for 60 seconds
Add Comment
Please, Sign In to add comment