#how do y'all do spins 🤡

1 messages · Page 1 of 1 (latest)

ancient scarab
#

I'm making an adventure game and it contains a shop that gives you a random sword ,the problem is idk how to make npcs give you random items after paying coinssadjulian

umbral pumice
#

Potentially add an item which when opened, gives a random inventory item (or make it do that on existing).

ancient scarab
#

I don't understand

ancient scarab
#

But idk how to make it random

umbral pumice
#

you can use that to make random chances

#

or you can pick a random number from a selection and use an large if/elif statement to decide the weapon

ancient scarab
#

Alr

#

But how do I make it take my money

umbral pumice
#

theres a take from inventory thing

#

or a take money thing too

#

use one of those

ancient scarab
#

Could u do it and show me a screenshot of it

#

Because I'm kinda confused

#

Also i can't find some of the scripts

umbral pumice
#

theres a random block function (with a 80% as default)

ancient scarab
#

Dam

#

I know the chance onr

#

One

umbral pumice
#

yea that one

ancient scarab
#

But i can't find the take from inv neither drop the items thingy

umbral pumice
ancient scarab
#

Lemme try

#

Still don't know what to do sadjulian

jagged jacinth
#

put them below all the chances

#

except for the part that says "remaining %"

ancient scarab
jagged jacinth
#

and after that, tap the bag option

#

youll see something named "obtain item", you should tap that and set the item to the item you want it to give

#

copy that to all the "mechanics" bar and add different items to it

umbral pumice
#

@jagged jacinth thanks you

ancient scarab
#

Guys

ancient scarab
#

But

#

He gives them for free

#

I tried to make him take 50 coins from me but

jagged jacinth
#

🥲

ancient scarab
#

He just gives them away

#

🪦

jagged jacinth
#

alright , ill send you a script of what to do

#

copy it, alright?

ancient scarab
#

Okie

jagged jacinth
ancient scarab
#

Thx

jagged jacinth
#

just tell me if you cant find some of them

ancient scarab
#

Alr

jagged jacinth
#

and you dont have to copy the purple part

ancient scarab
#

Uhh why can't I add the coins in

#

...?

#

Imma wait ig

#

Uhh

jagged jacinth
#

olay uh

#

go to the operations category

#

and look for something with "system"

#

use that

#

tap it

ancient scarab
#

Oke

jagged jacinth
#

and tap baf

ancient scarab
#

Now?

jagged jacinth
#

bag**

ancient scarab
#

O

jagged jacinth
#

and tap item amount

#

set the "?" to the coins

#

and > with _ means "more than or equal to"

ancient scarab
#

Wait

#

Huh

jagged jacinth
#

where is the

ancient scarab
#

Coins?

#

Oh wsit

#

I put the coins before putting the system

jagged jacinth
#

in here

ancient scarab
#

Did it

ancient scarab
#

Now the reduce thingy

jagged jacinth
#

its in mechanics

#

you know the drill

jagged jacinth
ancient scarab
#

Like this?

#

I did the last part wrong

#

Lemme fix it

#

Got sum bad news and good news

#

The good news

#

That it takes my money and gives me the sword

#

The bad news

#

That when i spin without money it still gives me 🪦

#

Welp

#

I'm screwed

#

All i had to do is make it work

#

And make the map

#

😭

#

You know what

#

I'll just make it in a future update

jagged jacinth
#

crying.

#

but the "random chance" line

#

inside the if

umbral pumice
ancient scarab
#

Wait

#

It workkkkkkzzzz

#

Thanks y'all

#

🫡