Currency

version 2 by Blaze5565

  • Home page
  • Beginning
  • Previous



  • Section 4 - Buying Action
    Buying it from is an action applying to two visible things.
    Understand "Buy [something] from [person]" as buying it from.
    Check buying it from:
        If the currency of the player is less than the currency of the noun:
            Say "You can't afford it.";
            Stop the action.
    Check buying it from:
        If the second noun does not hold the noun:
            Say "[second noun] doesn't even own [the noun].";
            Stop the action.
    Carry out buying it from:
        Now the player holds the noun;
        Now the currency of the player is the currency of the player - the currency of the noun;
        Say "You hand over [currency of the noun]. He gives you [noun] in return."
    Currency ends here.