Currency

version 2 by Blaze5565

  • Home page
  • Beginning
  • Next



  • Documentation

    This extension changes only a few things. Most features are new and are handled largely by the coder.
    Now, if a player looks at his inventory, it will also say how much money the player has. Unfortunately, at least currently, I'm not sure how to change the readout of that from $, unless you change the code of the extension. If you do go to that length, all you have to do is edit the line:
    Currency is a kind of value. $1 specifies a currency. Everything has a currency.
    To something like this:
    Currency is a kind of value. 1 bit specifies a currency. Everything has a currency.
    The other two things the player can do are:
    Selling it to:
    The player may sell any item in his inventory to a person, by typing:
    Sell (item) to (person)
    If the item is not held by the player, or you are not trying to sell to a person, then there will be an error message and the action will be stopped. Although the message does sound boring. I'm not too sure how to change it yet but I will if I do learn the code.
    Buying it from:
    The player can buy (currently) anything that an NPC is holding. At least until I get a fix out, I recommend you just make things that you don't want sold to be worth an unreachable amount of money. To buy something, the player may type:
    Buy (item) from (person)
    If the item isn't held by the person, or you are not trying to buy from a person, then there will be an error message and the action will be stopped. Although the message does sound boring. I'm not too sure how to change it yet but I will if I do learn the code.