-
-
Notifications
You must be signed in to change notification settings - Fork 121
New 190xx Map actions that are masks of existing actions that used indexes as arguments #1932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
New map actions that are in reality masks of existing map actions but instead of using indexes they use ID names (internally the right index is found and passed to the original action)
|
For fast testing, if you use WAE you can add these entries in Actions.ini file: [WinnerIsByID] [LoserIsByID] [ProductionBeginsByID] [AllToHuntByID] [FireSaleByID] [AutocreateBeginsByID] [ChangeHouseByID] [PlayMusicThemeByID] [Add1TimeSpecialWeaponByID] [AddRepeatingSpecialWeaponByID] [AllChangeHouseByID] [MakeAllyByID] [MakeEnemyByID] [PlayAnimAtByID] [DoExplosionAtByID] [CreateVoxelAnimAtByID] [AITriggersBeginByID] [AITriggersStopByID] [ParticleSystemAnimAtByID] [MakeHouseCheerByID] [DestroyAllOfByID] [DestroyAllBuildingsOfByID] [DestroyALlLandUnitsOfByID] [DestroyALlNavalUnitsOfByID] [MindControlBaseOfByID] [RestoreMindControlledBaseToByID] [RestoreStartingTechnosOfByID] [RestoreStartingBuildingsOfByID] |
|
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. |
Like in PR#1901 and PR#1925 related to ScriptType actions and Map events I created new actions that are in reality masks of the original map actions that used the index as parameter but here we'll use the ID so if we'll modify the main lists in rulesmd.ini these indexes won't be necessary to be recalculated again.
Internally this just finds the index of the specified ID and then the action number is replaced with the original and the index is passed as parameter...
I used as reference the list here:
https://modenc.renegadeprojects.com/Actions_(maps)/RA2YR
19001Winner Is... by ID[Countries]list instead of an index.In
mycampaign.map:19002Loser Is... by ID[Countries]list instead of an index.In
mycampaign.map:19003Production Begins... by ID[Countries]list instead of an index.In
mycampaign.map:19006All to Hunt... by ID[Countries]list instead of an index.In
mycampaign.map:19009Fire Sale... by ID[Countries]list instead of an index.In
mycampaign.map:19013Autocreate Begins... by ID[Countries]list instead of an index.In
mycampaign.map:19014Change House... by ID[Countries]list instead of an index.In
mycampaign.map:19020Play Music Theme... by ID[Themes]list instead of an index.In
mycampaign.map:19033Add One-Time Special Weapon... by ID[SuperWeaponTypes]list instead of an index.In
mycampaign.map:19034Add Repeating Special Weapon... by ID[SuperWeaponTypes]list instead of an index.In
mycampaign.map:19036All Change House... by ID[Countries]list instead of an index.In
mycampaign.map:19037Make Ally... by ID[Countries]list instead of an index.In
mycampaign.map:19038Make Enemy... by ID[Countries]list instead of an index.In
mycampaign.map:19041Play Anim at... by ID[Animations]list instead of an index.In
mycampaign.map:19042Do Explosion at... by ID[Weapons]list instead of an index.In
mycampaign.map:19043Create VoxelAnim at... by ID[VoxelAnims]list instead of an index.In
mycampaign.map:19074AI Triggers Begin... by ID[Countries]list instead of an index.In
mycampaign.map:19075AI Triggers Stop... by ID[Countries]list instead of an index.In
mycampaign.map:19088ParticleSystem Anim at... by ID[ParticleSystems]list instead of an index.In
mycampaign.map:19113Make House Cheer... by ID[Countries]list instead of an index.In
mycampaign.map:19119Destroy All of... by ID[Countries]list instead of an index.In
mycampaign.map:19120Destroy All Buildings of... by ID[Countries]list instead of an index.In
mycampaign.map:19121Destroy All Land Units of... by ID[Countries]list instead of an index.In
mycampaign.map:19122Destroy All Naval Units of... by ID[Countries]list instead of an index.In
mycampaign.map:19123Mind Control Base of... by ID[Countries]list instead of an index.In
mycampaign.map:19124Restore Mind Controlled Base to... by ID[Countries]list instead of an index.In
mycampaign.map:19126Restore Starting Technos of... by ID[Countries]list instead of an index.In
mycampaign.map:19130Restore Starting Buildings of... by ID[Countries]list instead of an index.In
mycampaign.map: