I wasn't sure if this belonged on "Games" or "Programming," but I figured it would more likely belong in "Programming." Feel free to move it if you feel this is the incorrect place for this topic.
http://www.inform-fiction.org/I7/Welcome.html
I am making a text adventure, and I have a pistol. But I want the pistol to have limited ammo. Could you tell me how to do that, please?
fuck you and fuck you.
Track how much ammo is used and make the pistol unable to shoot when you run out of it, problem solved.
>>3 See, I do not know how to do that. I'm a beginning Inform programmer. Do any of you have a Google account? If so, maybe you could ask here for me.
http://groups.google.com/group/rec.arts.int-fiction
I don't have a Google account, and I do not want to bother getting one, especially just to ask one question.
http://www.inform-fiction.org/I7/ex209.html#e209
I think you could adapt this example to represent a gun & bullets instead of containers full of lemonade.
Read the entire chapter, anyway.
its called a lower bound
wtf
>>4
you don't need a google account to post there. it's a freaking usenet group.
Use any NNTP client to post at rec.arts.int-fiction.
>>7 Oh. That's good, except now I have another problem. I viewed some of the user's profiles, and on each of them, their e-mail address were visible. You can't hide your e-mail address? I do not want anybody, except the people I e-mail, to know my e-mail address. It's for privacy reasons.
>>8
It doesn't have to be a real e-mail address.
You make me sick
>>11 hotmail accounts are free and disposable. I mean really.
Presumably he is sick because you are using an entire suite to make a text-based game, not to mention your lack of knowledge concerning Kareha.
1) have 'pistolAmmo' variable or something; when player picks up the pistol set this to the number of rounds they should start with
2) every time the player shoots the pistol, check if pistolAmmo is 0; if so, print 'pistol ran out' or something, and if not, subtract 1 from it and run the code to shoot it
3) you have no fucking reason to use a suite for a text-based program, the stuff you need to make one is damned simple and practically any language out of the box is more than cut out for this
but honestly if you need to ask this then please, please tell me you are under 10 years old
this thread proof that /code/ is shit and can't understand the value of dsls.
BUT ITS AN ENTIRE SUITE. C IS JUST ONE LETTER. USE C.