MoneyChanger

From CoffeeMud Wiki
Jump to navigation Jump to search


CoffeeMUD
Administrator                                                  Builder                                                              Player
=CoffeeMUD Builder Information=
Basics Praetor     Player Support     Commands     Zapper Masks Advanced Races     Classes     Abilities     Socials     Scripting    
Building Behaviors     Properties     Areas     Rooms     Exits     Items     Mobs Systems Achievements     Crafting     Help Info     Ships     Planes of Existence     Quests     Triumphs    
===MoneyChanger===
Targets: MOBs
Parameters: (CUT="NUM") (DEFAULT="NUM") ("CURRENCY"="NUM")

(CUT="NUM") (SPACEMAXCUT="NUM") (SPACEMAXDISTANCE="PCT")

Examples: cut=5

default=0 GOLD=5 INGITS=10 cut=5 spacemaxcut=90 spacemaxdistance=35

Description: Whenever a player gives the money changer coins, the money changer will give back to the player a bag containing an equivalent amount of money in the money changers native currency. The "cut" that the money changer takes, in general, can be defined with the CUT parameter, by making CUT equal to a percentage. If you wish, you can also define exchange rates for the several currencies in your system by setting each currency name equal to a percentage.


When dealing with intersteller currencies, there are two other parameters, which can be used to automatically calculate a scaled "cut" of the exchange based on how far away the exchanged currencies planet is from the money changers. To do this, you can add spacemaxcut to denote the percentage to take when the currency is from an unknown or maximum distance, and spacemaxdistance to denote a percentage of the entire galactic radius to use as a maximum.


Notes

  • It is generally best if moneychangers are not affected by Inebriation, as they may hand money out to the wrong people mistakenly.