Author Topic: how to make an approval system?  (Read 630 times)

how could I create an approval system that admins can use to approve/reject things like names of stuff and then store them where people can view them?

e.g. sally types /suggestname billy
an admin joins and sees something that says "1 suggested name..."
he types /viewnames and sees sally's suggestion of the name billy
the admin can do /approvename billy and the name can be view by typing /names
or he can do /rejectname billy and people don't see sally's suggested name

You can create a text file, then when they want to see it, read from the text file.
When you create a line in the text file, you can use tabs so you can see if that line is approved or denied, telling who suggested it, etc. You can also make sure that there isn't a suggestion that is the same of what they want too.

i'd rather have them do everything in-game though

That was my explanation. You could use a FileObject.

i'd rather have them do everything in-game though
The point of the file suggestion is to give a place to store the suggestions, unless you want them to be lost when server restarts.


As far as this subject goes, though, I don't see any use for it as a standalone add-on. Which leads me to believe it's either a learning project, in which case you should try as much as you can before asking for help, or meant to integrate with something else, like an RPG, in which case we'd need more information, like what RPG it is, as it would have to integrate specifically with it

i'm creating a cityrpg and it's gonna have a business ability. once a business is created, it'll have to be approved before people can be hired to join it. admins can approve or reject the business if it's like a troll business or something. when the business is approved, it'll show up on a list of business that you can possibly apply for.


Good luck scripting a whole city RPG if you can't even figure out how to do this on your own.

I highly suggest starting with something smaller than a City RPG.

If you want feedback on the idea, I wouldn't bother with an approval system. Just let people make businesses, and deal with problem users as they come, don't make legitimate players wait because of potential problem users.

Perhaps a requirement like x amount of playtime before you can start your own business, that would form a barrier to entry that someone who just wants to cause problems will likely not be willing to work for. Or, since starting a business should require a significant capitol investment, just leave that as the barrier.
Then until either of those are met, players can just work for other people

Perhaps a requirement like x amount of playtime before you can start your own business, that would form a barrier to entry that someone who just wants to cause problems will likely not be willing to work for. Or, since starting a business should require a significant capitol investment, just leave that as the barrier.
Then until either of those are met, players can just work for other people
that sounds a lot easier, thanks