View Full Version : Ammo counter
kevininrussia
April 13th, 2020, 17:55
I would like to request an automatic ammo counter as ranged weapon is used. This function is present in 5E Core. Is this possible to do as an extension or copy the function from 5E to 4E?
valeros
April 14th, 2020, 03:50
See https://www.fantasygrounds.com/forums/showthread.php?56193
Note:
1) Ammo only displays with the weapon, not with powers (but still decrements when using powers)
2) Ammo is decremented based on the weapon name. So if you have two weapons with the same name, it will decrement from the first one it finds
Vackipleur
April 14th, 2020, 11:17
Nice Extension ! Thank you valeros :)
kevininrussia
April 15th, 2020, 02:07
When NPC attacks PC I get this error and no attack or damage happens.
[4/14/2020 5:00:54 PM] [<color="red">ERROR</color>] Script execution error: [string "scripts/manager_action_attack_ammo_counter_..."]:14: attempt to index local 'rFocus' (a nil value)
valeros
April 15th, 2020, 04:17
Should be fixed, please download new version and try again. Maybe third time is the charm? :)
kevininrussia
April 15th, 2020, 05:45
Third time is the charm :-) Attacks from NPC's are not throwing an error now. Thanks!
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.