Verse Library verse

02 Fragment

Randomly grants players either a Slap Berry or Juice Berry item when triggered in gameplay.

verse-library/using-slap-consumables-in-fortnite-creative/02-fragment.verse

# note: GetRandomInt(low, high) returns an int in [low, high] inclusive.
RandomChoice : int = GetRandomInt(0, 1)
if (RandomChoice = 0):
    MyRespawnGranter.GrantItem(GrantingPlayer)
else:
    MyJuiceGranter.GrantItem(GrantingPlayer)

Comments

    Sign in to vote, comment, or suggest an edit. Sign in