#is this good way to do inventory

1 messages · Page 1 of 1 (latest)

shell trench
#

is it gonna lag or shoot off too many events? is there better way to do?

ember flame
#

why do you use datastore if u haev profile store

#

also why is buying item inside ur inventory module script?

#

ur inventory module should only have stuff that manipulates the inventory not purchasing something from the store

mild knoll
#

Just make limits to how fast something can change

#

Just simple denounce

shell trench
#

and then the rest of it is finding a way to sync the module script with the game

shell trench
ember flame
shell trench
#

sorry for confusing layout. i just mean they click on a gui and buy whatever they intend. buying then adds that item to the module

the module then gets update and fires event and so on is my plan

shell trench
ember flame
shell trench
#

and then somehow it detects when their module updates and fires an event

#

and that event starts a script that updates their inventory somehow 🪦

ember flame
ember flame
ember flame
#

for me at least

#

its js a check
if money enough -- > datamodule:minusGold(100) -- >inventory module:additem('sword')

shell trench
#

oh okay thats kinda smart

#

i may change sum of it

misty inlet
#

it's not good to store player's inv stuff in a module

#

coz every player who join has a copy of that module so the module data just get copied to another player

shell trench
royal marlinBOT
#

studio** You are now Level 4! **studio

shell trench
#

YAY!!!!

ember flame
#

its a module btw

misty inlet