Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Ammo capacity

11 years ago

Not sure whether this has anything to do with scripting or not, but I wanted to know how a reader would be able to check how much ammo he/she has left by checking his/her inventory. For example, say I start off with nine bullets, and use two, would it be possible for me to click on my item and see how much ammo I have left?

I would appreciate the help, thanks.

Ammo capacity

11 years ago

Well, I don't have much scripting experience, but my understanding is that you can make a variable 'Ammo Capacity' and go the the item description and tell it to display 'Ammo Capacity' as part of the discription.

Ammo capacity

11 years ago

This is correct.

In your Item Description Box - type something like this:

9mm Pistol (%%AMMO%% Shots Left)

---

This will show the value of the %AMMO Variable right there in the Item Description. For example if the Value of %Ammo is 5 - it will read to the Player:

9mm Pistol (5 Shots Left)

 

Ammo capacity

11 years ago

This was a huge help, thank you!

Ammo capacity

11 years ago

No Problem!  Good luck with your Story    =)

Ammo capacity

11 years ago

Good luck!