Thread: PFRPG Ammunition Manager
-
January 7th, 2022, 20:27 #191bmos' extensions
he/them
-
January 7th, 2022, 20:53 #192
I have pushed a new build that should fix both of those issues.
bmos' extensions
he/them
-
January 9th, 2022, 00:42 #193
- Join Date
- Apr 2018
- Posts
- 109
As it turns out, the Audio Overseer extension will have a new version coming that will handle multi-line support so there is no longer a need to have the action label in the last line of the chat. This means I can remove the extension that is causing a problem with yours. So problem is solved! No need to look into it at all. Thanks! Great extension by the way.
-
January 9th, 2022, 13:23 #194bmos' extensions
he/them
-
January 9th, 2022, 20:12 #195
- Join Date
- Apr 2018
- Posts
- 109
What you did works and solves all problems too! Thanks!
-
February 14th, 2022, 05:42 #196
- Join Date
- Nov 2019
- Posts
- 282
So question, how do I use the Ammunition drop down in the weapon window? The character has arrows and a shortbow in inventory. The Actions tab has the shortbow. When I go into the shortbow and look at it, the ammunition drop down is empty.
How do I get it to populate the arrows the character has?
How do I say what arrows the shortbow is using?
I was thinking it might populate the drop down on equipped items, but that doesn't appear to be the case.
Currently what I've been doing is using the other Extension that adds effects to items.
So if I have a +1 Shortbow, and 20 +1 arrows, and 5 +2 Evil Outsider Demon arrows. This is what they would look like.
Shortbow Effect: BOW; action only
+1 arrows effect: IF: CUSTOM(Bow); DMGTYPE: magic ATK: 1; DMG: 1
+2 Evil Outsider Demon arrows effect: IF: CUSTOM(Bow); DMGTYPE: magic; IFT: TYPE(outsider); IFT: TYPE(demon); ATK: 2; DMG: 2d6+2;
I've not been using the ammo on the weapon, instead I go to the inventory tab and decrease the count based on number shot in the attack.
Now how this works is, I equip the bow, I equip the arrows I want to use and then attack with the bow.
Now if only I can figure out how to get this extension to decrease the count on the arrows in the inventory... I'm thinking it has to do with the drop down just not sure what's missing, as it's empty.
-
February 14th, 2022, 13:59 #197
Last edited by bmos; February 14th, 2022 at 14:01.
bmos' extensions
he/them
-
February 14th, 2022, 16:48 #198
- Join Date
- Nov 2019
- Posts
- 282
Have a look at the extension that does the scrolls/wands/potions etc. The part for scrolls and potions has code that updates the inventory item count from the actions tab. I'm sure something like that should be possible.
As I recall the way I did that was that during the equip it sets the action item for the potion or scroll to a number of uses equal to the item count. On unequip it sets the item count = to the item count - number used or something like that. When the action item is created it put a link to the originating item entry so that it can access the item as needed. You could do something that when the drop down item is populated it records all the items and links them to the drop down item in some manner. Might require a template update to the drop down to accept 2 items per item list. There are so many different ways it could be done.
The arrows are equipped as is the bow, but the drop down is empty. I'm wondering if maybe there is something in the item name, or in one of the fields within the item that isn't set in a manner the extension expects.Last edited by rmilmine; February 14th, 2022 at 16:52.
-
February 14th, 2022, 17:26 #199
That part I do understand and it is implemented that way. When you click the reload button it refills the quiver from the inventory count.
The issue I was having was displaying the right number on the combat tab to eliminate this step and have the shots/ammo recovery directly effect the overall ammo in the inventory. I didn't want to duplicate the data but wasn't able to figure out how to link the ammo field to the inventory count.
It's been a while since I looked at this issue though.bmos' extensions
he/them
-
February 15th, 2022, 06:48 #200
- Join Date
- Nov 2019
- Posts
- 282
Would it not be possible to do it in a similar fashion to potions and scrolls be possible? They use the inventory count and that count goes into the spell level and a link to the inventory item gets put in the spell that is added.
In order to link the inventory item and the drop down though, you would need to create a new template for the drop down. Add a function that accepts the inventory items and puts the item's name in the display and a link to the item in a list. You just need to ensure that the two lists remain in the same order.
Or instead of using a drop down, use a list with a check box. If one gets checked whatever one was checked gets unchecked. With the list you can easily link everything.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks