Effect Type
Written by: Alian713, Kramb
1. cSetAttribute¶
Value: int 0
This is the ID of the Set Attribute effect of the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets the HP of unit 74 (militia) to 100 (the value). Alternatively, any of the Unit Attribute Constants may be used to modify the corresponding unit property
2. cModResource¶
Value: int 1
This is the ID of the Modify Resource effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This adds 100 to the current food amount. Alternatively, cAttributeSet may be used to set the food amount to 100. Also, see the Resource
3. cEnableObject¶
Value: int 2
This is the ID of the Enable (or disable) Object effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This disables the unit 74 (militia). Alternatively, cAttributeEnable may be used to enable an object instead
4. cUpgradeUnit¶
Value: int 3
This is the ID of the Upgrade Unit effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This copies all units attributes except ID and available from unit 75 (man at arms) to 74 (militia)
5. cAddAttribute¶
Value: int 4
This is the ID of the Add Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This adds 100 (the value) to the attribute 0 (HP) of unit 74 (militia)
6. cMulAttribute¶
Value: int 5
This is the ID of the Multiply Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This multiplies the attribute 0 (HP) of unit 74 (militia) by 100 (the value)
7. cMulResource¶
Value: int 6
This is the ID of the Multiply Resource effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This multiplies the food amount by 10 (the value)
8. cSpawnUnit¶
Value: int 7
This is the ID of the Spawn Unit effect for the xsEffectAmount function
Syntax:
1 2 | |
Example:
1 2 | |
This will spawn 5 villagers (83) from each town centre (109), for a maximum of 2 town centres. Note that setting the cAttributeCap resource to a non 0 value is required for using this effect. If you prefer spawning the units garrisoned set resource cAttributeSpawnStayInside to 1.
9. cModifyTech¶
Value: int 8
This is the ID of the Modify Technology effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets the research time of tech 22 (loom) to 10s (the value). Alternatively, any of the Tech Attribute Constants may be used to modify the corresponding tech property
10. cSetPlayerData¶
Value: int 9
This is the ID of the Set Player Data effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets the player data 0 (Civilization Name ID) to 10230 (the value)
11. cSetUnitAttribute¶
Value: int 10
This is the ID of the Set Unit Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets unit 0's HP to 40. This is the same as modify object attribute in the editor
12. cAddUnitAttribute¶
Value: int 11
This is the ID of the Add Unit Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This adds 40 to unit 0's HP. This is the same as modify object attribute in the editor
13. cMulUnitAttribute¶
Value: int 12
This is the ID of the Multiply Unit Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This multiplies unit 0's HP by 40. This is the same as modify object attribute in the editor
14. cSetTechCost¶
Value: int 100
This is the ID of the Set Technology Cost effect for the xsEffectAmount function. No Longer works, use cModifyTech instead
Syntax:
1 | |
Example:
1 | |
This sets the food cost of tech 22 (loom) to 10 (the value)
15. cAddTechCost¶
Value: int 101
This is the ID of the Add Technology Cost effect for the xsEffectAmount function. No Longer works, use cModifyTech instead
Syntax:
1 | |
Example:
1 | |
This adds 10 (the) to the current food cost of tech 22 (loom)
16. cDisableTech¶
Value: int 102
This is the ID of the Disable Tech effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This disables the tech 22 (loom)
17. cModTechTime¶
Value: int 103
This is the ID of the Modify Technology Time effect for the xsEffectAmount function. No Longer works, use cModifyTech instead
Syntax:
1 | |
Example:
1 | |
This sets the research time of tech 22 (loom) to 10s (the value). Alternatively, cAttributeAdd may be used to add to the current research time of the technology
18. cGaiaSetAttribute¶
Value: int -1
This is the ID of the Gaia Set Attribute effect of the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets the attribute 0 (HP) of unit 74 (militia) to 100 (the value)
19. cGaiaModResource¶
Value: int -2
This is the ID of the Gaia Modify Resource effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This adds 100 to the current food amount. Alternatively, cAttributeSet may be used to set the food amount to 100
20. cGaiaEnableObject¶
Value: int -3
This is the ID of the Gaia Enable (or disable) Object effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This disables the unit 74 (militia). Alternatively, cAttributeEnable may be used to enable an object instead
21. cGaiaUpgradeUnit¶
Value: int -4
This is the ID of the Gaia Upgrade Unit effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This replaces all units 74 (militia) with 75 (man at arms) on the map and also disables unit 74 and enables unit 75
22. cGaiaAddAttribute¶
Value: int -5
This is the ID of the Gaia Add Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This adds 100 (the value) to the attribute 0 (HP) of unit 74 (militia)
23. cGaiaMulAttribute¶
Value: int -6
This is the ID of the Gaia Multiply Attribute effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This multiplies the attribute 0 (HP) of unit 74 (militia) by 100 (the value)
24. cGaiaMulResource¶
Value: int -7
This is the ID of the Gaia Multiply Resource effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This multiplies the food amount by 10 (the value)
25. cGaiaSpawnUnit¶
Value: int -8
This is the ID of the Gaia Spawn Unit effect for the xsEffectAmount function
Syntax:
1 2 | |
Example:
1 2 | |
This will spawn 5 villagers (83) from each town centre (109), for a maximum of 2 town centres. Note that setting the cAttributeCap resource to a non 0 value is required for using this effect. If you prefer spawning the units garrisoned set resource cAttributeSpawnStayInside to 1.
26. cGaiaModifyTech¶
Value: int -9
This is the ID of the Gaia Modify Technology effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets the research time of tech 22 (loom) to 10s (the value). Alternatively, any of the Tech Attribute Constants may be used to modify the corresponding tech property
27. cGaiaSetPlayerData¶
Value: int -10
This is the ID of the Gaia Set Player Data effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This sets the player data 0 (Civilization Name ID) to 10230 (the value)
28. cGaiaSetTechCost¶
Value: int -101
This is the ID of the Gaia Set Technology Cost effect for the xsEffectAmount function. No Longer works, use cModifyTech instead
Syntax:
1 | |
Example:
1 | |
This sets the food cost of tech 22 (loom) to 10 (the value)
29. cGaiaAddTechCost¶
Value: int -102
This is the ID of the Gaia Add Technology Cost effect for the xsEffectAmount function. No Longer works, use cModifyTech instead
Syntax:
1 | |
Example:
1 | |
This adds 10 (the) to the current food cost of tech 22 (loom)
30. cGaiaDisableTech¶
Value: int -103
This is the ID of the Gaia Disable Tech effect for the xsEffectAmount function
Syntax:
1 | |
Example:
1 | |
This disables the tech 22 (loom)
31. cGaiaModTechTime¶
Value: int -104
This is the ID of the Gaia Modify Technology Time effect for the xsEffectAmount function. No Longer works, use cModifyTech instead
Syntax:
1 | |
Example:
1 | |
This sets the research time of tech 22 (loom) to 10s (the value). Alternatively, cAttributeAdd may be used to add to the current research time of the technology