Skip to content

Conversation

@Tosoks67
Copy link
Contributor

@Tosoks67 Tosoks67 commented Nov 19, 2025

New argument

  • CollectionVariableArgument - expects an existing Collection variable

7 new methods

  • CollectionInsert - inserts a value into a collection if of same type
  • CollectionRemoveAt - removes the value at the given index
  • CollectionRemove - removes the given amount of value matches or every match
  • EmptyCollection - returns an empty collection of the given type
  • JoinCollections - joins the given collections into one
  • SubtractCollections - subtracts collections (removes a value from the first given collection if the value appears in the second or latter collection)
  • SetIntercomText - sets the text on the Intercom Display (in the room in the Entrance Zone)

Method changes

  • Moved AmountOf from the PlayerMethods folder to the PlayerVariableMethods folder
  • Added a textOverride option to IntercomInfo which returns the text set by SetIntercomText

2 fixes

  • Fixed JoinPlayers expecting List<Player> instead of Player[]
  • Fixed and remade the comparing system on all of the value classes leaving just the global Equals method override and the == and != operators (all only in the Value class)

Copy link
Collaborator

@Elektryk-Andrzej Elektryk-Andrzej left a comment

Choose a reason for hiding this comment

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

lgtm

@Elektryk-Andrzej Elektryk-Andrzej merged commit 01a9a84 into ScriptedEvents:main Nov 19, 2025
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