Skip to content

Manual:DIL Manual purse()

iamnove edited this page Jan 18, 2023 · 51 revisions


integer purse(u : unitptr, coinage : integer)
   u : The unit to check
   coinage: The money type (e.g. gold, silver), one of IRON_PIECE, etc.
   Returns: The number of such units found.
   Example: if (purse(self, PLATINUM_PIECE) > 10)
              exec("say I am loaded with platinum!", self);
---~---~---~---~---~---~---~---~---
Clone this wiki locally