Choose an ability/item from a random list (same as vampire survivors, hades)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Limón_Dulce

So i want to make a menu that shows you 3 random items.
Like this!

use
var list = [“talent”, “talent2” ,“talent3”…]
and later
look:
https://forum.godotengine.org/2547/how-to-randomize-a-list-array

ramazan | 2022-03-15 15:50

:bust_in_silhouette: Reply From: Gluon

Create an array

var Array_Items["item1", "Item2", "Item3", "Item4"...etc]

then when you want to select three random items do this first

func randomize_array():
    randomize()
    Array_Items.shuffle()

then select the first three items in the array