Non-threaded

Forums » Newbie Central » Read Thread

Introduce yourself and get to know the community.

Ok, I dunno if there is such things

19 years ago

Ok, I'm making a game called Codemaster #1. I want to make this thing where you are only allowed five items in your inventory, otherwise, you would lose all your items. Can I do this or not?

If not, please tell me so I can post this idea into the Feature Wishing Well.

Ok, I dunno if there is such things

19 years ago
what you have to do is make a variable called "items" and for every time an item is picked up (add link restrictions that item must be picked up) 1 is addedto the variable. Once the variable reaches 5, have the user taken to apage where it says "Drop an Item now" they drop it and since the variable is now 4, (you make it 4 btw) you will see a prev link and it will take u back to the game.

to answer your question: no there is no absolute way of doing this, it must be combined with variables.

Ok, I dunno if there is such things

19 years ago

wow! that would work very well! thanks solo!

Ok, I dunno if there is such things

19 years ago
Hmm, I don't get this. I put in the event that if the items go over 5, then they would be taken to a place call Drop Items. However, when I played my game and got more than five items, it doesnt lead me to the Drop Items page. Did I do something wrong?

Ok, I dunno if there is such things

19 years ago
thats  cuz you din't put a +1 Variable on the items variable on every page they coudl get an item

Ok, I dunno if there is such things

19 years ago

no, i actually did. and i put up a store there too, but somehow when i bought up to more than five items, the link doesnt lead me to the Drop Items page.

Ok, I dunno if there is such things

19 years ago
mhm, yep.

Ok, I dunno if there is such things

19 years ago
so, any ideas as to how to get rid of this problem?