Releases: ScriptedEvents/ScriptedEventsReloaded
Version 0.14.1 - Experimental 3
Fixes
- Fixed incorrect tracking of running scripts resulting in "ghost scripts"
- Fixed
OnEventflag not erroring when provided with an incorrect event name
Improvements
- Better error message formatting for invalid tokens
- Custom error for when an invalid method is used inside
{}brackets
Removed
ToFlagsmethod
Enum flag rework
(not to be confused with script flags)
Instead of using ToFlags to include multiple enum values, you can now use the | (pipe) operator like so:
SetPrimitiveObjectProperties *toy _ _ Collidable|Visible
Changes from version 0.14.1 - experimental 2
Fixes
- Fixed error when trying to get a friendly name of a value
- Fixed error when some events tried to create invalid variables
- Fixed TPRoom method erroring when not providing optional arguments
Added
FriendlyFiremethod
Changes from version 0.14.1 - experimental 1
Fixes
damageoption ofDamageInfomethod returning text instead of a number- Description in text arguments saying that text can be provided without quotes when not
Chancemethod having inverted chance of returningtruestopkeyword crashing the server if used in specific circumstancesRespawnWaveInfonot being compatible with all wave references (@Tosoks67)- EXILED being required for SER to load (@Tosoks67)
- Some enums not being searchable using
serhelpcommand - Obsolete enum values wont be listed as available to use
Additions
- Default value of
RemoteAdminforlock reasonargument inLockElevatormethod - More example scripts
attemptandon_errorstatements (@Tosoks67)-- invalidRankMessageargument forCustomCommandflagOverlappingmethod
Improvements
- Checking if script is attempting to use a yielding method inside
{}brackets - Better checking of inputs in enum arguments
- Printing of
StaticTextValueandDynamicTextValuetypes in method help - If script has multiple errors, all of them will be provided in a list, instead of only the first one
- Added hint to use
serhelp <enum name>in enum argument
Version 0.14.1 - Experimental 2
Fixes
- Fixed error when trying to get a friendly name of a value
- Fixed error when some events tried to create invalid variables
- Fixed TPRoom method erroring when not providing optional arguments
Added
FriendlyFiremethod
Changes from version 0.14.1 - experimental 1
Fixes
damageoption ofDamageInfomethod returning text instead of a number- Description in text arguments saying that text can be provided without quotes when not
Chancemethod having inverted chance of returningtruestopkeyword crashing the server if used in specific circumstancesRespawnWaveInfonot being compatible with all wave references (@Tosoks67)- EXILED being required for SER to load (@Tosoks67)
- Some enums not being searchable using
serhelpcommand - Obsolete enum values wont be listed as available to use
Additions
- Default value of
RemoteAdminforlock reasonargument inLockElevatormethod - More example scripts
attemptandon_errorstatements (@Tosoks67)-- invalidRankMessageargument forCustomCommandflagOverlappingmethod
Improvements
- Checking if script is attempting to use a yielding method inside
{}brackets - Better checking of inputs in enum arguments
- Printing of
StaticTextValueandDynamicTextValuetypes in method help - If script has multiple errors, all of them will be provided in a list, instead of only the first one
- Added hint to use
serhelp <enum name>in enum argument
Version 0.14.1 - Experimental
Fixes
damageoption ofDamageInfomethod returning text instead of a number- Description in text arguments saying that text can be provided without quotes when not
Chancemethod having inverted chance of returningtruestopkeyword crashing the server if used in specific circumstancesRespawnWaveInfonot being compatible with all wave references (@Tosoks67)- EXILED being required for SER to load (@Tosoks67)
- Some enums not being searchable using
serhelpcommand - Obsolete enum values wont be listed as available to use
Additions
- Default value of
RemoteAdminforlock reasonargument inLockElevatormethod - More example scripts
attemptandon_errorstatements (@Tosoks67)-- invalidRankMessageargument forCustomCommandflagOverlappingmethod
Improvements
- Checking if script is attempting to use a yielding method inside
{}brackets - Better checking of inputs in enum arguments
- Printing of
StaticTextValueandDynamicTextValuetypes in method help - If script has multiple errors, all of them will be provided in a list, instead of only the first one
- Added hint to use
serhelp <enum name>in enum argument
Version 0.14
UCR and Voting via plugin integrations
These are methods that are loaded when other plugins are detected, adding more features!
Callvote plugin methods
StartVoteStartVoteAndWaitVoteOption
Uncomplicated Custom Roles plugin methods
GetUCRRoleSetUCRRoleUCRRoleInfoGetPlayersWithUCRRole
Admin Toy methods
Used for handling admin toys, like spawning, modifying, teleporting etc.
CreateToy(@Tosoks67)DestroyToy(@Tosoks67)MoveToy(@Tosoks67)SetToyParent(@Tosoks67)SetToyRotationSetToyScaleTPToyPlayer(@Tosoks67)TPToyPos(@Tosoks67)TPToyRoom(@Tosoks67)ToyInfo(@Tosoks67)SetCameraProperties(@Tosoks67)SetLightSourceProperties(@Tosoks67)SetPrimitiveObjectProperties(@Tosoks67)SetShootingTargetProperties(@Tosoks67)SetTextProperties(@Tosoks67)InteractableToyEventflag (@Tosoks67)
Better global variables
- Added verifications for name collisions with other variables.
- Replaced
GlobalVariablemethod withglobalkeyword. (@Tosoks67)
# This will create a global variable
global $myGlobalVar = "hello!"
foreach -> over keyword change
Changed the name of the foreach loop to over loop for better readability.
No functionality was changed.
# This is how it looks
over @all
Print "found player!"
end
over @all
with @plr
Print "found player {@plr name}!"
end
Stricter checks for running scripts
When a script uses !-- OnEvent or !-- CustomCommand, running it by any other mean will not be possible.
Other additions:
- more example scripts
ToFlagsmethodIsLiteralmethodSetAppearancemethod (EXILEDmust be installed)PlayWaveEffectmethodGetVariableByNamemethod- fixed minor bugs
New contributor: @Unbistrackted
Fixed plugin bridge error.
Version 0.13.1
Added 2 new arguments for CustomCommand flag:
cooldown- players will have to wait until the cooldown finishes before running the command againneededRank- only players with the provided rank(s) can run the command
Example:
!-- CustomCommand vipbroadcast
-- arguments text
-- availableFor player
-- neededRank vip
-- cooldown 2m
# sends a simple broadcast to everyone - VIP benefit
Broadcast * 10s "* VIP BROADCAST *<br>[{@sender name}]<br>{$text}"
Other changes:
- Fixed the example script for discord webhook having an active webhook URL
Version 0.13.0
Version 0.13.0 adds Discord methods, HTTP methods, and a lot more!
Check out the new example script discordServerInfo to see how you can use the new Discord integration!
Added:
Discord methods:
- SendDiscordMessage
- EditDiscordMessage (@Tosoks67)
- SendDiscordMessageAndWait
- DeleteDiscordMessage (@Tosoks67)
- DiscordMessage
- DiscordEmbed
- EmbedAuthor
- EmbedField
- EnbedFooter
HTTP methods:
- HTTPGet
- HTTPPost
- HTTPPatch (@Tosoks67)
- CreateJSON
- AppendJSON
- FormatToReadableJSON
- JSONInfo
- ParseJSON
Text methods:
- TextLength
- SubText
- TrimText
- PadText (@Tosoks67)
Other:
- Get096Targets method (@Tosoks67)
- ServerInfo method (@Tosoks67)
- ReplaceTextInVariable method (@Tosoks67)
- HexToInt method (@Tosoks67)
- IntToHex method (@Tosoks67)
- isDummy player property (@Tosoks67)
- isNpc player property (@Tosoks67)
- syntax for skipping not required arguments
- Chance method
- GetWaveTimer method
- FormatDuration method
- more options for TimeInfo method (@Tosoks67)
- discordServerInfo example script
Fixed:
- Example scripts being outdated
- Flags sometimes not being registered
- RespawnWave method not being compatible with NW wave objects
- literal variables sometimes formatting with debug metadata (@Tosoks67)
- text escape characters being removed on manipulation
Removed:
- @scp173Observers variable (Get173Observers method now fully replaces the @scp173Observers variable) (@Tosoks67)
- Eval method (the parentheses system works the exact same way)
- ParseResultInfo method (renamed to ResultInfo)
- RespawnWaveInfo "secondsLeft" (changed to "timeLeft" and now returns a Duration value)
Version 0.13.0 - Experimental 2
Discord webhooks, HTTP and much, much more!
Added:
Discord methods:
- SendDiscordMessage method
- EditDiscordMessage method
- SendDiscordMessageAndWait method
- DiscordMessage method
- DiscordEmbed method
- EmbedAuthor method
- EmbedField method
- EnbedFooter method
HTTP methods:
- HTTPGet method
- HTTPPost method
- HTTPPatch method
- CreateJSON method
- AppendJSON method
- FormatToReadableJSON method
- JSONInfo method
- ParseJSON method
Other:
- Get096Targets method
- ServerInfo method
- ReplaceTextInVariable method
- HexToInt method
- IntToHex method
- isDummy player property
- isNpc player property
- syntax for skipping not required arguments
- Chance method
- GetWaveTimer method
- FormatDuration method
Fixed:
- Example scripts being outdated
- Flags sometimes not being registered
- RespawnWave method not being compatible with NW wave objects
- literal variables sometimes formatting with debug metadata
- text escape characters being removed on manipulation
Changed:
- Get173Observers method now fully replaces the @scp173Observers variable
- RespawnWave "secondsLeft" to "timeLeft" and now returns a Duration value
- ParseResultInfo method to ResultInfo method
Removed:
- @scp173Observers variable
- Eval method
Version 0.13.0 - Experimental
Added:
Discord methods:
- SendDiscordMessage method
- DiscordMessage method
- DiscordEmbed method
- EmbedAuthor method
- EmbedField method
- EnbedFooter method
HTTP methods:
- HTTPGet method
- HTTPPost method
- HTTPPatch method
- CreateJSON method
- AppendJSON method
- FormatToReadableJSON method
- JSONInfo method
- ParseJSON method
Other:
- Get096Targets method
- ServerInfo method
- ReplaceTextInVariable method
- HexToInt method
- IntToHex method
- isDummy player property
- isNpc player property
- syntax for skipping not required arguments
- Chance method
- GetWaveTimer method
Fixed:
- Example scripts being outdated
- Flags sometimes not being registered
- RespawnWave method not being compatible with NW wave objects
Changed:
- Get173Observers method now fully replaces the @scp173Observers variable
- RespawnWave "secondsLeft" to "timeLeft" and now returns a Duration value
- ParseResult method to Result method
Removed:
- @scp173Observers variable
- Eval method
Version 0.12.1
Fixed:
elifstatement error
Added:
Thismethod@scp173Observersplayer variableGet173Observersmethod
Credit to @Tosoks67 for all the changes
Version 0.12.0
Check out the update overview
Breaking changes:
- changed option names for RoomInfo
- foreach loop has changed its syntax
- TPRelative method -> TPRoom method (@Tosoks67)
Added:
- local functions
- EXILED support
- support for .ser files
- caching for expressions, yielding up to 90% speed up
- "safe scripts" config option
- "is enabled" config option
- in game ranks for contributors
- CollectionContains method (@Tosoks67)
- CreatePickup method (@Tosoks67)
- CreateGrenade method (@Tosoks67)
- DestroyPickup method (@Tosoks67)
- SpawnPickupPlayer method (@Tosoks67)
- SpawnPickupPos method (@Tosoks67)
- SpawnPickupRoom method (@Tosoks67)
- Show method
- "and", "or", "is" and "isnt" operators for conditions
- LogVar method
- ParsePlayers method (@Tosoks67)
- GetAmmoLimit method (@Tosoks67)
- SetAmmoLimit method (@Tosoks67)