Skip to content

Create Random Trigger Sets generator#242

Merged
Rampastring merged 7 commits into
CnCNet:masterfrom
JoyfulShush:add-random-based-triggers
Jun 7, 2025
Merged

Create Random Trigger Sets generator#242
Rampastring merged 7 commits into
CnCNet:masterfrom
JoyfulShush:add-random-based-triggers

Conversation

@JoyfulShush

Copy link
Copy Markdown
Contributor

Adds a new options to the Advanced dropdown. Upon selection, a new window opens that allows the map maker define triggers that would be randomly chosen and activated in each run. This allows map makers to quickly set up complex random-based triggers, even across multiple difficulty levels.

For example, if a map maker would want to spawn reinforcements, but have it randomly go north, south, or east - this generator will help you set it up for the triggers, which is usually a tedious process.

@Rampastring Rampastring left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feature itself looks good, code needs a bit more work.

Comment thread src/TSMapEditor/UI/Windows/AddRandomBasedTriggerWindow.cs Outdated
Comment thread src/TSMapEditor/UI/Windows/AddRandomBasedTriggerWindow.cs Outdated
Comment thread src/TSMapEditor/Config/Default/UI/Windows/AddRandomBasedTriggerWindow.ini Outdated
Comment thread src/TSMapEditor/Config/Default/UI/Windows/AddRandomBasedTriggerWindow.ini Outdated
Comment thread src/TSMapEditor/UI/Windows/AddRandomBasedTriggerWindow.cs Outdated
Comment thread src/TSMapEditor/UI/Windows/WindowController.cs Outdated
Comment thread src/TSMapEditor/UI/Windows/AddRandomBasedTriggerWindow.cs Outdated
Comment thread src/TSMapEditor/UI/Windows/AddRandomBasedTriggerWindow.cs Outdated
Comment thread src/TSMapEditor/Config/Default/UI/Windows/AddRandomBasedTriggerWindow.ini Outdated
Comment thread src/TSMapEditor/Config/Default/UI/Windows/AddRandomBasedTriggerWindow.ini Outdated
@JoyfulShush JoyfulShush changed the title Add Random Based Triggers generator Create Random Trigger Sets generator Jun 7, 2025

@Rampastring Rampastring left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more stylistical nitpick

Comment thread src/TSMapEditor/UI/Windows/TriggersWindow.cs Outdated
@Rampastring Rampastring merged commit 37726c0 into CnCNet:master Jun 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants