Age4/object types/buyitem: Difference between revisions
< Age4 | object types
(Created page with "Allows the purchase of an item from a shop. Multiple items can be specified to buy at once. All normal restrictions such as full inventory, maximum items in a stack, etc are followed. '''Example Usage''' Buy a single item or equipment <nowiki>#type buyitem name=Sword</nowiki> Buy 5 of the same item <nowiki>#type buyitem name=Potion val=5</nowiki> '''Required Variables''' name '''Optional Variables''' val '''Alignment Restrictable''': Yes") |
No edit summary |
||
| Line 3: | Line 3: | ||
'''Example Usage''' | '''Example Usage''' | ||
Buy a single item or equipment | Buy a single item or equipment | ||
<nowiki>#type buyitem name=Sword</nowiki> | <nowiki>#type buyitem name=Sword</nowiki> | ||
Buy 5 of the same item | Buy 5 of the same item | ||
<nowiki>#type buyitem name=Potion val=5</nowiki> | <nowiki>#type buyitem name=Potion val=5</nowiki> | ||
Revision as of 20:06, 6 June 2025
Allows the purchase of an item from a shop. Multiple items can be specified to buy at once. All normal restrictions such as full inventory, maximum items in a stack, etc are followed.
Example Usage Buy a single item or equipment
#type buyitem name=Sword
Buy 5 of the same item
#type buyitem name=Potion val=5
Required Variables name
Optional Variables val
Alignment Restrictable: Yes