×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Trivia/Quiz
[Script] Trivia/Quiz
Velspar
« Citoyen »
1427504880000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Alright........ I made this quite awhile ago. Since then Ive learned a lot more about Lua, other languages, and just the whole programming thing all together. Heres a new version, much more simple and easier to use.

Triviav2.0
Use the command /lua in your tribe house. Paste the script inside the box. Add your questions, and enjoy.
This is still pretty new, so the design isnt quite there yet. Just wanted that old newbish version gone asap.

Adding questions!
Now theres still much to do with this, but I believe this is way more simple.
The script will guide you, but Ill explain here also.
a dit :
To add questions, follow the script, and make them as so;
addQuestion( 'Question' , 'Answer' , 'Answer' , 'Answer' , 'Correct Answer' )

Make sure your options are in " "s or ' 's. Also dont forget the commas between them
Question : The question you want to be asked.
Answer[1]: A random option the players can choose from.
Answer[2]: A random option the players can choose from.
Answer[3]: A random option the players can choose from.
Correct Answer : The answer that would be correct, for this question.
Examples
addQuestion( 'What color is the sky?' , 'Red' , 'Yellow' , 'Green' , 'Blue' )
addQuestion( 'What year is it?' , '1934' , '6198' , '100 B.C' , '2015' )


I was thinking about making a nice little tool with javascript to do this for you, but Im not sure how Id host that online. If anyone could help with that, shoot me a message.

How do you play?
As the questions and answers come, click the answer you think is correct. Thats all there is to it!


Script Link

Dernière modification le 1442805000000
Woebegone
« Citoyen »
1427548980000
    • Woebegone#8377
    • Profil
    • Derniers messages
    • Tribu
#2
  0
This looks interesting
Nekoava
« Citoyen »
1428540420000
    • Nekoava#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
I'm playing rn, it's prettty fun but I suggest shortening the time.
Velspar
« Citoyen »
1428550320000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Nekoava a dit :
I'm playing rn, it's prettty fun but I suggest shortening the time.

Glad its fun :P
A lot of people say that, but its that long for a reason. Those who are bit laggy, could delay and get killed. The first 20 seconds, helps with lag and anyone who may be afk for a short time. Although i could take out the re-choosing phase, but youd only get 1 choice. Taking off 20 seconds, making each round 60 seconds. (If only I had more peoples opinions...)
Error_404
« Consul »
1429185120000
    • Error_404#0000
    • Profil
    • Derniers messages
#5
  0
I JUST DONT GET IT
IS "AC" IS THE ANSWER
(IN QNA)?
Cagataymylov
« Censeur »
1429187580000
    • Cagataymylov#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Omg, it's an awesome script, I loved it!!!!
- - - - -
Tbh, I agree with Nekoava, you should shorten the time.

Dernière modification le 1429193520000
Velspar
« Citoyen »
1429199760000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Bugembo a dit :
I JUST DONT GET IT
IS "AC" IS THE ANSWER
(IN QNA)?

Updated.
If you guys got any suggestions to make this easier for you, id really like to know.
Im not very good at explaining anything. This the best i can do xP

Dernière modification le 1429209840000
Error_404
« Consul »
1429218300000
    • Error_404#0000
    • Profil
    • Derniers messages
#8
  0
Can I translet ur script?
Velspar
« Citoyen »
1429290660000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Bugembo a dit :
Can I translet ur script?

If you want.

If anyone would wanna get some question/statement lists, would be amazing ;P
(With answers, or already in the script.)

Dernière modification le 1429291140000
Error_404
« Consul »
1429306320000
    • Error_404#0000
    • Profil
    • Derniers messages
#10
  0
I got a question idk why
But I added more than 15
Question ^^"
But tbh the script is just sending me 2 other rooms i tryed with 6 and it worked out I classified the numbers in orders 1-15. But didnt work.
Greatauk
« Citoyen »
1429315440000
    • Greatauk#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
I was trying to run this script in my tribe house.

lua a dit :
• # [*Froggy Nation] Init Error : [string "Greatauk.lua"]:337: 'then' expected

I went to the 337 line. I don't know much about lua scripts.

line 337 a dit :
if event == "RT" thentfm.exec.movePlayer(n,math.random(tpZONE[10].x1,tpZONE[10].x2),math.random(tpZONE[10].y1,tpZONE[10].y2),false) end

Does anyone know whats wrong?

Dernière modification le 1429315500000
Velspar
« Citoyen »
1429319700000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
@Greatauk
greatauk a dit :
I was trying to run this script in my tribe house.

lua a dit :
• # [*Froggy Nation] Init Error : [string "Greatauk.lua"]:337: 'then' expected

I went to the 337 line. I don't know much about lua scripts.

line 337 a dit :
if event == "RT" thentfm.exec.movePlayer(n,math.random(tpZONE[10].x1,tpZONE[10].x2),math.random(tpZONE[10].y1,tpZONE[10].y2),false) end

Does anyone know whats wrong?

You took a away a space :P
line 337 a dit :
if event == "RT" then tfm.exec.movePlayer(n,math.random(tpZONE[10].x1,tpZONE[10].x2),math.random(tpZONE[10].y1,tpZONE[10].y2),false) end



@Bugembo
Gonna need more information... maybe show me the script?
Greatauk
« Citoyen »
1429406880000
    • Greatauk#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
My tribe and I were playing this script, but it didn't display any of the questions or answers.
Ash
« Citoyen »
1429451220000
    • Ash#8460
    • Profil
    • Derniers messages
    • Tribu
#14
  0
It looks very interesting and fun, i'll try it out someday.
Vexterma
1437017460000
    • Vexterma#0000
    • Profil
    • Derniers messages
    • Tribu
#15
[Modéré par Shamousey, raison : Spam.]
Martinkat
« Citoyen »
1440886500000
    • Martinkat#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Awesome!
Tat
« Censeur »
1440939120000
    • Tat#0095
    • Profil
    • Derniers messages
    • Tribu
#17
  0
The True and False is not working... both sides just die and don't get points... is there an error in the script?
Velspar
« Citoyen »
1442768760000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#18
  0
New version released, any and all above posts are now useless.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Trivia/Quiz
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27