Error “message”: “This invocation calls a function that has the ‘decides’ effect, which is not allowed by its context. The ‘decides’ effect indicates that the invocation calls a function that might fail, and so must occur in a failure context that will handle the failure. Some examples of failure contexts are the condition clause of an ‘if’, the left operand of ‘or’, or the clause of the ‘logic’ macro.”,
Code:
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org }
using { /Verse.org/Random }
using { /Verse.org/Simulation }
# A Verse-authored creative device that can be placed in a level
Random_module := class(creative_device):
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
var RandomX: int = GetRandomInt(0, 5)
var RandomY: int = GetRandomInt(0, 4)
Print("Test")
var GameStatus:logic = false
var GameStop:logic = false
var Nole:int = 0
var GameField : [][]int =
for (Row := 0..5):
for (Column := 0..4):
0
loop:
if (GameStatus = true):
set GameField =
for (Row := 0..5):
for (Column := 0..4):
0
for (i := 0..8):
set RandomX = GetRandomInt(0, 5)
set RandomY = GetRandomInt(0, 4)
set GameField[RandomX][RandomY] = GetRandomInt(1, 3)
if (GameStop = true):
break
Help pls