106 — Give Credits...
Added in 0.2.0
Adds the given number of credits to a house, or takes that many away when the number is negative.
Editor data
- Numeric ID
106- Engine ID
TACTION_GIVE_CREDITS- Editor name
- Give Credits...
- Need token
NEED_HOUSE_AND_CREDITS- Parameters
- House
house - Credits
integer
- House
- Attachment
- none
INI example
[Actions]
<TriggerID>=1,106,0,<House>,<Credits>,0,0,0,The house is written as a number. Spawn houses lists the numbers that name a start position in place of a country.
The amount goes in the first of the four fields after the house:
[Actions]Bonus=1,106,0,0,5000,0,0,0, ; the house at index 0 gains 5000 creditsFine=1,106,0,0,-2000,0,0,0, ; and loses 2000Valid values
- A house by number, either a country or a spawn house, and a whole number of credits.
Caveats
- A house nobody plays, or a spawn house nobody holds, leaves the action doing nothing.
- When several houses play the named country, only one of them is affected. Name a spawn house to choose a particular player.
- A negative amount is charged like a purchase. The house's credits are spent first, down to zero. The Tiberium stored in its silos and refineries then pays the rest at its credit value. Any shortfall after that is dropped.
- Keep the amount between
-2147483647and2147483647. A gain that would take the house's credits above2147483647is refused.
History
- Added0.2.0In development