Randomly generate a number between Value Limit 1 and Value Limit 2.
- If the number is >= Winning Value then
WinEvent
is fired. - If the number is < Winning Value then
LoseEvent
is fired. - If the number = minimum then
RolledMinEvent
is fired. - If the number = maximum then
RolledMaxEvent
is fired. Agent
is used as the Instigator of the roll event.
Verse using statement |
using { /Fortnite.com/Devices } |
Activate<public>(Agent:agent)<diverges><reads><writes><allocates><no_rollback>:void
Parameters
Activate
takes the following parameters:
Name | Type | Description |
---|---|---|
Agent |
agent |
Attributes and Effects
The following attributes and effects determine how Activate
behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute | Meaning |
---|---|
public |
The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data. |
Effect | Meaning |
---|---|
diverges |
Indicates that calls to the function may not complete. |
reads |
This effect indicates that the same inputs to the function may not always produce the same output. The behavior depends on factors external to the specified inputs, such as memory or the containing package version. |
writes |
This effect indicates that the function may change values in memory. |
allocates |
This effect indicates that the function may instantiate an object in memory. Allocating <unique> classes requires the <allocates> specifier. |
no_rollback |
This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified. |