×

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
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 18 / 38 › »
Module API FAQ
Fluffyshine
« Citoyen »
1380981360000
    • Fluffyshine#0000
    • Profil
    • Derniers messages
    • Tribu
#341
  0
Nathaan a dit :
Please need help :

How to make commands only autorised for "admins" ?

Admins content :
{"Nathaan"}, {"Manacer"}, {"Nicolasledu"}

I know for a simple variable (test = "Username") but not for the {"Blabla"}...

Try this:
a dit :
admins = {[[Fluffyshine]], [[Randomguy]], [[Souris]]};

function eventChatCommand(sender,val)
for _,recv in pairs (admins) do

if (recv == sender) then

if (val == [[test]]) then
print([[test~~~~]]);

elseif (val:sub(0,4) == [[chat]]) then
print([[<g><b>]]..sender..[[</b> <bl><b>›</b> ]]..val:sub(6))
end
end
end
end

~
Jsilv
« Citoyen »
1380989940000
    • Jsilv#0000
    • Profil
    • Derniers messages
#342
  0
Impuredeath a dit :
I must say the lua coding developement part is really a lot of fun.

The cows :')
Streamr
« Citoyen »
1381021260000
    • Streamr#0000
    • Profil
    • Derniers messages
#343
  0
Abdeltif a dit :
Yay cool impure but it's boring ._.

As a programmer, coding isn't boring. It just takes some time
Irishcow
« Citoyen »
1381021680000
    • Irishcow#0095
    • Profil
    • Derniers messages
    • Tribu
#344
  0
Oh, someone dedicated a room for me (who else would it be for?!??!?), I'm exceptionally flattered
Basterfeild
« Citoyen »
1381058280000
    • Basterfeild#0000
    • Profil
    • Derniers messages
#345
  0
How to :

a) Get NonShaman minigame?
b) How to get only P3 (Bc) maps?
Hophipmice
« Citoyen »
1381058280000
    • Hophipmice#0000
    • Profil
    • Derniers messages
    • Tribu
#346
  0
Basterfeild a dit :
How to :

a) Get NonShaman minigame?
b) How to get only P3 (Bc) maps?

No shaman is simple.
a dit :
tfm.exec.disableAutoShaman(true)

text.
Basterfeild
« Citoyen »
1381058760000
    • Basterfeild#0000
    • Profil
    • Derniers messages
#347
  0
How to do b)?
Shamousey
« Consul »
1381065060000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#348
  0
Basterfeild a dit :
How to do b)?

tfm.exec.newGame("#3") --This doesn't work in the tribe house, though.
Baasbase
« Citoyen »
1381111920000
    • Baasbase#0095
    • Profil
    • Derniers messages
#349
  0
Hi, let's re-create some old games
Tini
« Sénateur »
1381112040000
    • Tini#0095
    • Profil
    • Derniers messages
    • Tribu
#350
  0
Baasbase a dit :
Hi, let's re-create some old games

Pokemom! õ/
Aleeeeeh
« Citoyen »
1381165680000
    • Aleeeeeh#0000
    • Profil
    • Derniers messages
#351
  0
Can a script automatically load a custom background to specific maps?
Shamousey
« Consul »
1381165800000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#352
  0
Aleeeeeh a dit :
Can a script automatically load a custom background to specific maps?

It can, yes.
Tomiek
« Citoyen »
1381176180000
    • Tomiek#0000
    • Profil
    • Derniers messages
#353
  0
PL Thread: Topic-463181
Groot
« Citoyen »
1381182300000
    • Groot#2270
    • Profil
    • Derniers messages
    • Tribu
#354
  0
Has as make two variables becomes just one, for example: function eventChatCommand(sander["name"],command)?
Moldify
« Citoyen »
1381182300000
    • Moldify#0000
    • Profil
    • Derniers messages
    • Tribu
#355
  0
Maybe they should make an only using spirit minigame.
Example:
There is a map with only no climbing or anything so the shaman helps the mice gets cheese and get home just with spirits.:)
Zyx
« Censeur »
1381182420000
    • Zyx#8690
    • Profil
    • Derniers messages
#356
  0
If this is okay to post in:

Can we be able to put minigames in #utility too?
Shamousey
« Consul »
1381182420000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#357
  0
Modifys a dit :
Maybe they should make an only using spirit minigame.
Example:
There is a map with only no climbing or anything so the shaman helps the mice gets cheese and get home just with spirits.:)

Not particularly hard to code, but I personally don't see this as having enough gameplay to be fun for very long, it'd just be spamming spirits and down to the mice's skill.

Swirlfire a dit :
If this is okay to post in:

Can we be able to put minigames in #utility too?

What do you mean exactly?
Zyx
« Censeur »
1381182720000
    • Zyx#8690
    • Profil
    • Derniers messages
#358
  0
Shamousey a dit :
Not particularly hard to code, but I personally don't see this as having enough gameplay to be fun for very long, it'd just be spamming spirits and down to the mice's skill.
What do you mean exactly?

Like you should add a command to #utility, from the module we can pick a minigame we want to load in #utility such as #hidenseek, #traitor, etc. I think the command should be known as:
!minigame [module]
Shamousey
« Consul »
1381183440000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#359
  0
Swirlfire a dit :
Like you should add a command to #utility, from the module we can pick a minigame we want to load in #utility such as #hidenseek, #traitor, etc. I think the command should be known as:
!minigame [module]

That's not possible at all, #utility is just a module itself and doesn't have any sort of higher power to do that. It's one or the other.
Manacer
« Citoyen »
1381258620000
    • Manacer#0000
    • Profil
    • Derniers messages
    • Tribu
#360
  0
Help please :

table.remove(ban, answer)


[20:53] [•] Runtime Error : transformice.lua:503: bad argument: number expected, got string
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 18 / 38 › »
© Atelier801 2018

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

Version 1.27