[General] Random ShopUi

Status
Not open for further replies.
Level 8
Joined
Nov 6, 2019
Messages
227
Is it possible to make for example a 9 Slot Shop CustomUI with RUID

That include these features

Every 5 Mins the Stock changed to random item in options like a interger that has 20 item in the array

And the price of item changes to match

Like Button one sells bow for 50 gold and restocks button 1 now sells a sword fir 25 custom interger

Changing the icon of the button and the description and cost

so it will be 9 random items every 5 mins

Using

Set ShopItem[1] = I97Q
Set ShopItem[2] = I86C

And as said each button chooses a random ShopItem


Edit: Pretty sure I have a idea how but unsure how efficient

Set ShopItem[1] = I76Q
Set ShopItem[2] = I76R


Set RandomItemInt = Maths random number between 1 and 20

If RandomItemInt = 1 Then Set ShopItemButton1 Texture “Icon1”
Set ShopItemButton1Description = “Item 1”
Set ShopButtonInt[1] = 1

Player presses button 1
If ShopButtonInt[1] = 1
Then create I76Q and give to player
Else if ShopButtonInt[1] = 2
Then create I76R and give to player


Something simple like that
 
Last edited:
Status
Not open for further replies.
Back
Top