Author Topic: A Simple Currency Mod.  (Read 634 times)

This is a simple idea. A currency mod that can be changed easily, evented in easily and overall not that hard to use.

First, you would have the 'currency' related as just a number. To check how much of the currency you have, you would say "/check" and it would say in the chat.

When the add-on is enabled, in the admin control panel it would allow you to change the name of the currency. When you receive currency, it displays a message on the bottom of the screen "You've received x amount of x!" or whatever.

Now with eventing. There will be addCurrency, removeCurrency, checkCurrency, setCurrency, spendCurrency, onBuyFail and onBuySuccess.

addCurrency adds a specific amount of the currency you set.
onBotKill>Player>addCurrency>100
onActivated>Player>addCurrency>100

removeCurrency removes the specific amount of the currency you set.
onChat>Player>removeCurrency>50
onPlayerTouch>Player>removeCurrency>50

checkCurrency prompts a message that shows how much currency you have.
onPlayerTouch>Player>checkCurrency

setCurrency sets the specific amount of the currency you set.
onProjectileHit>Player>setCurrency>0

spendCurrency removes a specific amount of money and activates whatever you choose the event to do. If you don't have enough, it won't allow the event to activate.
onActivate>Player>spendCurrency>1000

onBuyFail activates when you don't have enough money to spend.
onBuyFail>client>bottomPrint>"go away!"

onBuySuccess activates when you do have enough money to spend.
onBuySuccess>Player>additem
onBuySuccess>client>bottomPrint>"Thank you for your patronage!"


And that's my idea!

All of this can be done with variables.  However, I want an item that gives Score / a Variable when picked up.  It goes away after a player touches it, and in the preferences section of Admin Control, you can change what variable it gives, and how much along with if any score is earned.

All of this can be done with variables.  However, I want an item that gives Score / a Variable when picked up.  It goes away after a player touches it, and in the preferences section of Admin Control, you can change what variable it gives, and how much along with if any score is earned.

That would be sweet.

And I know it can be done with variables, it just takes longer than it should.

And I like building more than eventing, too :o

That would be sweet.

And I know it can be done with variables, it just takes longer than it should.

And I like building more than eventing, too :o

<-- Event Pro.

At least... I wish.

Variable Currencies don't take any time at all to set up, its all simple addition/subtraction to a numerical value. An item that could grant a set variable would be great for money drops. I like it, someone make it.

Variable Currencies don't take any time at all to set up, its all simple addition/subtraction to a numerical value. An item that could grant a set variable would be great for money drops. I like it, someone make it.

By taking no time at all, I mean the mod I suggested would only take two lines of eventing to work.

By taking no time at all, I mean the mod I suggested would only take two lines of eventing to work.

Yeah, but Mr. N was right about it being simple enough.  By the time someone cares enough to make all this for you, I could build an entire RPG map with eventing all completely finished.

Yeah, but Mr. N was right about it being simple enough.  By the time someone cares enough to make all this for you, I could build an entire RPG map with eventing all completely finished.

Well that's what I kinda want to do

It's just that I would like this mod to be made first :D

I like the idea, personally. Sometimes on my server or my friend's server, I'll make a simple brick with simple VCE events that sometimes malfunction randomly, either completely resetting your cash variable or just messing with it.

I should release my MoneyMod that's basically this.

I should release my MoneyMod that's basically this.

I'd love you

very much

I'd love you

very much
http://forum.blockland.us/index.php?topic=164755.0

it's basically what you asked for.

it's pretty much exactly what you asked for.

http://forum.blockland.us/index.php?topic=164755.0

it's basically what you asked for.

it's pretty much exactly what you asked for.

Yes it is.

So since it's already made, I'll just lock the topic lol!