Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
294 stars 89 forks source link

Map action 507 for printing a message with the remaining map objects #1266

Open FS-21 opened 4 months ago

FS-21 commented 4 months ago

In mycampaign.map:

[Actions]
...
ID=ActionCount,[Action1],507,4,[CSFKey],[HouseIndex],[AIHousesListsIndex],[AITargetTypesIndex],[MesageDelay],A,[ActionX]
...

--- Example 1 --- 507,4,0,5,0,-39,30,A

If tehre are 7 SAM turrets of that house with index "5" then the result would look like "Remaining: 7".

--- Example 2 --- 507,4,0,5,0,39,0,A

If there are 7 SAM turrets & 2 Laser defenses of that house with index "5" then the result would look like: "Remaining: SAM Turret: 7 Laser Turret: 2"

github-actions[bot] commented 4 months ago

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.