Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ This page lists all the individual contributions to the project by their author.
- Event 606: AttachEffect is attaching to a Techno
- Linked superweapons
- Unit & infantry auto-conversion on ammo change
- New Map Events in the 19000 range that are copies of the original events but with ID entries instead of indexes
- Restore the ScriptType action#24 `Play speech` from Tiberian Sun
- **Starkku**:
- Misc. minor bugfixes & improvements
Expand Down
276 changes: 276 additions & 0 deletions docs/AI-Scripting-and-Mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,282 @@ ID=EventCount,...,606,2,0,[AttachEffectType],...
...
```

#### `19001` Entered By ... by ID

- Similar to map event 1, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19001,2,0,[ID],...
...
```

#### `19003` Thieved By ... by ID

- Similar to map event 3, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19003,2,0,[ID],...
...
```

#### `19005` House Discovered ... by ID

- Similar to map event 5, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19005,2,0,[ID],...
...
```

#### `19009` Destroyed, Units, All ... by ID

- Similar to map event 9, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19009,2,0,[ID],...
...
```

#### `19010` Destroyed, Buildings, All ... by ID

- Similar to map event 10, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19010,2,0,[ID],...
...
```

#### `19011` Destroyed, All ... by ID

- Similar to map event 11, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19011,2,0,[ID],...
...
```

#### `19019` Build building type ... by ID

- Similar to map event 19, but uses a string ID from the `[BuildingTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19019,2,0,[ID],...
...
```

#### `19020` Build unit type ... by ID

- Similar to map event 20, but uses a string ID from the `[VehicleTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19020,2,0,[ID],...
...
```

#### `19021` Build infantry type ... by ID

- Similar to map event 21, but uses a string ID from the `[InfantryTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19021,2,0,[ID],...
...
```

#### `19022` Build aircraft type ... by ID

- Similar to map event 22, but uses a string ID from the `[AircraftTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19022,2,0,[ID],...
...
```

#### `19024` Zone entry by ... by ID

- Similar to map event 24, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19024,2,0,[ID],...
...
```

#### `19025` Crosses horizontal line ... by ID

- Similar to map event 25, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19025,2,0,[ID],...
...
```

#### `19026` Crosses vertical line ... by ID

- Similar to map event 26, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19026,2,0,[ID],...
...
```

#### `19030` Low power ... by ID

- Similar to map event 30, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19030,2,0,[ID],...
...
```

#### `19032` Building exists ... by ID

- Similar to map event 32, but uses a string ID from the `[BuildingTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19032,2,0,[ID],...
...
```

#### `19044` Attacked by (house) ... by ID

- Similar to map event 44, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19044,2,0,[ID],...
...
```

#### `19053` Spy entering as House ... by ID

- Similar to map event 53, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19053,2,0,[ID],...
...
```

#### `19054` Spy entering as Infantry ... by ID

- Similar to map event 54, but uses a string ID from the `[InfantryTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19054,2,0,[ID],...
...
```

#### `19055` Destroyed Units, Naval ... by ID

- Similar to map event 55, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19055,2,0,[ID],...
...
```

#### `19056` Destroyed Units, Land ... by ID

- Similar to map event 56, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19056,2,0,[ID],...
...
```

#### `19057`Building does not exist ... by ID

- Similar to map event 57, but uses a string ID from the `[BuildingTypes]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19057,2,0,[ID],...
...
```

#### `19058` Power Full ... by ID

- Similar to map event 58, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19058,2,0,[ID],...
...
```

#### `19059` Entered or Overflown By ... by ID

- Similar to map event 59, but uses a string ID from the `[Countries]` list instead of an index.

In `mycampaign.map`:
```ini
[Events]
...
ID=EventCount,...,19059,2,0,[ID],...
...
```

## Teams

### Adjust recruitable status on team member liberate
Expand Down
2 changes: 1 addition & 1 deletion docs/Whats-New.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ HideShakeEffects=false ; boolean
:open:

#### New:
- New Map Events in the 19000 range that are copies of the original actions but with ID entries instead of indexes

#### Vanilla fixes:
- Fixed the bug where a building with `Factory=BuildingType` owned by the AI did not play `ProductionAnim` when placing a produced building (by Noble_Fish)
Expand Down Expand Up @@ -563,7 +564,6 @@ HideShakeEffects=false ; boolean
- [CellSpread in cylinder shape](New-or-Enhanced-Logics.md#cellspread-enhancement) (by TaranDahl)
- [CellSpread damage check if victim is in air or on floor](New-or-Enhanced-Logics.md#cellspread-enhancement) (by TaranDahl)
- OpenTopped range bonus and damage multiplier customization for passengers (by Ollerus)
- AutoDeath upon ownership change (by Ollerus)
- [Script Action 14004 for forcing all new actions to target only the main owner's enemy](AI-Scripting-and-Mapping.md#force-global-onlytargethouseenemy-value-in-teams-for-new-attack-move-actions-introduced-by-phobos) (by FS-21)
- [Allow merging AOE damage to buildings into one](New-or-Enhanced-Logics.md#allow-merging-aoe-damage-to-buildings-into-one) (by CrimRecya)
- [Allow customizing whether to synchronously change the owner of the RadioLink-linked units when the owner of a building changes](Fixed-or-Improved-Logics.md#custom-whether-to-synchronously-change-the-owner-of-the-radiolink-linked-units-when-the-owner-of-a-building-changes) (by TaranDahl)
Expand Down
24 changes: 24 additions & 0 deletions src/Ext/TEvent/Body.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,30 @@ enum PhobosTriggerEvent
CellHasAnyTechnoTypeFromList = 605,
AttachedIsUnderAttachedEffect = 606,

EnteredByByID = 19001,
ThievedByByID = 19003,
HouseDiscoveredByID = 19005,
DestroyedUnitsAllByID = 19009,
DestroyedBuildingsAllByID = 19010,
DestroyedAllByID = 19011,
BuildBuildingTypeByID = 19019,
BuildUnitTypeByID = 19020,
BuildInfantryTypeByID = 19021,
BuildAircraftTypeByID = 19022,
ZoneEntryByByID = 19024,
CrossesHorizontalLineByID = 19025,
CrossesVerticalLineByID = 19026,
LowPowerByID = 19030,
BuildingExistsByID = 19032,
AttackedByHouseByID = 19044,
SpyAsHouseByID = 19053,
SpyAsInfantryByID = 19054,
DestroyedUnitsNavalByID = 19055,
DestroyedUnitsLandByID = 19056,
BuildingDoesNotExistByID = 19057,
PowerFullByID = 19058,
EnteredOrOverflownByByID = 19059,

_DummyMaximum,
};

Expand Down
Loading
Loading