WIP: maybegetitem
Description
This MR replaces all instances of getitem
and inventoryplace
with a function that combines both: maybegetitem
.
The function only gives items if ALL of them can be carried by the player, otherwise displays an error.
Usage
Normal items:
maybegetitem ItemName, amount,
ItemName, amount,
...;
Special items:
maybegetitem ItemName, "amount,identify,refine,attribute,card1,card2,card3,card4",
ItemName, "amount,identify,refine,attribute,card1,card2,card3,card4",
...;
Named items:
maybegetitem ItemName, ":name",
ItemName, ":name",
...;
Mixed:
maybegetitem ItemName, amount,
ItemName, "amount,identify,refine,attribute,card1,card2,card3,card4",
ItemName, ":name",
...;
## Example Before: ``` inventoryplace ItemName, amount; setq Quest, value; getitem ItemName, Amount; ```
After:
maybegetitem ItemName, amount;
setq Quest, value;