CnCNet / WorldAlteringEditor

Map editor for C&C: Red Alert 2, C&C: Tiberian Sun and Dawn of the Tiberium Age.
Other
76 stars 25 forks source link

Add cloning AI Triggers for Easier Difficulties #195

Closed Shushishtok closed 1 month ago

Shushishtok commented 1 month ago

This PR is a QoL for handling AI Triggers, which can be cumbersome when handling multiple (usually 3) difficulty levels, as they require manually creating TaskForces, TeamTypes and AI Triggers for each difficulty. This aims to assist by introducing a script that can be selected to automate this process, cloning a single AI Trigger for Hard difficulty to three identical AI Triggers, each with their own duplicated TeamTypes and TaskForces.

This draws inspiration from the same script in Triggers, adjusted to work with AI Triggers instead.

Additionally, introduces some helpers to refer to difficulty levels without having to manually write or declare them.