You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set seed to generate pseudo-random numbers in sub-events.
This extension will be useful for:
Re-creating a randomly generated level.
Debugging everything related to randomness in your game.
Use in multiplayer so that all players have the same random event without having to synchronize its components.
How to use the extension
How to use:
Put the action "Set seed" with a specific seed in the form of a number, for example "1", then all expressions and conditions of randomness in subevents will give the same result (each expression and condition separately) until you change the seed, meaning the expressions Random(), RandomInRange, RandomFloat() etc. and the condition "Pick a random instance".
Example:
Create a new event with the condition "At the beginning of the scene" and the action "Set seed" and the seed equal to "1".
Create a sub-event with the action "Log message" and the message "ToString(Random(100))+";"+ToString(Random(100))+";"+ToString(Random(100))".
Look in the console and you will see that the result at each restart will be equal to "17;21;53" until you change the seed.
Description
Set seed to generate pseudo-random numbers in sub-events.
This extension will be useful for:
How to use the extension
How to use:
Example:
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
PseudoRandomExample.zip
Extension file
PseudoRandomExtension.zip
The text was updated successfully, but these errors were encountered: