and i made a variable, the variable is randomly generating numbers between 1-20. so that when i teleport into the map ill have variable set into a fixed number.
when number is between number X and Y i get the event on second page.... (its part of the thought of having random generated resources in a map)
when i go in, random events spawn depending on the numbers i set for events, i collect them...event is gone.
the question is this, i want the resources to NOT spawn back after i collect them, UNTILL the variable change again....
so the process i want in other wordings would be like... variable is 15, i get to collect 3 out of 5 items for example, i leave...come back with those 3 resources gone BUT the other 2 still there.
untill the character goes to sleep or day ends for example (thats how i plan to make variable changes...sleep and day end) then i get new variable ....
any insight on how to achieve this??