var/obj/S = input("Which Sword?","Choose")as null|anything in usr.Swords |
It shows anything in swords but how can u make it that if i had 5 swords it would say Swords x5 instead of just Sword
ID:274008
Dec 2 2011, 2:25 pm
|
||
It shows anything in swords but how can u make it that if i had 5 swords it would say Swords x5 instead of just Sword | ||
Albro1 wrote:
Associative lists. Why are you using += ? Just use ++ | ||
I know about ++, but I tend to use += 1 for faster and easier readability. It's just my preference. Some people may process ++ better than += 1, but I prefer += 1.
| |
If you are referring to me, and just clicked Reply on the wrong post, then I will say it again to save you the trouble of reading my previous post again.
It is user-preference. I program how I am comfortable programming. Up until lately when I started getting into an "organization phase", I used ++. Since then, however, I have been using += for the sake of my own readability. | |
Nope. I replied to the right post.
I think it's trivial whether one uses ++ or +=1. It is just preference, like you said. | |
If an explanation is needed for any of this, just let me know what is confusing you.