[FilterScript] Reaction Tests v1.0
#1

Reaction Tests v2.0

Description
- First of all,

I know there are tons of these scripts, don't come up bullshitting please, I'm very aware of this fact.
All i wanted is to test my new "style" in scripting, because I decided to forget the [ spaces ][ between ][ braces ].
Honestly? I like it this way now.

Features
V1.0
  1. Three reaction tests, Mathematics, Reaction and Custom messsage reaction.
  2. You can add static messages under OnFilterScriptInit.
  3. In-Game use /start to show informations about the command, it has 4 params(you choose)
  4. When using /start message without a 2nd param, a message from the ones you set inside your script will be shown, but when you use /start message This is a text! players must type This is a text! to win the prize.
  5. You can use in console !showmsgs to list all the messages from inside script, or use in-game /rcon !showmsgs
  6. When someones wins, it will store his name into a variable and use later when a player tries to answer and the system will tell him that the player x answered first!
V2.0
  1. Added Quiz Test. You get a question and 4 options.
  2. Use CreateQuiz on OnFilterScriptInit to creat a Quiz Question.
  3. Now it saves in files, who when and what was the answer.(On all 4 reactions).
    From inside the Quiz Winners.txt
    Code:
    9/5/2011 at 17:46:29
    ----------------------------------
    Question: Who is the president of the United States?
    Answer: a) Barack Obama
    Winner: Zh3r0
    Took: 8893 ms
    ----------------------------------
  4. It will show the time elapsed until you answered.
Maybe V3.0 ?
  1. If there would be a 3.0, I don't know, for sure I will add the Top 3 fastest writers!
  2. If so, I would be using SQLite.
Screenshots

V1.0















V2.0







Download

V1.0 Without the Quiz Test
solidfiles < - Direct
pastebin


V2.0 With the Quiz Test
solidfiles < - Direct
pastebin


* Warning: Version 2.0 saves 4 files in /server/scriptfiles.



* Enjoy!
Reply
#2

So this new style consist only in spaces between braces Lulz
The random string generator reminds me a stupid function I posted some day ago
PRandomString Generator LuLz
However nothing special, but good way of scripting
Reply
#3

Quote:
Originally Posted by Phanto90
View Post
So this new style consist only in spaces between braces Lulz
The random string generator reminds me a stupid function I posted some day ago
PRandomString Generator LuLz
I used that for sure dude FO' SHO'! I see no freakin' differences ! really, i don't.

Kay, stop acting like a smartass thanks.
And yeah, using spaces between braces is indeed a style.
Reply
#4

Quote:
Originally Posted by Zh3r0
View Post
I used that for sure dude FO' SHO'! I see no freakin' differences ! really, i don't.

Kay, stop acting like a smartass thanks.
And yeah, using spaces between braces is indeed a style.
stop acting smartass з.з (when the hell did I act like a smartass ._.' A random string generator make me smart? Don't think so.)
I did not want to criticise you in any way, why are you so offensive?? D:
I know you are good at scripting by seeing your release, dude i'm sorry if you took that post as an insult

Quote:
Originally Posted by Phanto90
but good way of scripting
Maybe this? It was not sarcastic ._.
Reply
#5

very nice man.
Reply
#6

your new style is way better, i have the same style.
Reply
#7

Nice, i like it
Reply
#8

can u plz make the reaction test show randomly without use any cmds
Reply
#9

Quote:
Originally Posted by misho1
View Post
can u plz make the reaction test show randomly without use any cmds
Can't you make it yourself?
It's very easy, just set up a timer.
Reply
#10

Good job
Reply
#11

Quote:
Originally Posted by Delux13
View Post
Can\'t you make it yourself?

It\'s very easy, just set up a timer.
There actually is a timer! It shows every 3 minutes.

You can change the delay from above the script.

pawn Code:
#define INTERVAL         \
        (3 * 60 * 1_000)
^^^ Change the 3 with another minute.


@ Phanto90 - Honestly? I though you were actually "attacking" me.

I did not use your function because it is very old, i used the Triadic version which is faster.

And as you can see, you edited your post for like 3 times and i quoted it without the last part..
Reply
#12

good job
Reply
#13

Nice work, I\'m using it. Like it
Reply
#14

Quote:
Originally Posted by Phanto90
View Post
So this new style consist only in spaces between braces Lulz
The random string generator reminds me a stupid function I posted some day ago
PRandomString Generator LuLz
However nothing special, but good way of scripting
Stop being a fag and have some respect for regular contributers.
Reply
#15

Nice one
Reply
#16

I\'m surprised I haven\'t seen scripts like these around the forums though they\'re rather common on public servers. Small script, but then again this is one of the things that proofs that fun doesn\'t requires complex ideas.

Just a tip: What about \'Question: Answer\' tests? As in the script tells you a question, for example \'Which country is often called a \'land down under\' ?\'. Then the players are supposed to answer \'Australia\'. Maybe a good idea for an update.
Reply
#17

Great job, works well.
Reply
#18

Quote:
Originally Posted by Hiddos
View Post
I\'m surprised I haven\'t seen scripts like these around the forums though they\'re rather common on public servers. Small script, but then again this is one of the things that proofs that fun doesn\'t requires complex ideas.


Just a tip: What about \'Question: Answer\' tests? As in the script tells you a question, for example \'Which country is often called a \'land down under\' ?\'. Then the players are supposed to answer \'Australia\'. Maybe a good idea for an update.
I indeed had fun writing it. I had in mind to implant a Trivia too with Questions and 4 choices, a,b,c,d.

But that would look horrible in chat, as it occupies 5-6 lines for one question and it might disappear when server is crowded and there are many chatters.

So i thought about making it with Textdraws ?


Or, sending a message to all like:

A new Trivia question is available! Check /cmd.


A Dialog pops up with the question and the choices and of course there is the input style.


Which one would be good? I might to v1.1 on this.
Reply
#19

Very nice I like it! 10/10
Reply
#20

Nice work useful for TDM Servers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)