RandomEvent Script | Sansar Store
RandomEvent Script

RandomEvent Script

 50

You need to own this item to leave a rating.

0 ratings

The FLS_RandomEvent script allows you to trigger randomized events from up to 5 configurable lists (up to 100 total custom events across), with optional non-repeating logic and dynamic control through script events.

DebugMode - Enables debug logging for this script to the Sansar debug console

NonRepeatingRandom - If enabled, each random event will only be used once until all are used. Resets with ResetRandomSequence.

AutoResetWhenAllUsed - When enabled, the 'pool' of available events in the list will be auto-reset once all entries have been randomly used when NonRepeatingRandom is enabled only.

ResetRandomSequence - Event that when received on this script, resets the pool of 'used entries' when NonRepeatingRandom mode is enabled.

RandomIndexMin - If NonRepeatingRandom is enabled, use only this index range min. If both are 0, uses the full list.

RandomIndexMax - If NonRepeatingRandom is enabled, use only this index range max. If both are 0, uses the full list.

Group - Optional group name used for when this script receives events (ex: ResetRandomSequence, -> Random Event, etc) — this group is NOT automatically applied to event list entries.

RandomEventName - Event to listen for to trigger a random event.

RandomEvents1 thru RandomEvents5 - The lists of possible random events to send, please use eventname@group format if using groups on events in these lists.

EnableEvent - Event to enable the script during runtime.

DisableEvent - Event to disable the script during runtime.

StartEnabled - Whether the script starts enabled.

Updates
-------
v01b - added support for using comma-separated-events with or without groups in the RandomEvents lists

Item name
FLS_RandomEvent v01b
Sold by
Min. resale price
50