Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

how could I make an item search system

hi! this is my first post on this forum, so i don't really understand exactly what is the standards, so I'll just ask my question.

alright, so i have been wondering on trying to make an item "searching" system, where you can have a chance
to search for an item, and you might get one thing or another. i think this is used with variables but that's why i
am posting on here. here is kind of a more understandable way of putting it:

activate event > text "Would you like to search for an item?" > yes/no choice. > you have a chance on getting a potion (high chance) or getting a better potion (lower chance).

if it needs more explaining i will be happy to do that, but anyways thank you!
 

eivl

Local Hero
Xy$
0.00
You are on the correct track, is the question how to write the conditional branch or is the question how you would split high and low chance item drop?
 

eivl

Local Hero
Xy$
0.00
You would control it with a random variable and a conditional branch.



This example above the variable is set within the range of 0-100
and it is split in two parts, what happens from 0-94 and from 95-100

this is the basis, you can ofc make a self switch at the end so that you only can try this 1 time. or have a second variable as a counter so you can try 5 times.

@Driftwood Gaming is better with words then me, if you where to make a detailed question on how you would like use your idea, he is your man to ask!
 
Top