Author Topic: Permanent counts  (Read 540 times)

I was thinking about making a deathrun that gives you a specific amount of crisp currency once you complete it, but there's one problem. It can't store that amount of currency permanently, meaning that if I reload the server all the currency given to players is wiped out. Suddenly, I had a nice simple idea that's actually useful.

Permanent counts

Okay, so permanent counts should be simple and useful, I think it should work like this:

So, just pretend we have a currency called Moodollars. That should be called the CountTitle, which is pretty self-explanatory.

Okay, so we're hosting a milk-themed deathrun and someone completed it.

We want to give him 5 Moodollars, so it should set that person's MDs(Moodollars) to 5. (It can also increase the count of [Insert Currency/Other here]

There should be an event that creates a little storage file of some-sort in the player(the guy who get's the moodollars)'s Blockland folder.

But wait! There's a problem. That player could be a sneaky little bastard and edit that file with a simple text editor!

Well, it should also store another text-file in the server-hoster's Blockland-Folder. Meaning that if the Permanent Count System sees that the player's text-file doesn't match the server's, it should automatically set it to the right amount. Admins should be able to set the counts for the players, so it's nice and easy to give to people you trust.

Or in a simpler way, you could just store that storage-file in the server's BL folder and it automatically loads that player's profile.

Profiles should be stored in a folder.
Permanent Count Events

Some events that could be created with the system.

AddCount:
This adds to or creates existing CountTitles, basic stuff right here.

Example:

OnPlayerTouch > Client > AddCount > [Your count-title here] [Amount]

NOTE: Only server-hosters should be able to use this.

TrackCount
Used for minigames, it updates a count-title to your minigame score.

Example:

OnActivated > Minigame > TrackCount > [Count-title to be tracked] [All(Everybody in the minigame / Player(The guy who clicked the button)

DeleteCount
Deletes a count-title, pretty obvious

Example:

OnActivated > Client > DeleteCount > [Count-Title]

NOTE: only deletes personal ones

Chat Commands


/CountList - Displays everybody's counts
/YourCounts - Displays only your counts
/ResetCounts - Resets all counts (Admin only)
/Donate [Player-name] [Count-title] - Donate a fellow player some of your crisp currency of Moodollars(or whatever you name your counts)



With VCE you can save variables.. so you can use that.. and jsut makea  variable client wide... and then get teh save and load addon sow hen a player joins they can click Load.

I see a problem. Say Mr. MooMan has a server. While, Ms. DairyPrincess also has a server. If I join one, the other will get written over when I join that, unless there is a Host ID, and server name check, and it creates both sectors in the file.

With VCE you can save variables.. so you can use that.. and jsut makea  variable client wide... and then get teh save and load addon sow hen a player joins they can click Load.

Wait what, you can save variables and still keep them even though the server reloads?

Wait what, you can save variables and still keep them even though the server reloads?
Yes...