Navigation

    City of Arabel

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Using money

    Scripting
    3
    3
    1840
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      confusedgamer last edited by

      a friend of mine might be starting a server maybe next year… our questiong is simply can we use copper,silver,gold etc via scripting?

      Example

      Timmy goes up to vender and buys a longsword via conversation window...and the server subtracts the amount from payers script..somehow

      as you can see i am no scripter by any length of the imgenation.. I am more of the quest and ideas man

      1 Reply Last reply Reply Quote
      • Snowstorm
        Snowstorm last edited by

        You could do it I guess, but it sounds kind of complicated for a detail.

        You'll have to rescript a bunch of monetary functions like (or make an equivalent for your currency system):
        GetGold Gets the amount of gold that a creature possesses.
        GetGoldPieceValue Determines the value of an item in gold pieces.
        GetReactionAdjustment Gets the adjusted Reaction for the purposes of store pricing.
        GetStoreGold Returns the amount of gold a store currently has
        GetStoreIdentifyCost Determines how much a store charges to identify items
        GetStoreMaxBuyPrice Gets the maximum amount a store will pay for any item
        GiveGoldToAll Gives an amount of gold to each PC in a PC's party
        GiveGoldToAllEqually Divides a given amount of gold equally among PCs in a PC's party
        GiveGoldToCreature Creates the specified amount of gold on the creature.
        HasGold Determines if a player has more than a certain amount of gold on them.
        RewardGP Gives gold as a reward to a player and possible their party members.
        RewardPartyGP Give gold to PC or PC's entire party
        SetStoreGold Sets the amount of gold a store has
        SetStoreMaxBuyPrice Sets the maximum amount a store will pay for any item
        TakeGold Removes a given amount of gold from the targets inventory, and optionally removes it from the game.
        TakeGoldFromCreature Takes a specified amount of gold away from a creature.

        NWN was really based to work with gold pieces only.
        If this is for RP purpose here is what I suggest. Use the NWN system, but consider that gold pieces are copper pieces. Whenever a merchant says it will cost you a silver piece, take 10(nwn)gp, whenever he asks for a gold piece, take 100(nwn)gp. Don't forget to add price multipliers in your shops (for buying and selling) to adjust it to the price you want.

        White teddy bear

        1 Reply Last reply Reply Quote
        • T
          Tallima last edited by

          Also, check the vault for prebuilt worlds that use copper, silver and gold. I played a PW a while back (I forget the name now) that used it. I think he said it was standard in one of the base module systems.

          Was Wilin Unders. Like, forever ago.

          1 Reply Last reply Reply Quote
          • 1 / 1
          • First post
            Last post