-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Item remove all similar Items. #47
Comments
My initial thought was to add each similar item with a suffix on the end to distinguish the items. So your backpack may look like this:
and then you could just call:
|
All right! That works. But as the game will go on the user will end up with items named milk1, milk71 and milk134 in his backpack. That will look weird as for a game. And after a command it goes like: and we can then modify delete command to remove multiple times the same item with a single command: |
I really like the option of just saying
and one of the item dropping. I feel like that's probably the route we should go. However, I'm against stuff like milk*3 because that feels too much like stacking items. It's not really realistic to have a 173 bottles of milk hanging out in your pocket. I think that you should have a certain amount of inventory say 10 to start out with and then have it increase or decrease as you go. Either that or some sort of weight system (I believe skyrim has something like this). Only money should be stackable and even then should be capped at a certain point (500 gold or something) to instigate the use of chests or banks. |
Weight system for sure and we increase the maximum weight with advancing level. Looks like Items just got another property. |
It should probably increase with strength though. Just because a character is a master thief doesn't mean that he or she can carry the same weight as a hardened soldier. However, if we do go with a weight system, that that means the number of items doesn't matter, just the weight of the items. So stacking is a go then and a backpack could look like this:
|
And of course it should increase with strength. I typed the word strength in previous commend but then just backspaced it. |
I endorse the displaying-weight-with-backpack-items idea too. |
hmm, I actually meant those numbers to be the number of items. I'm thinking of not displaying the weight in the backpack, but rather having each item having a realistic weight. So then it would just be common sense which is heavy or not. Maybe something like:
So this way you'd know that you have 400 gold and each milk weighs around 2 lbs. I'm thinking that individual weights may clutter the screen too much. |
Well now who's agreeing about displaying number of items. I say we display both the total weight and the individual weights. It won't clutter up if we align the weight to right of the screen. No matter what, the user will need individual weights. He needs to know the difference in weights between a shield he obtains from killing different bosses. And something like Marvin's shield won't be much explanatory. |
I was thinking about having an inspect command. So you could see the face value of an item which would just be the title and then the inspect command. It would give you a more in depth look at an item such as a description, money value, weight value, and its stat changes. |
So finally, the backpack will be something like:
backpack total weight: 6 lbs total money: 400 gold milk [4]
|
Yeah, but if you can get the items aligned properly in the beginning. Go ahead, there's nothing wrong with it inherently. I just think that it would would be hard to do well, but definitely a go if possible. |
I'm first working on #42. |
I say you fix that 'remove single item thing' and we take these backpack thoughts to another issue and figure out the best way. |
I agree with the inspect command. To code it would you just reference the json file and display the information stored there when the player inspects the items? For the single item dropping issue could we change the backpack system so that each save file has its own item.json file like the locations. There can be another property for each item that is not shown when inspected but it basically is 'quantity'. If you have three milks in the backpack the property is set to 3, (bkpk_quant = 3) etc. There may have to be different properties for banks and chests, like chest_quant and bank_quant for storage in those areas. When you drink one or deposit it in a chest the integer will just subtract or move around. Thoughts? |
I agree with almost everything. I think that the backpack system can be placed in the profile json file seeing as the character is holding the backpack rather than having an own json file. It would just be a map of { backpack: { fmil1: 3, wdag1: 2, tlap1: 1, gold : 400 } } Then when loading a character profile, it would add it like this to the backpack. |
@projectdelphai This can be closed now, as this was also addressed by #55 |
Alright. |
For example, if you have a backpack of three milks, and you call:
then all the milks are dropped and you are left with an empty backpack.
Post any solutions here.
The text was updated successfully, but these errors were encountered: