
Hey guys, I have been wanting to implement a reloading system into my campaign.However, with macros being a butt, i was wondering if you guys could assist me in my quest.
Lets say i have 2 Attributes: Max Ammo and Magazine (mag for short)
Max ammo has all the ammunition not being used, mag has the current bullets in the magazine ( lets say 6 for this example)
When the player fires the gun (which will be the attack macro) it will subtract 1 bullet from the current magazine. Once the magazine is empty, there will be a macro called "reload" where 6 bullets will be subtracted from max ammo and 6 will be added to the magazine attribute. No where in any macro tutorial i could find helped me find something like this, adding and subtracting from attributes.
I was hoping you guys could either 1. Tell me how the coding for this would work or 2. Point me to some tutorial that can cater to my needs
All help is appreicated!
Lets say i have 2 Attributes: Max Ammo and Magazine (mag for short)
Max ammo has all the ammunition not being used, mag has the current bullets in the magazine ( lets say 6 for this example)
When the player fires the gun (which will be the attack macro) it will subtract 1 bullet from the current magazine. Once the magazine is empty, there will be a macro called "reload" where 6 bullets will be subtracted from max ammo and 6 will be added to the magazine attribute. No where in any macro tutorial i could find helped me find something like this, adding and subtracting from attributes.
I was hoping you guys could either 1. Tell me how the coding for this would work or 2. Point me to some tutorial that can cater to my needs
All help is appreicated!