Releases: ScriptedEvents/ScriptedEventsReloaded
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
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)
Fixed:
Version 0.11.0
This is a minor update aimed at fixing bugs and expanding more advanced functionalities
By @Tosoks67:
Added:
- relativeX/Y/Z player properties
- TPRelative method
- CollectionInsert method
- CollectionRemove method
- CollectionRemoveAt method
- EmptyCollection method
- JoinCollections method
- SubtractCollections method
Fixed:
- DurationValue string representation error on 0 duration
- some enums not being searchable when used as method arguments
By @Elektryk-Andrzej:
Added:
- PickupInfo method
- config option for removing the init message
Fixed:
- "inventory" player property returning collection of ItemBase references instead of Item references
- description for token arguments returning "T" instead of their name
- AddHume method adding more hume than the max
Version 0.10.1
Fixed:
serruncommand not being able to run valid scripts- databases reporting some values as unreadable
- fixed errors report a line of 0 with a compile time error
Changed:
serhelp methodsdistance of method descriptions has been shortened
Version 0.10.0
SER now supports databases!
That's right, the highly anticipated features of SE/SER are steadily being introduced. First was the audio, now welcome the database!
SER now allows you to store literal and player values inside JSON files for long-term storage 🎉
Added
- CreateDB method
- AppendDB method
- GetFromDB method
- DBHasKey method
- DBExists method
- CollectionLength method
- Set079AccessTier method (@Tosoks67)
- maxAuxiliaryPower player property (@Tosoks67)
- sizeX player property (@Tosoks67)
- sizeY player property (@Tosoks67)
- sizeZ player property (@Tosoks67)
- accessTier player property (@Tosoks67)
Fixed
breakkeyword not working for theforeverloop (kinda fitting lmao)- all optional arguments being mistaken as required
- 'sender' argument for Command being required
- Int argument not allowing unrestricted values
Full Changelog: 0.9.0...0.10.0