Hello!
So, in my game, the character has a wide array of firearms available. Right now, for the ammunition, I'm using the char's MP value.
I made it so ammo items give back a certain amount of MP, and also made different "types" of ammo. As in pistol ammo, shotgun ammo, etc...
Now, each weapon has a different max MP value (the magazine size). For example, my Pistol has 10, but my shotgun has 5. I made it so that, when pistol is equipped, max MP changes to 10, when shotgun is equipped, it changes to 5.
Now, my problem here is, even tho' I made the items that give back ammo only compatible with the right firearm, my player would have no problem equipping the pistol, refilling it's ammo using the pistol ammo item, and then equipping the shotgun, that would now have full ammo aswell, despite him not filling it with shotgun ammo, since the now filled up MP points will just carry over.
Is there a way to make it so this doesn't happen? I hope this is not too confusing, but I basically want to make it so the game remembers how much ammo was in each weapon, and prevent the player to "cheat" by filling up his pistol to get free shotgun ammo.
I'm pretty sure I can do this with variables, but my brain is frying right now lol. I could also do a full on ammo system ONLY with variables, I know, but I'd really like to use the char's MP instead, if that's possible at all.
For further clarification, my combat is text based (with some dice rolls variables here and there) and works fully with events, so I won't be using the game's combat system at all.
Thanks a lot!
So, in my game, the character has a wide array of firearms available. Right now, for the ammunition, I'm using the char's MP value.
I made it so ammo items give back a certain amount of MP, and also made different "types" of ammo. As in pistol ammo, shotgun ammo, etc...
Now, each weapon has a different max MP value (the magazine size). For example, my Pistol has 10, but my shotgun has 5. I made it so that, when pistol is equipped, max MP changes to 10, when shotgun is equipped, it changes to 5.
Now, my problem here is, even tho' I made the items that give back ammo only compatible with the right firearm, my player would have no problem equipping the pistol, refilling it's ammo using the pistol ammo item, and then equipping the shotgun, that would now have full ammo aswell, despite him not filling it with shotgun ammo, since the now filled up MP points will just carry over.
Is there a way to make it so this doesn't happen? I hope this is not too confusing, but I basically want to make it so the game remembers how much ammo was in each weapon, and prevent the player to "cheat" by filling up his pistol to get free shotgun ammo.
I'm pretty sure I can do this with variables, but my brain is frying right now lol. I could also do a full on ammo system ONLY with variables, I know, but I'd really like to use the char's MP instead, if that's possible at all.
For further clarification, my combat is text based (with some dice rolls variables here and there) and works fully with events, so I won't be using the game's combat system at all.
Thanks a lot!