5E Character Create Playlist
  1. #1

    [REQUEST] One-Use Item

    Would it be possible to make an extension that would allow an item to be used (like a Potion) and then delete itself? If that is easy enough, would it be possible to make it where if you have X amount of items, it would remove 1 from it? For things like scrolls and potions this would be SUPER handy.
    Dungeon Master for the weekly, livestreamed Adventures from Amethil.
    Using these 5e Extensions: Action Abilities, Advanced Effects.
    Find me on Twitch and Twitter to stay up to date! Back-catalog of sessions are on YouTube!

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    29,095
    Are you asking if this functionality is possible in an extension - before you start writing it yourself? Or are you asking for someone to write this extension for you?

    If your question is the former, then yes, it is possible to do the functionality you mention in an extension.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    16,541
    You can do this already (certainly in 5e which is what I think you are referring to). Add the item to the actions tab by creating a new action along with whatever effects that can be applied. Then go into preparation mode and switch the daily/rest box to Once. Then type in the number of items/uses that the character has in the box. In Combat mode a row of tick boxes will appear which can be ticked off when the items is used. When the last use is ticked the item will disappear from the actions tab.

    The item of course istn't deleted from the inventory (nor is the number reduced in the case of multiple items of the same type), but this is the best way to handle what I would call consumables which have a finite number of uses. This also means that for things like potions which the character might buy/find more of the player can go into preparation mode and untick an already used box so that the items comes back along with all of the associated effects. This saves having to redo everything from scratch.

    Usually I will pre-progarm this kind of thing into new characters so that the effects etc are all there but the boxes are all ticked off so that initially they are hidden. Character finds a potion of healing during a game and can just untick a box and everything is there ready for it to be used without having to mess around creating effects mid session.
    If you need to contact customer support or if there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  4. #4
    Quote Originally Posted by Trenloe View Post
    Are you asking if this functionality is possible in an extension - before you start writing it yourself? Or are you asking for someone to write this extension for you?

    If your question is the former, then yes, it is possible to do the functionality you mention in an extension.
    It was more-so the latter, if possible. I am trying to understand how to build them myself, but LUA is a fun process. So, if it is simple, and someone is inspired to do so, that would be amazing. If not, it's understandable, but I figured I would put in a request!

    Quote Originally Posted by Zacchaeus View Post
    You can do this already (certainly in 5e which is what I think you are referring to). Add the item to the actions tab by creating a new action along with whatever effects that can be applied. Then go into preparation mode and switch the daily/rest box to Once. Then type in the number of items/uses that the character has in the box. In Combat mode a row of tick boxes will appear which can be ticked off when the items is used. When the last use is ticked the item will disappear from the actions tab.

    The item of course istn't deleted from the inventory (nor is the number reduced in the case of multiple items of the same type), but this is the best way to handle what I would call consumables which have a finite number of uses. This also means that for things like potions which the character might buy/find more of the player can go into preparation mode and untick an already used box so that the items comes back along with all of the associated effects. This saves having to redo everything from scratch.

    Usually I will pre-progarm this kind of thing into new characters so that the effects etc are all there but the boxes are all ticked off so that initially they are hidden. Character finds a potion of healing during a game and can just untick a box and everything is there ready for it to be used without having to mess around creating effects mid session.
    I had no idea that it would automatically hide itself when it goes to 0. That is good info to have, thank you! Now, if there was some way for one of these to be built in actions, when a 'consumable' is added, and then either hide, or delete itself, after all are gone, and then remove it from the inventory, that would be AMAZING.
    Dungeon Master for the weekly, livestreamed Adventures from Amethil.
    Using these 5e Extensions: Action Abilities, Advanced Effects.
    Find me on Twitch and Twitter to stay up to date! Back-catalog of sessions are on YouTube!

  5. #5
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    13,902
    Blog Entries
    9
    It's possible, but since their is no "consumable" object type, you would have to code the LUA to check for each item you want to have this behavior, and then what the appropriate action would be to add. So you would have to code a potion of healing, a potion of greater healing, etc. Lots of coding for what most people would consider limited returns

    I always suggest if you want to start writing extensions, to go through the Decal Extension Tutorial on fg-con.com. Thought it's very basic and not related to what you actually want to do, it has some key fundamentals in it that will get you started with FG extensions before you try something challenging.

  6. #6
    Quote Originally Posted by LordEntrails View Post
    It's possible, but since their is no "consumable" object type, you would have to code the LUA to check for each item you want to have this behavior, and then what the appropriate action would be to add. So you would have to code a potion of healing, a potion of greater healing, etc. Lots of coding for what most people would consider limited returns

    I always suggest if you want to start writing extensions, to go through the Decal Extension Tutorial on fg-con.com. Thought it's very basic and not related to what you actually want to do, it has some key fundamentals in it that will get you started with FG extensions before you try something challenging.
    Thanks for the tip! I will check out the video to try and get some basic ideas down pact.

    In regards, one thing that comes to mind would to be able to right click an item from Inventory and do something like "Make Consumable" - and it would add something to the Actions tab, that would be setup for limited use. Even if you have to add the [HEAL: 4d4+4] to it every time, it seems (to me) that it would be worth it!
    Last edited by ItsCliffGaming; January 14th, 2019 at 17:30. Reason: Bad Formula
    Dungeon Master for the weekly, livestreamed Adventures from Amethil.
    Using these 5e Extensions: Action Abilities, Advanced Effects.
    Find me on Twitch and Twitter to stay up to date! Back-catalog of sessions are on YouTube!

  7. #7
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    16,541
    Add it to the wish list. Link in my signature.
    If you need to contact customer support or if there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here http://fgapp.idea.informer.com/

  8. #8
    Quote Originally Posted by Zacchaeus View Post
    Add it to the wish list. Link in my signature.
    Damn! That is a crazy list! Will do. Thanks, again, for everyone's support!
    Dungeon Master for the weekly, livestreamed Adventures from Amethil.
    Using these 5e Extensions: Action Abilities, Advanced Effects.
    Find me on Twitch and Twitter to stay up to date! Back-catalog of sessions are on YouTube!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Starfinder Playlist

Log in

Log in