Jump to content

CrateGoodie: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
en>Testid123
mNo edit summary
Line 11: Line 11:
Determines whether the VehicleType is able to be procured as a crate goodie. Also requires {{f|UnitCrateType|none|link}} to be set in the <tt>[CrateRules]</tt> section; though this is true by default.
Determines whether the VehicleType is able to be procured as a crate goodie. Also requires {{f|UnitCrateType|none|link}} to be set in the <tt>[CrateRules]</tt> section; though this is true by default.
==Note==
==Note==
*In Red Alert 2, any VehicleType with {{f|Naval|yes|link}} should have <tt>CrateGoodie=no</tt> set. While the logic works with naval units, maps with no water invariably lead to an [[Internal Error]] when a naval goodie is procured.
*In Red Alert 2, any VehicleType with {{f|Naval|yes|link}} should have {{f|CrateGoodie|no|link}} set. While the logic works with naval units, maps with no water invariably lead to an [[Internal Error]] when a naval goodie is procured.<br>
From the above text, I tried using it in [[YR]] and it gave me weird results, and [[IE]] doesn't happen even when playing on a map without water. The details are as follows:<br>
1.[[VehicleTypes]] with {{f|Naval|yes|link}} will appear near a body of water nearby.<br>
2.If there is no body of water nearby, [[VehicleTypes]] with {{f|Naval|yes|link}} will appear under the bridge instead.<br>
3.Gives credit to the player instead if the box is picked up by a unit in the water instead of [[VehicleTypes]] with {{f|Naval|yes|link}}<br>
<div><ul>
<li style="display: inline-block;">[[File:DEST and CrateGoodie=yes.png|frame|'''DEST''' and {{f|CrateGoodie|yes|link}}]]</li>
</ul></div>

Revision as of 16:01, 15 February 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: CrateGoodie
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no (However the documentation says "yes")
Applicable to: VehicleTypes


Determines whether the VehicleType is able to be procured as a crate goodie. Also requires UnitCrateType=none to be set in the [CrateRules] section; though this is true by default.

Note

  • In Red Alert 2, any VehicleType with Naval=yes should have CrateGoodie=no set. While the logic works with naval units, maps with no water invariably lead to an Internal Error when a naval goodie is procured.

From the above text, I tried using it in YR and it gave me weird results, and IE doesn't happen even when playing on a map without water. The details are as follows:
1.VehicleTypes with Naval=yes will appear near a body of water nearby.
2.If there is no body of water nearby, VehicleTypes with Naval=yes will appear under the bridge instead.
3.Gives credit to the player instead if the box is picked up by a unit in the water instead of VehicleTypes with Naval=yes