Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Ammo"

From Roll20 Wiki

Jump to: navigation, search
(Created page with "{{script overview |name=Ammo |author={{user profile|104025|Aaron C. M.}} |version=0.22 |dependencies={{api repository link|IsGM}} |lastmodified=2015-02-18}} {{stub}} Provides...")
 
Line 7: Line 7:
 
{{stub}}
 
{{stub}}
  
Provides inventory management for ammunition stored in an attribute of a character.
+
Ammo provides inventory management for ammunition stored in a character attribute. If the adjustment would change the attribute to be below 0 or above it's maximum value, a warning will be issued and the attribute will not be changed.
 +
 
 +
'''Note''': ''As the GM, bounds will not be enforced for you. You will be whispered the warnings, but the operation will succeed. You will also be told the previous and current state in case you want to revert the change.''
 +
 
 +
'''Commands'''
 +
 
 +
    !'''ammo'''
 +
        This command requires 3 parameters:
 +
          '''id''' -- The id of the character which has the attribute. You can pass this as selected|token_id and the character id will be pulled from represents field of the token.
 +
          '''attribute''' -- The name of the attribute representing ammunition.
 +
          '''amount''' -- The change to apply to the current quantity of ammo. Use negative numbers to decrease the amount, and possitive numbers to increase it.
 +
    '''!get-represents''' [''token_id'']
 +
        This command will show the character id for the supplied token id, or will list the character ids for all the selected tokens.
 +
    '''token_id''' -- ''The id of the token to lookup, usually supplied with: '''selected|token_id'''''
 +
 
 
<br clear="all">
 
<br clear="all">
  

Revision as of 13:35, 27 March 2015

API ScriptAuthor: Aaron C. M.
Version: 0.22
Last Modified: 2015-02-18
Code: Ammo
Dependencies: IsGM
Conflicts: None


Ammo provides inventory management for ammunition stored in a character attribute. If the adjustment would change the attribute to be below 0 or above it's maximum value, a warning will be issued and the attribute will not be changed.

Note: As the GM, bounds will not be enforced for you. You will be whispered the warnings, but the operation will succeed. You will also be told the previous and current state in case you want to revert the change.

Commands

    !ammo
       This command requires 3 parameters:
         id -- The id of the character which has the attribute. You can pass this as selected|token_id and the character id will be pulled from represents field of the token.
         attribute -- The name of the attribute representing ammunition.
         amount -- The change to apply to the current quantity of ammo. Use negative numbers to decrease the amount, and possitive numbers to increase it.
    !get-represents [token_id]
       This command will show the character id for the supplied token id, or will list the character ids for all the selected tokens.
    token_id -- The id of the token to lookup, usually supplied with: selected|token_id


Changelog

v0.22 (2015-02-18)

  • -


v0.21 (2015-02-18)

  • -


v0.2 (2015-02-01)

  • Release