Alright, I have a bit of a problem with my variables. I just don't have a good way to keep track of the ammunition and tell the player with just one variable. So far, this is the idea I have now:
A single variable, Ammunition, shows the player their current ammo supply. It's limit is 250. Then, I have one hidden variable per weapon's magazine. In other words, let's say the player has 250 rounds of ammo, total. That shows up as a variable on the page. The player has four PPS-42 magazines, which hold 35 rounds each, but the player also has fifty-two 5-round stripper clips for his Mosin-Nagant. So that's 140 + 110 = 250. The player sees 250, not the 140 and the 110.
Unfortunately, it's cumbersome and I don't know how to make the Ammuniiton and the weapons' own ammo cooperate. It's sounding more complex than it is, but I just don't know how to get that down into the game.
So I just need some major help for ammunition.
Also, reloading. I have a little mini-game when you reload, where you select certain actions, and if you do the actions in the right order, the weapon will be reloaded properly. Screw up, and you might jam the weapon...or worse, break it. My problem is: let's say you're exchanging fire with an enemy sniper, and you have to reload. When you select the reload link, I want to take the player to a reload screen and its small link tree that's separate from the rest of the game (so I don't have to keep re-writing the same reload mini-game over and over again), and then return the player to the firefight. Or better yet, have it so the enemy sniper might move or something while you're reloading. How do I keep the action going and/or simply return the player to the action after doing the multi-link reloading mini-game?
I have more dilemmas, but I'll post those later.